[OpenSIPS-Users] Question regarding expire time of mid-register
chunyong.zhao at qq.com
Wed Mar 17 06:40:23 EST 2021
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
User-Agent: Cisco CP-7975
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users