Running FreePBX 14.0.13.26 at the moment and i want to know if its possible todo an url call somehow.
I want to call this url from a button on the phone.
We are running a Gira Homeserver that has endpoints enabled and i call those like this:
Nothing to it, you want a Custom Destination. Add something like the following to extensions_custom.conf:
[from-internal-Dujith]
exten => s,1,Noop(Entering user defined context [from-internal-Dujith] in extensions_custom.conf)
exten => s,n,Set(result=${CURL(url_goes-here)})
exten => s,n,Return
The create a Custom Destination with a goto string of from-internal-Dujith,s,1, select the return option and choose the destination where the call goes next after the URL is loaded. If you need a dialable feature code, that’s a Misc Application
Certs on the PBX are irrelevant. The only uncertainty in my mind is the special characters in the URL, the @ and {} may need to be escaped by preceding each with a \ character. .
@Stewart1
I had to add the line same => n,Set(CURLOPT(ssl_verifypeer)=0)
to get it to accept the selfsigned cert. Thanks for the tip
@lgaetz
That worked like a charm (with the ssl adjustment), i was wondering if there was a way to end this with a nice beep or something? right now it will just hangup.
Edit: Found it, still getting head wrapped around the non-gui stuff. But after rephrasing my question in google found this: exten => s,n,Playback(confbridge-leave) exten => s,n,Hangup
Thanks for the help! reading up on macro’s and stuff like that.