Assertion on reregistration

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

 



Hi ,

Here are some issue we are also facing while registering using
"symbian_ua_gui".
I am not sure if it is the correct behavior of register messages.

I am using:
Phone: E65, N95, E51, E70
SDK S60_3rd_MR
Carbide C++ 1.3
pjproject svn rev.2259 with  SND_USE_APS	1 enabled

Here
192.168.222.3 is the nated IP leased from WiFi Access point  and local
listen port changed to 6060
 using #define SIP_PORT	6060, so phone is listening for sip messages
at "192.168.222.3:6060"
192.168.10.53 is the gateway IP ( Access point)
192.168.10.62 is Asterisk IP
trying to register using user: 1111 , Password: 1111


# Case 1: At first when we 1st run the "symbian_ua_gui"

"symbian_ua_gui"   --->  REGISTER  -----> asterisk
                                            (Expires: 300)
                                            [Contact:
<sip:1111 at 192.168.222.3:6060>]
                                             Call-ID:
ap.ODL-0NUhisFq4L5j7uoOAw5y9tE6n
"symbian_ua_gui"   <--- 100 Trying (REGISTER)  <--- asterisk
"symbian_ua_gui"   <---  200 OK (REGISTER Expires: 300) <--- asterisk

"symbian_ua_gui"   --->  REGISTER ---> asterisk
                                            (Expires: 0)
                                             [Contact:
<sip:1111 at 192.168.222.3:6060>]
                                             Call-ID:
ap.ODL-0NUhisFq4L5j7uoOAw5y9tE6n
"symbian_ua_gui"   <--- 100 Trying (REGISTER)  <--- asterisk
"symbian_ua_gui"   <---  200 OK (REGISTER Expires: 300) <--- asterisk

"symbian_ua_gui"   --->  REGISTER  ---> asterisk
                                             (Expires: 300)
                                             [Contact:
<sip:1111 at 192.168.10.53:6060]
                                             Call-ID:
ooCJKKeh1Lcj5FfHnUSM2ds0Sx0rsQrB
"symbian_ua_gui"   <--- 100 Trying (REGISTER)  <--- asterisk
"symbian_ua_gui"   <---  200 OK (REGISTER Expires: 300) <--- asterisk

=========================================================================
**********Application Start
**********Register as 1111
#
U 192.168.10.53:6060 -> 192.168.10.62:5060
REGISTER sip:192.168.10.62 SIP/2.0.
Via: SIP/2.0/UDP
192.168.222.3:6060;rport;branch=z9hG4bKPjWKczzroTie9FX9AmOPydWirrHhykxieR.
Max-Forwards: 70.
From: <sip:1111@192.168.10.62>;tag=fHw5FP2TISSl9zfaFQvHQDKFXvw7aRRC.
To: <sip:1111 at 192.168.10.62>.
Call-ID: ap.ODL-0NUhisFq4L5j7uoOAw5y9tE6n.
CSeq: 41083 REGISTER.
Contact: <sip:1111 at 192.168.222.3:6060>.
Expires: 300.
Content-Length:  0.
.

#
U 192.168.10.62:5060 -> 192.168.10.53:6060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP
192.168.222.3:6060;branch=z9hG4bKPjWKczzroTie9FX9AmOPydWirrHhykxieR;received=192.168.10.53;rport=6060.
From: <sip:1111@192.168.10.62>;tag=fHw5FP2TISSl9zfaFQvHQDKFXvw7aRRC.
To: <sip:1111 at 192.168.10.62>.
Call-ID: ap.ODL-0NUhisFq4L5j7uoOAw5y9tE6n.
CSeq: 41083 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:1111 at 192.168.10.62>.
Content-Length: 0.
.

