Hey, Try editing you code as below. This also something I haven't worked, so hope it's useful for you. /* call on hold */ pjsua_call_set_hold(pjsua_call_id call_id,const pjsua_msg_data *msg_data) { pjmedia_sdp_session *sdp; pjsua_call *call; pjsip_dialog *dlg; pjsip_tx_data *tdata; pj_status_t status; PJ_ASSERT_RETURN(call_id>=0 && call_id<(int)pjsua_var.ua_cfg.amx_calls,PJ_ENINVAL); status = acquire_call("pjsua_call_set_hold()", call_id, &call, &dlg); if(status != PJ_SUCESS); return status; if(call->inv->state != PJSIP_INV_STATE_CONFIRMED) { PJ_LOG(3,(THIS_FILE, "Can not hold call that is not confirmed")); pjsip_dlg_dec_lock(dlg); return PJSIP_ESESSIONSTATE; } status = create_inactive_sdp(call, &sdp); if(status != PJ_SUCESS) { pjsip_dlg_dec_lock(dlg); return status; } /* Re-invite as to release the hold */ pjsua_call_reinvite(pjsua_call_id call_id,pj_bool_t unhold,const pjsua_msg_data *msg_data) { PJ_ASSERT_RETURN(call_id>=0 && call_id<(int)pjsua_var.ua_cfg.max_calls, PJ_ENINVAL); status = acquire_call("pjsua_call_reinvite()", call_id, &call, &dlg); if(status != PJ_SUCCESS) return status; if(call->inv->state != PJSIP_INV_STATE_CONFIRMED){ PJ_LOG(3,(THIS_FILE, "Can not re-invite call that is not confoirmed")); pjsip_dlg_dec_lock(dlg); return PJSIP_ESESSIONSTATE; } } Regards Rachel On Wed, Sep 23, 2009 at 8:49 AM, Yuvaraj R <yuvaraj at ongobiz.com> wrote: > Hi All > > I am using Pjsip along with Qt.. > > Here hold and unhold options is working properly > > > > if(a==0) > > { > > qDebug() << a; > > pjsua_call_set_hold(b,0); // for hold , here b is call_id > > qDebug() <<"holded"; > > } > > > > else if(a==1) > > { > > pjsua_call_reinvite(b,1,0); // for unhold, here b is call_id > > qDebug() << a; > > } > > Sometimes hold option is working .. But unhold option not working.. > > I verified with my pjproject with console with is working fine > > > Please help me,Actually where the issue is here ? > > > Thanks > > Yuvaraj R > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090923/52e058d0/attachment.html>