[pjsip] Question regarding passive ports.

Lafras Henning lafras at xietel.com
Tue Sep 11 10:13:09 EDT 2007


 Question regarding passive ports.



I basically want to create a number of ports(10 to 20) in the conference bridge who's audio will be fed and extracted from an external thread.




I can't to find an example of the correct use of pjmedia_conf_add_passive_port(), so the following I have gathered from the code.




In conference .c get_frame() comment as follows.

/* Get frame from this port. 

* For port zero (sound port) and passive ports, get the frame from 

* the rx_buffer instead. */

if (conf_port->port == NULL) {.....




So it is clear that passive functions don't have a media port, as in




create_sound_port() calls create_pasv_port with port ==NULL, this Creates snd_buf buffers and keeps conf_port->port == NULL to work as above.




However 




pjmedia_conf_add_passive_port() creates a port, then calls create_pasv_port which does not create snd_buf buffers and keeps the port as the one created.




Function pjmedia_conf_add_passive_port() is not used anywhere and is inconsistent with the behaviour of sound port, thus seems as though it is not implemented correctly? Or can anyone give an example of how to use pjmedia_conf_add_passive_port() correctly?




Many thanks and regards

Lafras

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20070911/b00e6973/attachment.html>


More information about the pjsip mailing list