#
U 192.168.10.62:5060 -> 192.168.10.53:6060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP
192.168.222.3:6060;branch=z9hG4bKPjWKczzroTie9FX9AmOPydWirrHhykxieR;received=192.168.10.53;rport=6060.
From: <sip:1111@192.168.10.62>;tag=fHw5FP2TISSl9zfaFQvHQDKFXvw7aRRC.
To: <sip:1111 at 192.168.10.62>;tag=as11ec0646.
Call-ID: ap.ODL-0NUhisFq4L5j7uoOAw5y9tE6n.
CSeq: 41083 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Expires: 300.
Contact: <sip:1111 at 192.168.222.3:6060>;expires=300.
Date: Sun, 14 Sep 2008 06:36:20 GMT.
Content-Length: 0.
.

#
U 192.168.10.53:6060 -> 192.168.10.62:5060
REGISTER sip:192.168.10.62 SIP/2.0.
Via: SIP/2.0/UDP
192.168.222.3:6060;rport;branch=z9hG4bKPjkbYUs73OiLscMn1ZxEVlgXVnyT8bYpy..
Max-Forwards: 70.
From: <sip:1111@192.168.10.62>;tag=leeXLQdCaq0x-IxXUx3LNOE7P.S-8-Qx.
To: <sip:1111 at 192.168.10.62>.
Call-ID: ap.ODL-0NUhisFq4L5j7uoOAw5y9tE6n.
CSeq: 41084 REGISTER.
Contact: <sip:1111 at 192.168.222.3:6060>.
Expires: 0.
Content-Length:  0.
.

#
U 192.168.10.62:5060 -> 192.168.10.53:6060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP
192.168.222.3:6060;branch=z9hG4bKPjkbYUs73OiLscMn1ZxEVlgXVnyT8bYpy.;received=192.168.10.53;rport=6060.
From: <sip:1111@192.168.10.62>;tag=leeXLQdCaq0x-IxXUx3LNOE7P.S-8-Qx.
To: <sip:1111 at 192.168.10.62>.
Call-ID: ap.ODL-0NUhisFq4L5j7uoOAw5y9tE6n.
CSeq: 41084 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:1111 at 192.168.10.62>.
Content-Length: 0.
.

#
U 192.168.10.62:5060 -> 192.168.10.53:6060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP
192.168.222.3:6060;branch=z9hG4bKPjkbYUs73OiLscMn1ZxEVlgXVnyT8bYpy.;received=192.168.10.53;rport=6060.
From: <sip:1111@192.168.10.62>;tag=leeXLQdCaq0x-IxXUx3LNOE7P.S-8-Qx.
To: <sip:1111 at 192.168.10.62>;tag=as11ec0646.
Call-ID: ap.ODL-0NUhisFq4L5j7uoOAw5y9tE6n.
CSeq: 41084 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Expires: 300.
Contact: <sip:1111 at 192.168.10.62>;expires=300.
Date: Sun, 14 Sep 2008 06:36:20 GMT.
Content-Length: 0.
.

#
U 192.168.10.53:6060 -> 192.168.10.62:5060
REGISTER sip:192.168.10.62 SIP/2.0.
Via: SIP/2.0/UDP
192.168.222.3:6060;rport;branch=z9hG4bKPjDh1bEV2ItVuT8ELms62Ffo3OnxQzyvXR.
Max-Forwards: 70.
From: <sip:1111@192.168.10.62>;tag=XRBgVZdDepMkUzKChZ9SMGAjU4OGRtyk.
To: <sip:1111 at 192.168.10.62>.
Call-ID: ooCJKKeh1Lcj5FfHnUSM2ds0Sx0rsQrB.
CSeq: 63933 REGISTER.
Contact: <sip:1111 at 192.168.10.53:6060;transport=UDP>.
Expires: 300.
Content-Length:  0.
.

