Web app integration and URL callback

Hi all!!
Could someone point me in the right direction please?
I want to be able to make a call from the asterisk server and make the server post to a URL if the call is busy (a simple url and a parameter or two). How can this be achieved? Any info is greatly appreciated!


You can use the Asterisk ${DIALSTATUS} variable and the curl function
same => n,GotoIf($["${DIALSTATUS}" = “BUSY”]?busy:unavail)
same => n(unavail),Set(foo=${CURL(http://somewhere.com/somepage.html?x=5&y=4)})
same => n,Hangup()
same => n(busy),Set(foo=${CURL(http://somewhere.com/somepage.html?x=5&y=4)})
same => n,Hangup()

Thanks @ambiorixg12 !!! will look into this right away. :slight_smile:

1 Like