[OpenSIPS-Users] Userloc, Registrar, and issues with location entries being removed and user agents ignore expires enforcing

Iñaki Baz Castillo ibc at aliax.net
Thu Apr 16 23:37:55 CEST 2009


El Jueves 16 Abril 2009, Bobby Smith escribió:
> U 2009/04/16 16:55:13.922594 1.2.3.4:1076 -> 4.3.2.1:5060
>  REGISTER sip:4.3.2.1 SIP/2.0.
>  Via: SIP/2.0/UDP 1.2.3.4:1085;branch=z9hG4bK-12b688e4;rport.
>  From: "Extension" <sip:username at 4.3.2.1>;tag=91682ba296592d12o0.
>  To: "Extension" <sip:username at 4.3.2.1>.
>  Call-ID: f2edcb48-8f3ca203 at 10.0.4.13.
>  CSeq: 50140 REGISTER.
>  Max-Forwards: 70.
>  Contact: "Extension" <sip:username at 1.2.3.4:1085>;expires=3600.
>  User-Agent: Linksys/SPA941-5.1.8.
>  Content-Length: 0.
>  Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, REFER.
>  Supported: replaces.
>  .
>
>  U 2009/04/16 16:55:13.922777 4.3.2.1:5060 -> 1.2.3.4:1076
>  SIP/2.0 200 OK.
>  Via: SIP/2.0/UDP 1.2.3.4:1085;branch=z9hG4bK-12b688e4;rport=1076.
>  From: "Extension" <sip:username at 4.3.2.1>;tag=91682ba296592d12o0.
>  To: "Extension"
> <sip:username at 4.3.2.1>;tag=d956cb2540203ca43d36f1e0fd077845.d21c. Call-ID:
> f2edcb48-8f3ca203 at 10.0.4.13.
>  CSeq: 50140 REGISTER.
>  Contact:
> <sip:username at 1.2.3.4:1076>;expires=45;received="sip:1.2.3.4:1076". Server:
> OSips SIP (1.4.5).
>  Content-Length: 0.
>
>
>  Opensips removes the contact from the database after the replied timer,
> which is 45 seconds -- however, the phone doesn't register again for 3600
> seconds.

This doesn't make sense: If the REGISTER has "expires=3600" and the 200 has 
"expires=45", then the UA should use 45. This is how SIP works.

However, Linksys phones have an option to override the expiration interval set 
by the registrar, probably your phone has this option enabled (I think it's in 
SIP tab of Linksys configuration web).



-- 
Iñaki Baz Castillo <ibc at aliax.net>



More information about the Users mailing list