#
U 192.168.10.62:5060 -> 192.168.10.53:6060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP
192.168.222.3:6060;branch=z9hG4bKPjDh1bEV2ItVuT8ELms62Ffo3OnxQzyvXR;received=192.168.10.53;rport=6060.
From: <sip:1111@192.168.10.62>;tag=XRBgVZdDepMkUzKChZ9SMGAjU4OGRtyk.
To: <sip:1111 at 192.168.10.62>.
Call-ID: ooCJKKeh1Lcj5FfHnUSM2ds0Sx0rsQrB.
CSeq: 63933 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:1111 at 192.168.10.62>.
Content-Length: 0.
.

#
U 192.168.10.62:5060 -> 192.168.10.53:6060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP
192.168.222.3:6060;branch=z9hG4bKPjDh1bEV2ItVuT8ELms62Ffo3OnxQzyvXR;received=192.168.10.53;rport=6060.
From: <sip:1111@192.168.10.62>;tag=XRBgVZdDepMkUzKChZ9SMGAjU4OGRtyk.
To: <sip:1111 at 192.168.10.62>;tag=as3c28f3f7.
Call-ID: ooCJKKeh1Lcj5FfHnUSM2ds0Sx0rsQrB.
CSeq: 63933 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Expires: 300.
Contact: <sip:1111 at 192.168.10.53:6060;transport=UDP>;expires=300.
Date: Sun, 14 Sep 2008 06:36:20 GMT.
Content-Length: 0.
.
**********Successfully Registered


===========================================================================================
>From above scenario when "symbian_ua_gui" trying to send REGISTER
(Expires: 0) which is an UNREGISTER message to asterisk its getting
respons with "200 OK (REGISTER Expires: 300)" where I think "Expires:
300" is unexpected as the request was
for "Expires: 0" we also can see that for 1st and 2nd request to
asterisk Call-ID is same for the both messages but different
for the 3rd request .
My question is should we send same call-id for a unregister message
same as the previous register message?
===========================================================================================




# Case 2: now we have changed the user and pass to : user: 3333,
Password: 3333 and try to register again

"symbian_ua_gui"   --->  REGISTER (Expires: 0) [Contact:
<sip:1111 at 192.168.10.53:6060>] ---> asterisk
                                             Call-ID:
ooCJKKeh1Lcj5FfHnUSM2ds0Sx0rsQrB
"symbian_ua_gui"   <--- 100 Trying (REGISTER)  <--- asterisk
"symbian_ua_gui"   <---  200 OK (REGISTER Expires: 300) <--- asterisk

"symbian_ua_gui"   --->  REGISTER (Expires: 300) [Contact:
<sip:1111 at 192.168.10.53:6060>] ---> asterisk
                                             Call-ID:
ABuVqqNtbJfb-AbHw160Maf7eUivdC0f
"symbian_ua_gui"   <--- 100 Trying (REGISTER)  <--- asterisk
"symbian_ua_gui"   <---  200 OK (REGISTER Expires: 300) <--- asterisk

====================================================
**********Trying to register as 3333

U 192.168.10.53:6060 -> 192.168.10.62:5060
REGISTER sip:192.168.10.62 SIP/2.0.
Via: SIP/2.0/UDP
192.168.222.3:6060;rport;branch=z9hG4bKPj0ErY.cMm5QCWJBxcXUGZaMSEGANy5GYS.
Max-Forwards: 70.
From: <sip:1111@192.168.10.62>;tag=tE3MGj9Puap-v9-nHDa4qQbLgs7Rqp40.
To: <sip:1111 at 192.168.10.62>.
Call-ID: ooCJKKeh1Lcj5FfHnUSM2ds0Sx0rsQrB.
CSeq: 63934 REGISTER.
Contact: <sip:1111 at 192.168.10.53:6060;transport=UDP>.
Expires: 0.
Content-Length:  0.
.

