Displaying 1 result from an estimated 1 matches for "rf_curl_post".
2009 Nov 24
1
asterisk trunk CURL hangs in the dialplan
We've encountered a strange issue with the trunk version of asterisk.
Our dialplan makes CURL calls and occasionally CURL stops working.
The dialplan looks something like this:
[macro-curl]
; ${ARG1} CURL URL
; ${ARG2} CURL POST
exten => s,1,NoOp(CURL)
...
exten => s,n(post),Set(RF_CURL_POST=userID=${RF_DIALER_USERID}&password=${RF_PASSWORD}&${ARG2})
exten => s,n,Set(CURLOPT(httptimeout)=5)
exten => s,n,Set(CURLOPT(conntimeout)=5)
exten => s,n,NoOp(CURL(${RF_URL}/${ARG1}?${RF_CURL_POST}))
exten => s,n,Set(RF_CURL_RESPONSE=${CURL(${RF_URL}/${ARG1},${RF_CURL_POST})})...