call_id in container view

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

 



Hi all

I am facing  a problem to Hold/unHold calls from many days to till now, I
made a post regarding how Hold/Unhold to get proper help/guidence,  I want
to get call_id in container view if I tried with 

                              pjsua_call_info ci;

                              //int call_id =0;

                              pjsua_call_id call_id;

                              pjsua_call_get_info(call_id, &ci);

                              if (call_id != -1)

{

pjsua_call_set_hold(call_id, NULL);

}

Else

{

                              PJ_LOG(3,(THIS_FILE, "No Current Call"));

                              }

 

but always get call_id = -2137654689 

 

If I use followings

pjsua_call_info ci;

                              int call_id =0;

                              //pjsua_call_id call_id;

                              pjsua_call_get_info(call_id, &ci);

                              if (call_id != -1)

{

pjsua_call_set_hold(call_id, NULL);

}

Else

{

                              PJ_LOG(3,(THIS_FILE, "No Current Call"));

                              }

                                    

First call (call_id =0) is always set on hold/unhold but, I never able to
hold/unhold  second(call_id=1) call if I set max_call=2

Please guide me.

Thanks

Bharat

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20090629/f7bb0626/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