[OpenSIPS-Users] Question regarding expire time of mid-register

Jeffrey Zhao chunyong.zhao at qq.com
Wed Mar 17 06:40:23 EST 2021


Dear Team


For legacy Cisco IP phones, the SIP registration expiration time must be set to less than 120 seconds, and there is no way to control the timer on phone end.
It must be controlled on the SIP registrar end(Expires value set to 120 in registration reply SIP message).


I am not sure whether there is a way in OpenSIPS script to update the 'Expires' header(base on user agent string, if Cisco Phone, then Expires: 120) in the onreply_route.


Which parameter is writtable to achieve the target?


Thank you so much!





REGISTER sip:test.com SIP/2.0
Via: SIP/2.0/UDP 10.167.6.60:5060;branch=z9hG4bK3593290796
From: "Ooi, Liyong" <sip:3827 at test.com>;tag=30622762
To: "Ooi, Liyong" <sip:3827 at test.com>
Call-ID: 0_2497201195 at 10.167.6.60
CSeq: 1 REGISTER
Contact: <sip:3827 at 10.167.6.60:5060>
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards: 70
User-Agent: Cisco CP-7975
Expires: 900
Allow-Events: talk,hold,conference,refer,check-sync
Content-Length: 0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20210317/79b5f473/attachment.html>


More information about the Users mailing list