2008/8/1 Liusheng <liu_sx2006 at hotmail.com> > hi,nanang: > > I need to get the pcm voice package from a socket, and send them to SIP > phone, also need get the voice package to send back to the socket port. So I > do not know how to use PJSUA to implement it. > > First you'd need to implement the reading/writing to the socket part as pjmedia_port [1]. Once you have the pjmedia_port implementation, then register it to the PJSUA-LIB's conference bridge [2], and connect the media port to the call [3]. -benny [1] http://www.pjsip.org/pjmedia/docs/html/group__PJMEDIA__PORT.htm [2] http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__MEDIA.htm#g833528c1019f4ab5c8fb216b4b5f788b [3] http://www.pjsip.org/pjsip/docs/html/group__PJSUA__LIB__MEDIA.htm#g3451304d677e013130dfb9e6b37e3ee6 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080801/d587a24e/attachment.html