#
U 192.168.10.62:5060 -> 192.168.10.53:6060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP
192.168.222.3:6060;branch=z9hG4bKPj0ErY.cMm5QCWJBxcXUGZaMSEGANy5GYS;received=192.168.10.53;rport=6060.
From: <sip:1111@192.168.10.62>;tag=tE3MGj9Puap-v9-nHDa4qQbLgs7Rqp40.
To: <sip:1111 at 192.168.10.62>.
Call-ID: ooCJKKeh1Lcj5FfHnUSM2ds0Sx0rsQrB.
CSeq: 63934 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:1111 at 192.168.10.62>.
Content-Length: 0.
.

#
U 192.168.10.62:5060 -> 192.168.10.53:6060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP
192.168.222.3:6060;branch=z9hG4bKPj0ErY.cMm5QCWJBxcXUGZaMSEGANy5GYS;received=192.168.10.53;rport=6060.
From: <sip:1111@192.168.10.62>;tag=tE3MGj9Puap-v9-nHDa4qQbLgs7Rqp40.
To: <sip:1111 at 192.168.10.62>;tag=as3c28f3f7.
Call-ID: ooCJKKeh1Lcj5FfHnUSM2ds0Sx0rsQrB.
CSeq: 63934 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Expires: 300.
Contact: <sip:1111 at 192.168.10.62>;expires=300.
Date: Sun, 14 Sep 2008 06:36:36 GMT.
Content-Length: 0.
.

#
U 192.168.10.53:6060 -> 192.168.10.62:5060
REGISTER sip:192.168.10.62 SIP/2.0.
Via: SIP/2.0/UDP
192.168.222.3:6060;rport;branch=z9hG4bKPjRfDDhSM8ZDRqfWrWjrAIAGAYFvoBZnkO.
Max-Forwards: 70.
From: <sip:3333@192.168.10.62>;tag=YuPbczRNGSYt8-cDPdZkf5JbWRlJb8W2.
To: <sip:3333 at 192.168.10.62>.
Call-ID: ABuVqqNtbJfb-AbHw160Maf7eUivdC0f.
CSeq: 44790 REGISTER.
Contact: <sip:1111 at 192.168.10.53:6060;transport=UDP>.
Expires: 300.
Content-Length:  0.
.

#
U 192.168.10.62:5060 -> 192.168.10.53:6060
SIP/2.0 100 Trying.
Via: SIP/2.0/UDP
192.168.222.3:6060;branch=z9hG4bKPjRfDDhSM8ZDRqfWrWjrAIAGAYFvoBZnkO;received=192.168.10.53;rport=6060.
From: <sip:3333@192.168.10.62>;tag=YuPbczRNGSYt8-cDPdZkf5JbWRlJb8W2.
To: <sip:3333 at 192.168.10.62>.
Call-ID: ABuVqqNtbJfb-AbHw160Maf7eUivdC0f.
CSeq: 44790 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Contact: <sip:3333 at 192.168.10.62>.
Content-Length: 0.
.

#
U 192.168.10.62:5060 -> 192.168.10.53:6060
SIP/2.0 200 OK.
Via: SIP/2.0/UDP
192.168.222.3:6060;branch=z9hG4bKPjRfDDhSM8ZDRqfWrWjrAIAGAYFvoBZnkO;received=192.168.10.53;rport=6060.
From: <sip:3333@192.168.10.62>;tag=YuPbczRNGSYt8-cDPdZkf5JbWRlJb8W2.
To: <sip:3333 at 192.168.10.62>;tag=as2902affa.
Call-ID: ABuVqqNtbJfb-AbHw160Maf7eUivdC0f.
CSeq: 44790 REGISTER.
User-Agent: Asterisk PBX.
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY.
Supported: replaces.
Expires: 300.
Contact: <sip:1111 at 192.168.10.53:6060;transport=UDP>;expires=300.
Date: Sun, 14 Sep 2008 06:36:36 GMT.
Content-Length: 0.
.

**********Successfully register as 3333 but crashed
======================================================================


