[OpenSIPS-Users] Merged Request

Anca Vamanu anca at opensips.org
Thu Feb 10 16:47:49 CET 2011


Hi Toyima,

That when you un-Register and the phone sends expires=0 you get that 
reply with contact and expires is correct, because of what you already 
had in database. There were two contacts and only one was deleted. In 
the reply all the registered contacts are retrieved.
The question is how you got with the two contacts - and probably it was 
because you closed the client and did not unregister.
You can test this by looking that there is no contact, open up the 
client and close it. Also run a message trace from the beginning to see 
clearly what the client sends.

Regards,

-- 
Anca Vamanu
OpenSIPS Developer





On 02/09/2011 12:30 PM, Toyima Dias wrote:
> I've seen something interesting here,
> When the zoiper softphone send the REGISTER with expires=0 (normal 
> behavior as i'm restarting the phone), Opensips answers with the 
> following: (take a look at the trace)
> #
> U 2011/02/09 12:22:19.307852 172.30.140.47:5060 
> <http://172.30.140.47:5060> -> 172.30.140.57:5060 
> <http://172.30.140.57:5060>
> REGISTER sip:172.30.140.57;transport=UDP SIP/2.0
> Via: SIP/2.0/UDP 
> 172.30.140.47:5060;branch=z9hG4bK-d8754z-15075d40ba64fa00-1---d8754z-
> Max-Forwards: 70
> Contact: 
> <sip:1001 at 172.30.140.47:5060;rinstance=bd724156614686a6;transport=UDP>;*expires=0
> *To: "1001"<sip:1001 at 172.30.140.57 
> <mailto:sip%3A1001 at 172.30.140.57>;transport=UDP>
> From: "1001"<sip:1001 at 172.30.140.57 
> <mailto:sip%3A1001 at 172.30.140.57>;transport=UDP>;tag=8e1f5910
> Call-ID: NTAwOGYyNDVhNzY4NjNhMjY0NTZlNTcwN2VjN2RhYWM.
> CSeq: 4 REGISTER
> Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, 
> INFO, SUBSCRIBE
> User-Agent: Zoiper rev.5324
> Authorization: Digest 
> username="1001",realm="172.30.140.57",nonce="4d5279090000001c0a15fa778702ef3d4d1139dfda7a275e",uri="sip:172.30.140.57;transport=UDP",response="859420dd3fefcccbf4d2727ff4db611d",algorithm=MD5
> Allow-Events: presence
> Content-Length: 0
>
> #
> U 2011/02/09 12:22:19.308281 172.30.140.57:5060 
> <http://172.30.140.57:5060> -> 172.30.140.47:5060 
> <http://172.30.140.47:5060>
> SIP/2.0 200 OK
> Via: SIP/2.0/UDP 
> 172.30.140.47:5060;branch=z9hG4bK-d8754z-15075d40ba64fa00-1---d8754z-
> To: "1001"<sip:1001 at 172.30.140.57 
> <mailto:sip%3A1001 at 172.30.140.57>;transport=UDP>;tag=c1aca2eceea8b9ed63a816bcd8cf10b1.e871
> From: "1001"<sip:1001 at 172.30.140.57 
> <mailto:sip%3A1001 at 172.30.140.57>;transport=UDP>;tag=8e1f5910
> Call-ID: NTAwOGYyNDVhNzY4NjNhMjY0NTZlNTcwN2VjN2RhYWM.
> CSeq: 4 REGISTER
> Contact: 
> <sip:1001 at 172.30.140.47:5060;rinstance=a03689bfb7cef683;transport=UDP>;*expires=2149
> *Server: OpenSIPS (1.6.3-notls (i386/linux))
> Content-Length: 0
> As you can see, Opensips answers with a expires of 2149; that's why 
> opensips keep this registration untill the expiration time reachs 0, 
> any ideas why opensips answer with this value?
> Thanks!
>
>
> 2011/2/9 Toyima Dias <toyimads at gmail.com <mailto:toyimads at gmail.com>>
>
>     Hello,
>     I've a doubt about a little problem in my opensips server, right
>     now i just have 2 softphones registered with my opensips
>     server, every time i restart the phones opensips creates the
>     following:
>     OpenSIPS:/usr/src/opensips-1.6.3-tls#opensipsctl ul show
>     Domain:: location table=512 records=2
>             AOR:: 1000
>                     Contact::
>     sip:1000 at 172.30.140.47:26612;rinstance=4975490f64787658 Q=
>                             Expires:: 3565
>                             Callid::
>     OWE3Y2NmYTI3MWNjNzRjOTkxNDU0YTQ1ZTMxM2RhNTU.
>                             Cseq:: 2
>                             User-agent:: X-Lite release 1011s stamp 41150
>                             State:: CS_SYNC
>                             Flags:: 0
>                             Cflag:: 0
>                             Socket:: udp:172.30.140.57:5060
>     <http://172.30.140.57:5060/>
>                             Methods:: 5951
>             AOR:: 1001
>                     Contact::
>     sip:1001 at 172.30.140.47:5060;rinstance=a03689bfb7cef683;transport=UDP
>     Q=
>                             Expires:: 2641
>                             Callid::
>     NGQ4ZjBmMDhiMGIyNDc5MTA5NmExMDE1YzFhZjFlMjg.
>                             Cseq:: 2
>                             User-agent:: Zoiper rev.5324
>                             State:: CS_SYNC
>                             Flags:: 0
>                             Cflag:: 0
>                             Socket:: udp:172.30.140.57:5060
>     <http://172.30.140.57:5060/>
>                             Methods:: 5951
>                     Contact::
>     sip:1001 at 172.30.140.47:5060;rinstance=333586886a503975;transport=UDP
>     Q=
>                             Expires:: 3597
>                             Callid::
>     NTI0Y2VlYWJjNzI3NDEyMjkzYTNkZTYzMTdhMGEwYmY.
>                             Cseq:: 2
>                             User-agent:: Zoiper rev.5324
>                             State:: CS_SYNC
>                             Flags:: 0
>                             Cflag:: 0
>                             Socket:: udp:172.30.140.57:5060
>     <http://172.30.140.57:5060/>
>                             Methods:: 5951
>     As you can see, user 1001 has created 2 registrations (don't now
>     why, it should sent an expires=0 when the softphone was
>     restarted...it might be a problem of the zoiper softphone?); the
>     problem is when 1000 calls 1001, Opensips send INVITE to both
>     registrations of 1001 (the same equipment), and this phone send a
>     482 Merged Request...i've been checking the section 8.2.2.2 at RFC
>     3261 but i'm quite confuse...what should i check?
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110210/b8d014f1/attachment-0001.htm>


More information about the Users mailing list