[OpenSIPS-Users] Text Message Duplication

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Jun 20 10:15:58 CEST 2012


Hi Nick,

Usually this happens for INVITEs, not for REGISTER, when you have a 
local processing (in opensips) that may take too long before sending a 
reply back.

You can deal with this (without disabling the nonce_check in 2 ways:
     1) send a statless 100 reply asap in script, to prevent retransmissions
     2) go statefull, so that you can detect retransmissions in script 
and absorb them - add t_newtran() before the auth part.

Regards,

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


On 06/20/2012 09:35 AM, Nick Altmann wrote:
> Bogdan,
>
> in some cases, if other side answer slowly, when opensips authenticate
> MESSAGE, client generates retransmits.
> If in opensips modparam("auth", "disable_nonce_check", 1) (default),
> we receive such dialog:
>
> CLIENT      OPENSIPS
>>> MESSAGE
> <<  401 with first nonce
>>> MESSAGE
> long timeout, server after opensips doesn't answer…
>
>>> MESSAGE (retransmit with first nonce)
> <<  401 with second (another!!!) nonce
>>> MESSAGE with another CALLID, because second authentication
> long timeout, server after opensips doesn't answer…
>
>>> MESSAGE (retransmit with second nonce)
> <<  401 with third (another!!!) nonce
>>> MESSAGE with another CALLID, because third authentication
> <<  200 OK
>
> Server after opensips receives 3 MESSAGE packets with another CSEQ and
> another CALLID.
>
> I solved this situation with disabling disposable nonces:
> modparam("auth", "nonce_expire", 120)
> modparam("auth", "disable_nonce_check", 1)
>
> --
> Nick
>
> 2012/6/20 Bogdan-Andrei Iancu<bogdan at opensips.org>:
>> Hi Arjun,
>>
>> A simple explanation is that your UAC might be registered twice with
>> opensips (has 2 records in usrloc) ->  check with "opensipsctl ul show".
>>
>> If so, opensips will do parallel forking (for the received requests) to all
>> registered contacts.
>>
>> Regards,
>>
>> Bogdan-Andrei Iancu
>> OpenSIPS Founder and Developer
>> http://www.opensips-solutions.com
>>
>>
>> On 06/19/2012 01:24 PM, Arjun Shankar K S wrote:
>>
>> Hi All,
>>
>> Greeting to everyone!!!
>>
>> I have installed opensips 1.7.1 with RTP Proxy. I am facing the following
>> issue, When I send a Text Message to any UAC, I receive 2 Messages instead
>> of one at the receiver UAC. I have tried with different SIP Clients but the
>> problem persists.
>>
>> I am newbie to opensips!! Any advice is sincerely appreciated.
>>
>> Thanks,
>> Arjun
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>> _______________________________________________
>> Users mailing list
>> Users at lists.opensips.org
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users



More information about the Users mailing list