Hi list.

I receantly started using ooH323c stack on my ARM-based ucLinux platform. After creation of media plug-in, I need somehow to pass it information which phone channel will be used for current call (there are two phone channel on the board). Looking at the documentation, I saw that global endpoint has a linked list of OOH323CallData records. Each list member has a void pointer for passing user data to the stack:

/**
* This structure is used to maintain all information on an active call.
* A list of these structures is maintained within the global endpoint
* structure.
*/
typedef struct OOH323CallData {
  ...
void *usrData; /*!<User can set this to user specific data*/
  ...
} OOH323CallData;

I'm not really sure how to pass each data. At the moment, I'm planning to do something like

call->usrData = (void*) &channelId; /* channelId is a static variable */

in onNewCallCreated() callback implementation (just for simple demo app). Am I on a good path about this?

   Thanks in advance!

   Best regards,
      Aleksandar


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
ooh323c-devel mailing list
ooh323c-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ooh323c-devel

Reply via email to