>From the Case #2 when its requesting REGISTER with Expire: 300 we can see that
in "From" and "To" user name is : "3333 " but in contact it is :  "1111"
If my understanding is not wrong then I think we were expecting the
Contact some thing like this
Contact: <sip:3333 at 192.168.10.53:6060;transport=UDP>

what we are getting:
**************************************
From: <sip:3333@192.168.10.62>;tag=YuPbczRNGSYt8-cDPdZkf5JbWRlJb8W2.
To: <sip:3333 at 192.168.10.62>.
Contact: <sip:1111 at 192.168.10.53:6060;transport=UDP>.
**************************************



If our finding is wrong please suggest.

Regards,
Aftad







On Thu, Sep 11, 2008 at 2:47 PM, Salahuddin Ahmed <bd.rubel at gmail.com> wrote:
> Hello benny,
> I can explain what I done to run this...
>
> 1. Make a new empy file config_site.h in pjlib\include\pj and write
> "#include <pj/config_site_sample.h>" on it.
> 2. Edit bld.inf and symbian_ua_gui.mmp like #define SND_USE_APS 1
> 3. Then build in Carbide-1.3 with GCCE phone debug and launch this in Nokia
> E65 and N95.
> 4. Then add an new account(IP: 192.168.10.62, user:1111, pass:1111) using
> settings menu  and then press done (this time it register ok).
> 5. Then I make call to sip:3333 at 192.168.10.62 it also ok.
> 6. Then I again try to re change my account as IP:192.168.10.62 user:2222
> and pass:2222 this time this assertion fail(pj_assert(uri != NULL);) occured
> at line 591 in pjsua_acc.c.
>
>  We try to analize log file and our sip message I find that when pjsip try
> to send reresister message then it first send unregister message and then it
> send new register message. But when it receive the responce of register
> message then this acc_check_nat_addr function called by the regc_cb callback
> function and  here this assertion is occured and we find that in this
> function the Contact header field is malformed.
>
> I attatch a log file please review this.
>
> Thanks,
>
> On Wed, Sep 10, 2008 at 3:31 PM, Salahuddin Ahmed <bd.rubel at gmail.com>
> wrote:
>>
>> Thanks for replying,
>>  I using symbian_ua_gui in pjsip-apps for my mobile.
>> And I enable APS as you said in this link
>> http://trac.pjsip.org/repos/wiki/APS . I didn't change anything else. Just
>> build in carbide and launch this in my E65 everything is working fine. But
>> problem is when I retry to register with my server by changing the IP, user
>> and password in setting menu and got this assertion fail message with this
>> line number(line 591 in pjsua_acc.cpp).
>>
>> Thanks
>>
>> On Wed, Sep 10, 2008 at 4:36 PM, Benny Prijono <bennylp at pjsip.org> wrote:
>> > On Wed, Sep 10, 2008 at 8:30 AM, Salahuddin Ahmed <bd.rubel at gmail.com>
>> > wrote:
>> >>
>> >> Hello,
>> >>
>> >> I install PJSIP(rev.2259) in my E65. I got an problem to using this.
>> >> That is when I start this application then this register with my
>> >> Asterisk server successfully. But when I want to change my IP, User
>> >> and Password and press on done then it failed and give an assertion
>> >> fail message. I got this assertion in 591(pj_assert(uri != NULL);)
>> >> line in pjsua_acc.cpp file. I test this in emulator that is ok. Please
>> >> give me an solution how can I resolve this.
>> >>
>> >
>> > What application are you using? And could you list in detail exactly
>> > what
>> > settings did you set (and which you did not).
>> >
>> >  -benny
>> >
>> >
>> >>
>> >> Thanks,
>> >> Salahuddin Ahmed
>> >>
>> >
>> >
>> > _______________________________________________
>> > 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
>> >
>> >
>>
>>
>>
>> --
>> Salahuddin Ahmed
>>
>
>
>
> --
> Salahuddin Ahmed
>
> _______________________________________________
> 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