[asterisk-users] using cURL for MOH Realtime
Hi, I had a look at https://wiki.asterisk.org/wiki/display/AST/cURL and I was wondering if anyone had an example of what the response would look like if I wanted to use it for MOH with Asterisk Realtime. TIA. Dovid -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Using CURL
Is your dynamic page returning a newline after, like SIP/12345-1\n? Moj Mike wrote: Hi, Here is my first step (call it a proof of concept) in using the hint priority with dynamic values. Background - this works exten = 12345,hint,SIP/12345-1 To make this a little dynamic, I used a web page to return to me the value of the sip registration. In other words, http://www.somepage.com/test.html returns the following (without quotes): SIP/12345-1 I should therefore be getting the same result by using the following: exten = 12345,hint,${CURL(http://www.somepage.com/test.html)} BUTno. I get the following in the Asterisk CLI when reloading the config: Aug 8 18:24:27 NOTICE[26765]: pbx.c:1508 pbx_substitute_variables_helper_full: Error in extension logic (missing '}') Now, I'm paying close attention to my Asterisk code up there, and I don't see a missing '}' . Anybody has an explanation for me? Is there some deeper meaning to this notice I am getting? Mike ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] Using CURL
Hi, Here is my first step (call it a proof of concept) in using the hint priority with dynamic values. Background - this works exten = 12345,hint,SIP/12345-1 To make this a little dynamic, I used a web page to return to me the value of the sip registration. In other words, http://www.somepage.com/test.html returns the following (without quotes): SIP/12345-1 I should therefore be getting the same result by using the following: exten = 12345,hint,${CURL(http://www.somepage.com/test.html)} BUTno. I get the following in the Asterisk CLI when reloading the config: Aug 8 18:24:27 NOTICE[26765]: pbx.c:1508 pbx_substitute_variables_helper_full: Error in extension logic (missing '}') Now, I'm paying close attention to my Asterisk code up there, and I don't see a missing '}' . Anybody has an explanation for me? Is there some deeper meaning to this notice I am getting? Mike ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users