How to force cancelled a callout(invite) to not exist callee?

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

 



On 09/03/2013 12:50 PM, eboy chen wrote:
> Dear Pjsip Support Team,
>         As title. I try to use pjsua_call_make_call() to send invite 
> to a URI (Ex: sip:192.168.2.220),
> but the URI doesn't exist (Device power off) in fact. Then it will 
> cause dialog lock till 30 second timeout.
> What API could I use to force cancelled this invite dialog?
>
> Best regards,
>         KennyChen
>
>
> _______________________________________________
> 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
Hi,

you should implement pjsua call state call back where you'll retrieve 
call status. Pjsua will try to connect N (where N can be configured) 
times then if pjsua can not connect you will retrieve pjsua time out.  
Otherwise you will retrieve confirmed.

You shouldn't block pjsua thread in that time by dialog (if pjsua was 
run in gui thread).

-- 
Regards,
R. Savchenko.

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