"on_incoming_call" called twice for the same accountID issuing distinct callIDs

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

 



Tony,

thanks for the hint, I will investigate this ...

-Thomas


On Dec 11, 2010, at 11:38 , Tony Million wrote:

> I notice I get two on_incoming_call calls because the SIP server responds to the initial INVITE with a 407 forcing the client to REGISTER again, then set up call again.
> 
> Check the SIP msg logging and see if this in happening for you.
> 
> Tony
> 
> 
> On 10 Dec 2010, at 23:23, Thomas Martin wrote:
> 
>> Hello Everybody,
>> 
>> I have been wrestling  with this for a few days now - trying to locate my error:
>> 
>> Using 1.8.10 on both, OS X (10.6.5) and iOS4 to build a user-agent, my "on_incoming_call" procedure is called twice (within a few milliseconds) for the same incoming call targeting the same accountID issuing different callIDs (i.e. "0" and "1").
>> 
>> Out of pure desperation, I revived one of my first PJSIP trial-projects, using PJSIP 1.0.3 to compare this behavior in the same situation. As it turns out, the old project behaves 'decently' in the sense that "on_incoming_call" is only called once per incoming call.
>> 
>> I then replaced PJSIP 1.0.3 with the new PJSIP 1.8.10 to test, how the same old project behaves in this situation and voila: now "on_incoming_call" is also called twice for the same incoming call, without having changed even a single line of code (which -by the way- very closely follows the pjsua-reference-implementation for the "crucial" parts).
>> 
>> I must admit, though, I am not much of a SIP expert and -for the most part- rely on the PJSIP library documentation and functionality when it comes to SIP.  
>> 
>> Therefore, I would really appreciate, if one of the experts could help me, identifying the cause of this strange and behavior. Have the semantics changed from 1.0.3 to 1.8.10 with respect to how incoming calls present themselves or are handled? - I doubt that I have discovered a bug in the library, since the effect is so obvious.
>> 
>> I almost forgot to mention, the described effect only happens to the accounts of certain providers (e.g. sipgate.de, sipgate.com).
>> 
>> Thank you very much in advance!
>> 
>> -Thomas
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> 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
> 
> 
> _______________________________________________
> 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




[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