[asterisk-bugs] [JIRA] (ASTERISK-22600) [patch]Value of expires= is ignored in the Contact header

Rusty Newton (JIRA) noreply at issues.asterisk.org
Thu Sep 26 17:05:04 CDT 2013


Rusty Newton created ASTERISK-22600:
---------------------------------------

             Summary: [patch]Value of expires= is ignored in the Contact header
                 Key: ASTERISK-22600
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-22600
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Channels/chan_sip/Registration
    Affects Versions: 1.8.18.0
         Environment: Linux Operator 3.2.0-686 #1 SMP i686 GNU/Linux
Asterisk 1.8.18.0
            Reporter: Filip Jenicek


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 at 178.33.22.11:5060;transport=UDP>;expires=1198"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list