[asterisk-dev] Asterisks CSeq parsing not RFC 3261 compliant

Johansson Olle E oej at edvina.net
Wed Jun 11 06:52:42 CDT 2008


11 jun 2008 kl. 13.01 skrev Raj Jain:

> On Wed, Jun 11, 2008 at 5:55 AM, Tobias Engel <t-asterisk-dev at tobias.org 
> > wrote:
>> The registration failed, and after some tcpdumping I found out that
>> Asterisk sends the following CSeq header:
>>
>> CSeq: 4 REGISTER
>>
>> and the CSeq header in the response by the BTS looks like this:
>>
>> CSeq: 4    REGISTER
>>
>> Asterisk fails to match that response to its request.
>
> This gets even more interesting than that. Not only any can you have
> tabs as whitespaces, SIP ABNF rules allow you to fold header lines.
> For instance, the following is a valid header:
>
> Cseq: 4
>  REGISTER
>
> The reality is that the current chan_sip doesn't really support proper
> SIP ABNF parsing.

We sure do support multiline if you turn on pedantic.

It surprises me that no test tools I've met during my tests with  
chan_sip has caught this case,
and I've tested with a lot of evil test tools that tests SIp parsing.  
We do better than most
devices, Raj :-)

We need to fix this issue though.

/O



More information about the asterisk-dev mailing list