[OpenSIPS-Users] Occasional registration handling errors

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Jul 1 15:06:29 CEST 2014


Hi Chen-Che,

The problem is because you handle the SIP traffic in a stateless way 
(basically the re-transmission is handled as any request) while the auth 
module keeps state for the nonce (and there is a different between the 
original invite and the retransmission).

What you need to do is to place a "t_newtran()" before doing the auth - 
this will discard the retransmissions as forcing opensips to go in 
stateful mode.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 01.07.2014 13:49, microx wrote:
> Dear all,
>
> Recently, I encounter a problem that the SIP server abnormally processes
> REGISTER once or twice a day. An example is given as follows. A client sends
> a REGISTER with stale nonce to the SIP server. The SIP server replies a 401
> with a new nonce. The client sends a REGISTER with the new nonce to the SIP
> server. For some unknown reason, the SIP server processes the REGISTER a
> little longer and thus the client re-sends the REGISTER to the SIP server.
> At the same time, the two threads of the SIP server processes the two
> REGISTER separately. In the end, one thread replies 401 but the other
> replies 200 OK. A real log is listed below. The version of OpenSIPS I use is
> 1.9.1. Any comment is very welcome.
>
> Best regards,
> Chen-Che
>
> Jun 29 06:40:59 localhost /usr/sbin/opensips[25665]: REGISTER cseq nonce:
> sip:1000000022 at thcloud.com 5855
> 53afb4e1000054af38f8986e1e4b16b275cee3ac325f6fd1
> Jun 29 06:40:59 localhost /usr/sbin/opensips[25665]: code: -3
> Jun 29 06:40:59 localhost /usr/sbin/opensips[25619]: 401:
> sip:1000000022 at thcloud.com sip:1000000022 at thcloud.com
> 3700762647-73E1-0001 at 172.16.40.206 from 10.1.4.16
> Jun 29 06:41:01 localhost /usr/sbin/opensips[25668]: REGISTER cseq nonce:
> sip:1000000022 at thcloud.com 5856
> 53afb519000054b485bc2a10c601619817262c4ed2935dd5
> Jun 29 06:41:01 localhost /usr/sbin/opensips[25678]: REGISTER cseq nonce:
> sip:1000000022 at thcloud.com 5856
> 53afb519000054b485bc2a10c601619817262c4ed2935dd5
> Jun 29 06:41:01 localhost /usr/sbin/opensips[25678]: code: -3
> Jun 29 06:41:01 localhost /usr/sbin/opensips[25616]: 401:
> sip:1000000022 at thcloud.com sip:1000000022 at thcloud.com
> 3700762647-73E1-0001 at 172.16.40.206 from 10.1.4.16
> Jun 29 06:41:01 localhost /usr/sbin/opensips[25617]: 200:
> sip:1000000022 at thcloud.com sip:1000000022 at thcloud.com
> 3700762647-73E1-0001 at 172.16.40.206 from 10.1.4.16
>
>
>
> --
> View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/Occasional-registration-handling-errors-tp7592164.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>




More information about the Users mailing list