[asterisk-bugs] [JIRA] (ASTERISK-25306) Persistent subscriptions can save multiple SIP messages at once, leading to potential crashes.

Mark Michelson (JIRA) noreply at issues.asterisk.org
Thu Aug 6 13:08:32 CDT 2015


Mark Michelson created ASTERISK-25306:
-----------------------------------------

             Summary: Persistent subscriptions can save multiple SIP messages at once, leading to potential crashes.
                 Key: ASTERISK-25306
                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25306
             Project: Asterisk
          Issue Type: Bug
      Security Level: None
          Components: Resources/res_pjsip_pubsub
    Affects Versions: 13.4.0
            Reporter: Mark Michelson


Currently, persistent subscriptions save the data read from the socket as the SIP packet. The problem is that with stream-based sockets, the data read from the socket could include multiple SIP packets. If the first of those SIP packets is a SIP response instead of a SUBSCRIBE request, then when the SUBSCRIBE request is handled, then both the response and the SUBSCRIBE are saved to persistent storage. If Asterisk is restarted, then attempting to recreate the subscription will crash since the code assumes that the recreated SIP message will be a SUBSCRIBE request, not a response.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list