[Home]

Summary:ASTERISK-02671: AudioCodes with last firmware couldnt register on Asterisk
Reporter:ameoba32 (ameoba32)Labels:
Date Opened:2004-10-25 02:20:28Date Closed:2011-06-07 14:10:08
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/Interoperability
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Audiocodes(AC) device failed to register on asterisk with username and secret. AC is transmitting all auth info, but * is replying with Forbidden error.

****** ADDITIONAL INFORMATION ******

With sip debug enabled i found that audiocodes transmit sip header auth info in this format:

User-Agent: Audio-Codes
Authorization: Digest username="XXX",
              realm="asterisk",
              nonce="XXXXXXX",
              uri="sip:XXX.XXX.XXX.XXX",
              response="074029010748f628e7c52cc8b8dd390b"

yes! with line breaks after each parameter. As i found in header parsing algorithm, * takes only first line of such authorization header, completly ignoring other lines and of course auth will always fail.
i dont know if this header is RFC compliant. May be its * failure.
thanks.
Comments:By: ameoba32 (ameoba32) 2004-10-25 02:29:54

Yep, i found it in RFC 3261:

Header fields can be extended over multiple lines by preceding each
extra line with at least one SP or horizontal tab (HT).  The line
break and the whitespace at the beginning of the next line are
treated as a single SP character.  Thus, the following are
equivalent:

     Subject: I know you're there, pick up the phone and talk to me!
     Subject: I know you're there,
              pick up the phone
              and talk to me!

By: Olle Johansson (oej) 2004-10-25 03:11:11

Turn on pedantic=yes in sip.conf and test again!

By: Mark Spencer (markster) 2004-10-25 09:09:19

This does not even remotely qualify as a "block" bug.  Please read the bug guidelines before placing any additional bugs.

By: Brian West (bkw918) 2004-10-27 19:29:40

Any response... please respond.

By: ameoba32 (ameoba32) 2004-10-28 01:29:01

pedantic=yes in sip.conf fixed this problem.

By: Brian West (bkw918) 2004-10-28 01:47:51

Config issue.