<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-dev] Curl Problem</TITLE>
</HEAD>
<BODY>
<FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Inline... <BR>
<BR>
Keep in mind that variables in the dialplan are expanded before the first action is even processed... If you want that variable to be usable on the next action w/out a re-entry into the dialplan (ie: transfer) you need to inline that application call... <BR>
<BR>
<BR>
On 1/30/12 3:13 AM, "Inge Kristiansen" <<a href="inge.kristiansen@gmail.com">inge.kristiansen@gmail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'><BR>
Hi everybody<BR>
<BR>
I have a small problem from the dial plan. I want to bill calls made by softphones.<BR>
when I do a curl lookup from the dialplan, I can not find any value in ${curl_response_data}.<BR>
<BR>
Testing in the cli returns correct value, so it looks correct.<BR>
<BR>
<action application="curl" data="data=<a href="http://208.117.44.59/LCR/xxxxxxx.aspx?lega=xxxxx&legb=xxxxxx">http://208.117.44.59/LCR/xxxxxxx.aspx?lega=xxxxx&legb=xxxxxx</a>" /><BR>
<action application="export" data="nolocal:nibble_rate=${<B>curl_response_data</B>}" /><BR>
<BR>
Any suggestions?<BR>
<BR>
regds <BR>
Inge<BR>
<BR>
<BR>
<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_________________________________________________________________________<BR>
Professional FreeSWITCH Consulting Services:<BR>
<a href="consulting@freeswitch.org">consulting@freeswitch.org</a><BR>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><BR>
<BR>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<BR>
<a href="http://www.cudatel.com">http://www.cudatel.com</a><BR>
<BR>
Official FreeSWITCH Sites<BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><BR>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><BR>
<BR>
FreeSWITCH-dev mailing list<BR>
<a href="FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE>
</BODY>
</HTML>