Summary: | ASTERISK-22574: [patch]Value of expires= is ignored in the Contact header | ||
Reporter: | Filip Jenicek (phill) | Labels: | |
Date Opened: | 2013-09-23 02:55:27 | Date Closed: | 2013-10-03 17:58:01 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Channels/chan_sip/Registration |
Versions: | 1.8.18.0 | Frequency of Occurrence | Constant |
Related Issues: | |||
Environment: | Linux Operator 3.2.0-686 #1 SMP i686 GNU/Linux Asterisk 1.8.18.0 | Attachments: | ( 0) chan_sip_expires.patch |
Description: | Asterisk ignores the value of expires=<val> in the Contact header of a SIP Registry response when it doesn't end with a semicolon.
The following code reads "%30d;". tmptmp = strcasestr(contact, "expires="); if (tmptmp) { if (sscanf(tmptmp + 8, "%30d;", &expires) != 1) expires = 0; } } For example: "Contact: <sip:123456@178.33.22.11:5060;transport=UDP>;expires=1198" | ||
Comments: | By: Filip Jenicek (phill) 2013-09-23 03:03:20.543-0500 Patch removing the semicolon |