Fix checking status of incoming call

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

 



Hi!

I use PJSUA2 layer of PJSIP.
I found that when I answer with "SIP 302 Moved Temporarily" status on
incoming call, the call is closing synchronously.

In Endpoint::on_incoming_call() there is check for incoming call not
processed by handler. You call pjsua_call_get_info() function without
checking the result.
In case of "SIP 302 Moved Temporarily" answer the call is already closed
after handling and pjsua_call_get_info() returns PJSIP_ESESSIONTERMINATED.
Your checks doesn't take it into account and always do unnecessary call to
pjsua_call_hangup() and I see warning in the logs.

I suggest to fix this behavior with commit:
https://github.com/halex2005/pjproject/commit/c1b473d936b2281fff56b714c73e672fd796ea5a

Best regards, Aleksei.
mailto:akharlov at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150312/47386b7f/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