[asterisk-bugs] [JIRA] (ASTERISK-20908) SDP doesn't end with CRLF

Dennis DeDonatis (JIRA) noreply at issues.asterisk.org
Tue Jan 15 19:52:45 CST 2013


     [ https://issues.asterisk.org/jira/browse/ASTERISK-20908?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis DeDonatis updated ASTERISK-20908:
----------------------------------------

    Attachment: sip.conf

I've taken out all passwords and all sip devices except for the phone I used for the packet capture.  I just prefer that my packet captures and configs don't sit around forever on a public site.  I'm not as concerned for someone grabbing them before you get to download them and take a look, but I'd rather them not hang around here for years.  So, if you can, please delete this sip.conf when you're done with it, too, if that's ok.  Also, please let me know if I'm doing anything really odd in my sip.conf...
                        (Restricted to JIRA Users group)
            
> SDP doesn't end with CRLF
> -------------------------
>
>                 Key: ASTERISK-20908
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20908
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General
>    Affects Versions: 11.2.0
>         Environment: Fedora 17 - 3.6.11-1.fc17.x86_64 #1 SMP 
>            Reporter: Dennis DeDonatis
>            Assignee: Dennis DeDonatis
>         Attachments: asterisk-20908.diff, sip.conf
>
>
> I tried to use X-Lite 3.0 and before any RTP packets went through, X-Lite would send a Bye.  X-Lite was logging "ParseException dereferenced ParseBuffer eof" in its debug log.
> I tracked it down to the SDP message Asterisk sends for the OK after the INVITE doesn't end with a CRLF.  RFC4566 says "The sequence CRLF (0x0d0a) is used to end a record," so I guess that means the last record should have a CRLF.
> It's exceptionally rare I would use X-Lite 3.0, so this problem may exist in all of v11, but the issue intrigued me enough to track this down.
> I've attached a patch against 11.2.0-rc1, but this most likely isn't the best fix (just tacking a CRLF to the end).  It did prove out that adding a CRLF to the end of the SDP message allows the old X-Lite 3.0 to work with Asterisk 11.2.0-rc1.  11.1.0 has the same problem, although I did not try the patch with it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the asterisk-bugs mailing list