[pjsip] Fw:Fw:hold unhold problem

hlzhangxt at 163.com hlzhangxt at 163.com
Thu Apr 3 09:29:54 EDT 2008

 And in this function , thers are comments:
  /* We're risking accessing the port without holding any mutex.
     * It's possible that port is disconnected then destroyed while
     * we're trying to access it.
     * But in the name of performance, we'll try this approach until
     * someone complains when it crashes.
Is this a risk ?
---------- 转发邮件信息 ----------
发件人:"hlzhangxt at 163.com" 
发送日期:2008-04-03 21:23:18
收件人:pjsip <pjsip at lists.pjsip.org>
主题: Fw:hold unhold problem

 I search the pjmedia source code, and find where the problem is.
 In file sound_port.c, callback function: play_cb
    status = pjmedia_port_get_frame(port, &frame);
    if (status != PJ_SUCCESS)
       PJ_LOG(4,(THIS_FILE, "pjmedia_port_get_frame failed"));
       goto no_frame;
    if (frame.type != PJMEDIA_FRAME_TYPE_AUDIO)
     goto no_frame;
  After unhold, frame.type != PJMEDIA_FRAME_TYPE_AUDIO , 
  Who can solve this problem?
---------- 转发邮件信息 ----------
发件人:"hlzhangxt <hlzhangxt at 163.com>" 
发送日期:2008-04-03 20:32:39
收件人:pjsip <pjsip at lists.pjsip.org>
主题: hold unhold problem

 I have successfully integrated voiceage g729 with pjsip. 
 But, there is a problem.
 A is pjusa,  B is another sip phone.
 A is talking with B,  B press hold key, then A start to listen to hold music.
 After a while, B press unhold key, music stop.
 Then B can hear A's voice, but A can not hear B's voice.
 What's the problem?

中 国 最 强 网 游 --- 网 易 梦 幻 西 游 ,166 万 玩 家 同 时 在 线

中 国 最 强 网 游 --- 网 易 梦 幻 西 游 ,166 万 玩 家 同 时 在 线
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080403/85748431/attachment.html>

More information about the pjsip mailing list