[asterisk-users] Problem with OPTIONS requests.

Tony Mountifield tony at softins.co.uk
Fri Jul 17 05:12:46 CDT 2020


In article <CAFJQOGdprXK34Ai2FUk0qoJnj9927MmVU+7fSi+=uxH02fZBPA at mail.gmail.com>,
John Kiniston <johnkiniston at gmail.com> wrote:
> 
> I'm implementing a SBC with my Asterisk PBX but the keeps disabling the
> trunk group I've configured and I think it may be because Asterisk is
> returning a 4r04 to the OPTIONS.
> 
> I've created a test context and have put in a wildcard pattern match to try
> and catch those options but it doesn't seem to work.
> 
> Is there a way to have asterisk respond with an 200 OK instead of a 404?

I think I found in the past that your dialplan needs an 's' extension in the
default context for the sip entry, for OPTIONS to return a 200 instead of 404.

It doesn't matter what the 's' extension does, so it can just call Hangup.

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-users mailing list