<div>Jerry,</div>  <div>&nbsp;</div>  <div>Great information. I will try to implement it.</div>  <div>Thanks a lot.</div>  <div>&nbsp;</div>  <div>Elpidio<BR><BR><B><I>Colin Anderson &lt;ColinA@landmarkmasterbuilder.com&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">  <META content="MSHTML 6.00.2800.1106" name=GENERATOR>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006>You need to use AGI to do this. You would put a shell script yourscript.agi in /var/lib/asterisk/agi-bin</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006></SPAN></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006>If you want an HTTP response dumped into your dialplan as a variable, you would use wget:</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN
 class=303115417-21092006></SPAN></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006>myagi.agi:</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006></SPAN></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006>#!/bin/bash</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006>TMPFILE=/tmp/$$.$RANDOM</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006>wget -q -t3 --output-document=$TMPFILE <A href="http://mysite.com/myhtml.html">http://mysite.com/myhtml.html</A></SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006>MYVAR=$(cat $TMPFILE)</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006>echo "SET VARIABLE MYASTERISKVAR \"$MYVAR\""</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff
 size=2><SPAN class=303115417-21092006>rm $TMPFILE</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006></SPAN></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006>You would call the AGI like this:</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006></SPAN></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006>exten =&gt; foo,1,AGI(/var/lib/asterisk/agi-bin/myagi.agi)</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006></SPAN></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006>Optionally you can pass a parameter to the AGI:</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006></SPAN></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006> 
 <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006>exten =&gt; foo,1,AGI(/var/lib/asterisk/agi-bin/myagi.agi foo)</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006></SPAN></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006>and you would retrieve the parameter in the AGI using the $1, $2, $3 variables in the AGI for parameter 1,2,3 etc.</SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006></SPAN></FONT>&nbsp;</DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006>hth</SPAN></FONT></DIV></SPAN></FONT></DIV>  <DIV><FONT face=Arial color=#0000ff size=2><SPAN class=303115417-21092006></SPAN></FONT>&nbsp;</DIV>  <BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Elpidio Ramos
 [mailto:elpidio@ramosoft.com]<BR><B>Sent:</B> Thursday, September 21, 2006 10:52 AM<BR><B>To:</B> Asterisk Users Mailing List - Non-Commercial Discussion<BR><B>Subject:</B> Re: [asterisk-users] CURL<BR><BR></FONT></DIV>  <DIV>Jerry,</DIV>  <DIV>&nbsp;</DIV>  <DIV>Using system, is there a way to read into an asterisk variable the content of the response (i.e. a text in an http response) ?. If this is possible then I can use this approach.</DIV>  <DIV>&nbsp;</DIV>  <DIV>Thanks<BR><BR><B><I>Jerry Geis &lt;geisj@pagestation.com&gt;</I></B> wrote:</DIV>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">You can always use the System() command in asterisk to call the curl executable.<BR><BR>jerry<BR>---------------<BR><BR>Ok, after requesting information to digium (no answer yet) and being informed that asterisk-dev is *NOT* a support hot line, I am trying in this list to see if someone has information on this regard.<BR><BR>I
 know this is not a support area so I am only trying to get some clues.<BR><BR>I have asterisk be and I am trying to use the CURL function (or application?). It is not available when I try it even though it is documented. Does anyone knows if there is a way to load it as a function/application inside asterisk? if so, is there code to download/compile to get it working inside asterisk?<BR><BR>Any clue will be highly appreciated. (I keep trying digium support).<BR><BR>Elpidio<BR><BR><BR>Elpidio Ramos <BR>President <BR>RM International Services SA CV <BR>Web: http://www.ramosoft.com <BR>Mex: +52 (55) 5116-9804 Office<BR>+52 (55) 5116-9805 Fax <BR>+52 (55) 1755-6601 Cell<BR>USA: +1 (801) 494-1415 Office<BR>+1 (240) 250-8264 Fax<BR>+1 (801) 938-4740 Direct<BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR><BR>_______________________________________________<BR>--Bandwidth and Colocation provided by Easynews.com --<BR><BR>asterisk-users mailing list<BR>To UNSUBSCRIBE or update options
 visit:<BR>http://lists.digium.com/mailman/listinfo/asterisk-users<BR></BLOCKQUOTE><BR><BR><BR>  <DIV id=RTEContent>  <DIV id=RTEContent>  <DIV id=RTEContent>  <DIV>  <DIV>  <DIV>  <DIV>  <DIV>  <DIV>  <DIV><STRONG><FONT size=3>Elpidio Ramos</FONT></STRONG> <BR>President&nbsp;<BR>RM International Services&nbsp;SA CV <BR>Web: http://www.ramosoft.com <BR>Mex:&nbsp; +52 (55) 5116-9804 Office<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +52 (55) 5116-9805 Fax </DIV>  <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +52 (55)&nbsp;1755-6601 Cell<BR>USA: +1 (801) 494-1415 Office</DIV>  <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +1 (240) 250-8264 Fax</DIV>  <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +1 (801) 938-4740&nbsp;Direct</DIV>  <DIV>&nbsp;</DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></BLOCKQUOTE>_______________________________________________<BR>--Bandwidth and Colocation provided by Easynews.com --<BR><BR>asterisk-users
 mailing list<BR>To UNSUBSCRIBE or update options visit:<BR>http://lists.digium.com/mailman/listinfo/asterisk-users<BR></BLOCKQUOTE><BR><BR><BR><DIV id=RTEContent>  <DIV id=RTEContent>  <DIV id=RTEContent>  <DIV>  <DIV>  <DIV>  <DIV>  <DIV>  <DIV>  <DIV><STRONG><FONT size=3>Elpidio Ramos</FONT></STRONG> <BR>President&nbsp;<BR>RM International Services&nbsp;SA CV <BR>Web: http://www.ramosoft.com <BR>Mex:&nbsp; +52 (55) 5116-9804 Office<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +52 (55) 5116-9805 Fax </DIV>  <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +52 (55)&nbsp;1755-6601 Cell<BR>USA: +1 (801) 494-1415 Office</DIV>  <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +1 (240) 250-8264 Fax</DIV>  <DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; +1 (801) 938-4740&nbsp;Direct</DIV>  <DIV>&nbsp;</DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV></DIV>