<div dir="ltr">Hey John, <div><br></div><div>In one installation I have, we use several monitoring tools (nagios based and custom scripts based) and we have the following:<div><br></div><div><font face="monospace">; Reply OK to SIP:OPTIONS<br>[public]<br>exten => s,1,Wait(1)<br>same => n,Hangup</font></div><div><font face="monospace">: For Nagios<br>exten => nagios,1,Wait(1)<br>same => n,Hangup</font><br></div><div><br></div><div>NOTES:</div><div><br></div><div>1- We have context=public in sip.conf, if you have anything else, you must update the dialplan above accordingly.</div><div>2- The second 'nagios' extension, is because the scripts need to send a user, so we have it preconfigured to "nagios", if it's from Kamailio it won't send a user and thus it will match in the s,1 exten. Feel free to remove this one.</div><div><br></div><div>Give it a try and let me know how it goes.</div><div><br></div><div>Alternatively, you may also be able to configure your SBC (kamailio/opensips? if so check dispatcher docs for *_reply_codes modparam) to accept a 404 reply to a SIP:OPTIONS as a valid response.</div><div><br></div><div><br></div><div>Hope it helps.</div><div><br></div><div>Cheers, </div><div>Joel.</div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 16, 2020 at 5:04 PM John Kiniston <<a href="mailto:johnkiniston@gmail.com">johnkiniston@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">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.<div><br></div><div>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.<br clear="all"><div><br></div><div>Is there a way to have asterisk respond with an 200 OK instead of a 404?</div><div><br></div>-- <br><div dir="ltr">A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.<br>---Heinlein</div></div></div>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>