Asterisk was compiled with CURL and the latest versions of all CURL libraries are installed on the server.
Here is a snippet from my dial plan:
- Code: Select all
exten => _X!,n,Set(CURLOPT(conntimeout)=1)
exten => _X!,n,Set(CURLOPT(httptimeout)=1)
exten => _X!,n,NoOp(Before)
exten => _X!,n,NoOp(${CURL(http://www.spetnik.com/t.txt)})
exten => _X!,n,NoOp(After)
The dial plan processes fine until it hits the CURL line, as seen below. Then it just stops and after a few seconds the dial plan starts again from the beginning. This pattern repeats until the call disconnects.
- Code: Select all
-- Executing [13144882555@from-trunk-custom:4] Set("SIP/Trunk-000000ab", "CURLOPT(conntimeout)=1") in new stack
-- Executing [13144882555@from-trunk-custom:5] Set("SIP/Trunk-000000ab", "CURLOPT(httptimeout)=1") in new stack
-- Executing [13144882555@from-trunk-custom:6] NoOp("SIP/Trunk-000000ab", "Before") in new stack
