Invoke a function on Asterisk and get response through SIP requests

I have an FreePBX server and a custom developed client for extension registration. And I would like to trigger some function on this Asterisk server by sending a SIP request.
And also I need to get back the result of the executed task to the client application.
In my situation, a direct HTTP request sending is not possible between Asterisk server and the client.
So I require a solution based on SIP itself. Is there any way to do this using SIP OPTIONS, SIP MESSAGE or by means of any other requests?

If you haven’t already done so, this question would be a better fit in the asterisk forum.

The only way I know of doing this is to add content to the sip_notify_custom.conf file and then trigger the notify from the Asterisk console with:

sip notify [event-name] [ext_number]

It will be up to the endpoint to properly interpret the notify packet.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.