[pjsip] SIP REGISTER problem encountered in symbian build

Benny Prijono bennylp at pjsip.org
Sat Apr 19 08:29:49 EDT 2008


On Thu, Apr 17, 2008 at 3:54 AM, Alex T. W. LEUNG <alexleung at astri.org> wrote:
>
>
> Hello,
>
> The symbian_ua failed to register successfully. Instead, it returns:
>
> pjsua_acc.c SIP registration error: Credential failed to authenticate
> (PJSIP_EFAILEDCREDENTIAL [status=171100]
>
> Both symbian_ua on emulator and symbian_ua on actual device (N82) will see
> the same error. However, strangely, pjsua of release 0.8.0 can register
> successfully on Windows, using the same sip credentials.
>
> Here is the packet flow captured:
> |Time     | 10.6.104.18       | proxy     |
> |0.000    |         Request: REGISTER s           |SIP: Request: REGISTER
> sip:proxy (CSeq: 43983)
> |         |(5060)   ------------------>  (5060)   |
> |0.123    |         Status: 401 Unautho           |SIP: Status: 401
> Unauthorized - no credentials are provided in the request    (0 bindings)
> |         |(5060)   <------------------  (5060)   |
> |0.503    |         Request: REGISTER s           |SIP: Request: REGISTER
> sip:proxy (CSeq: 43984)
> |         |(5060)   ------------------>  (5060)   |
> |0.591    |         Status: 200 OK    (           |SIP: Status: 200 OK    (1
> bindings)
> |         |(5060)   <------------------  (5060)   |
> |0.887    |         Request: REGISTER s           |SIP: Request: REGISTER
> sip:proxy (CSeq: 43985)
> |         |(5060)   ------------------>  (5060)   |
> |0.981    |         Status: 401 Unautho           |SIP: Status: 401
> Unauthorized - no credentials are provided in the request    (0 bindings)
> |         |(5060)   <------------------  (5060)   |
> |1.038    |         Request: REGISTER s           |SIP: Request: REGISTER
> sip:proxy (CSeq: 29318)
> |         |(5060)   ------------------>  (5060)   |
> |1.144    |         Status: 401 Unautho           |SIP: Status: 401
> Unauthorized - no credentials are provided in the request    (0 bindings)
> |         |(5060)   <------------------  (5060)   |
> |1.384    |         Request: REGISTER s           |SIP: Request: REGISTER
> sip:proxy (CSeq: 43986)
> |         |(5060)   ------------------>  (5060)   |
> |1.482    |         Status: 200 OK    (           |SIP: Status: 200 OK    (0
> bindings)
> |         |(5060)   <------------------  (5060)   |
> |1.718    |         Request: REGISTER s           |SIP: Request: REGISTER
> sip:proxy (CSeq: 29319)
> |         |(5060)   ------------------>  (5060)   |
> |1.810    |         Status: 401 Unautho           |SIP: Status: 401
> Unauthorized - server-specified nonce should be uniquely generated    (0
> bindings)
> |         |(5060)   <------------------  (5060)   |
>
> The above are facts gathered. I suspect that the error may be due to the
> existence of REGISTER requests with strange CSeq number. In the above
> capture, CSeq series of 43xxx seems to be normal. But the REGISTER with CSeq
> 29xxx seems to be quite strange and unnecessary. By the way, pjsua (rel
> 0.8.0) on Windows don't generate these kind of strange CSeq series in the
> REGISTER process.

Hi Alex,

Since release 0.8.0, we have a feature to automatically update the
registration if the Contact address is different than the Via
received/rport value. Have a look at
http://trac.pjsip.org/repos/ticket/381

This works fine with most servers so far, and it should. Could it be
that your server doesn't like this?

Cheers
 Benny

> Thank you for shedding some lights on this issue! Wish you all a good day.
>
> Alex Leung.
>




More information about the pjsip mailing list