I need to play audio data in a buffer to a sip inbound or outbound. The following steps are what I am doing: - call pjmedia_conf_create() to create a conference bridge - call pjmedia_mem_player_create() to create a port for the audio buffer - call pjmedia_mem_player_set_eof_cb() to register a call back - call pjmedia_conf_add_port() to add the port associated with the sip call (inbound or outbound) to the conference bridge - call pjmedia_conf_add_port() to add the port associated with the audio buffer the same conference bridge - call pjmedia_conf_connect_port() to connect the port associated with the audio buffer to the port associated with the sip call (inbound or outbound) - call pjmedia_null_port_create() to create a null port - call pjmedia_master_port_create() to create a master port with the null port as the upstream and the master port obtained from the conference bridge as the downstream - call pjmedia_master_port_start() to start the master port created in the last step I can hear the audio, but it doesn't sound correct. Since i fill the audio data to the buffer every time the call back function is called, i write the data filled in the audio buffer to a file in the call back function, the audio data in the file are correct. Does anyone know if i have done anything wrong. thanks in advance -Jessica _________________________________________________________________ ?????????????MSN????TA????? http://im.live.cn/emoticons/?ID=18 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080625/13b7a7c6/attachment-0001.html