Call Hold/Resume Using pjsip-1.2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All

I am using release pjsip1.2 and trying to Hold/Resume call using following
code :

 

 

Case EAawazContainerViewCallHoldMenuItemCommand:

pjsua_call_info ci;

                        pjsua_call_id call_id;

                        pjsua_call_get_info(call_id, &ci);

                  //    if (ci.state == PJSIP_INV_STATE_CONFIRMED){

                      if (call_id != -1) {

                   //   PutMessageL(_L("Call on Hold"));

                        pjsua_call_set_hold(call_id, NULL);

                        

 

                      } else {

                        //PJ_LOG(3,(THIS_FILE, "No current call"));

                        PutMessageL(_L("No current call"));

                      } 

Break;

 

By using above code call sometimes successfully on "Hold" and Resumed too,
but after this successive result when we dial another call ,  Call is
Conversion  trying to  get "Hold" it shows else condition "No current call",
this is very frequent after every second call, is it my code error. Waiting
for valuable guidance.

Thanks

Bharat   

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


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux