Shamus, CURL is a function, not an application, hence it returns a string and is called via ${CURL(...)}
Try this... [macro-features] exten => s,1,Set(rtn=${CURL(http://ekonserver.lan/aastra/push_notify.php?ec500=${DB(global/ec500)}&dnd=${DB(global/dnd)})}) exten => s,n,Set(rtn=${CURL(http://ekonserver.lan/cisco/push_notify.php?ec500=${DB(global/ec500)}&dnd=${DB(global/dnd)})}) The variable ${rtn} will contain the result of the CURL if desired. Lonnie On Aug 8, 2010, at 1:21 PM, Shamus Rask wrote: > I've tried using CURL, as well as Curl and curl, but still get the error. Is > there something else I'm missing? Below is the macro from my dialplan: > > macro-features] > exten => > s,1,CURL(http://ekonserver.lan/aastra/push_notify.php?ec500=${DB(global/ec500)}&dnd=${DB(global/dnd)}) > exten => > s,n,CURL(http://ekonserver.lan/cisco/push_notify.php?ec500=${DB(global/ec500)}&dnd=${DB(global/dnd)}) > > cheers, > Shamus > > ------------------------------------------------------------------------------ > Try using CURL as asterisk functions are case sensitive. > > Lonnie > > > On Aug 7, 2010, at 9:16 PM, Shamus Rask wrote: > > > I'm using AstLinux 0.7 and have tried to included the dialplan application > > Curl() in extensions.conf. On execution, I get the following error: > > > > [Aug 7 22:11:46] WARNING[4182]: pbx.c:1849 pbx_extension_helper: No > > application 'Curl' for extension (macro-features, s, 1) > > > > I've tried using curl from the Linux CLI and it works--I thought the > > dependency to use Curl() in Asterisk was that Linux had to support it as > > well. Has anyone else had any success with Curl() in AstLinux? > > > > many thanks, > > Shamus > > > > ------------------------------------------------------------------------------ > > This SF.net email is sponsored by > > > > Make an app they can't live without > > Enter the BlackBerry Developer Challenge > > > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > > Astlinux-users mailing list > > > Astlinux-users@lists.sourceforge.net > > > > https://lists.sourceforge.net/lists/listinfo/astlinux-users > > > > > Donations to support AstLinux are graciously accepted via PayPal to > pay...@krisk.org. > ------------------------------------------------------------------------------ > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Astlinux-users mailing list > Astlinux-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/astlinux-users > > Donations to support AstLinux are graciously accepted via PayPal to > pay...@krisk.org. ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Astlinux-users mailing list Astlinux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/astlinux-users Donations to support AstLinux are graciously accepted via PayPal to pay...@krisk.org.