I use Asterisk in version 13.38.1 and have a sip trunk with a operator. This operator work with Heartbeat. When I receive the OPTION in this trunk, my asterisk answer with 404 Not Found, but I need answer with 200OK. Following the option message and 404 not found messages:
How can I configure 200OK to answer to OPTIONS received?
OPTIONS should produce the same response as Dial, except for SDP handling.
With sensible use, 404 is just as good as 200, as both indicate that there is a valid SIP UAS there. However, if you need a 200, you must set up extensions.conf so that call will match a valid extension. You haven’t provided the request URI line, but assuming it is the same as the To: URI, there is no user part, which means that Asterisk will treat it as an attempt to access extension “s”. The extension just has to exist; it won’t get run, but priority 1 must exist.
From what you’re telling me, I should have an Asterisk extension answer the call and hang up. I have a doubt, in the To field, beacuse this just only have IP address. How should I do it in context?