[Home]

Summary:ASTERISK-18107: Asterisk is not answering correctly the OPTIONS messages sent by SIP provider.
Reporter:Jorge Kleinerman (jkleinerman)Labels:
Date Opened:2011-07-10 18:47:11Date Closed:2011-07-11 14:42:14
Priority:MajorRegression?
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:1.8.4 Frequency of
Occurrence
Constant
Related
Issues:
duplicatesASTERISK-16997 [patch] No answer to OPTIONS packet because Asterisk not looking for 's' in default context
Environment:Asterisk connected to a SIP provider via SIP TrunkAttachments:
Description:Connecting Asterisk to an external SIP provider, when the provider sends to asterisk OPTIONS message to qualify the connection, Asterisk is answering with 404 Not Found message.
Looking in the CLI with sip debugging enabled, we can see Asterisk looking for an empty extension in default context instead of "s" extension as previous versions. For this reason, asterisk is answering with 404.
In 1.6 branches, we can see asterisk looking for "s" extension in default context. In those version, adding Noop() application in "s" extension, Asterisk answer correctly with 200 OK message.



Here we can see the problem:


<--- SIP read from UDP:186.108.39.242:5060 --->
OPTIONS sip:192.169.0.2:5060 SIP/2.0
Via: SIP/2.0/UDP 186.108.39.242:5060;branch=z9hG4bK74utdt10bon11jg20781
Call-ID: d07ef635a3f65b56213c020a55d4c5e300129n0@186.108.39.242
To: sip:ping@192.169.0.2
From: <sip:ping@186.108.39.242>;tag=969ad2126d9c55b3a1ba20a5113e1db400129n0
Max-Forwards: 70
CSeq: 299310 OPTIONS

<------------->
--- (7 headers 0 lines) ---
Looking for  in default (domain 192.169.0.2:5060)                    <<<<---- HERE, THE PROBLEM !!!

<--- Transmitting (no NAT) to 186.108.39.242:5060 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 186.108.39.242:5060;branch=z9hG4bK74utdt10bon11jg20781;received=186.108.39.242
From: <sip:ping@186.108.39.242>;tag=969ad2126d9c55b3a1ba20a5113e1db400129n0
To: sip:ping@192.169.0.2;tag=as3774a648
Call-ID: d07ef635a3f65b56213c020a55d4c5e300129n0@186.108.39.242
CSeq: 299310 OPTIONS
Server: Asterisk PBX 1.8.4.4
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces
Accept: application/sdp
Content-Length: 0

Comments:By: Richard Mudgett (rmudgett) 2011-07-11 14:40:46.178-0500

This has already been fixed by ASTERISK-16997.