<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 8, 2013 at 1:43 AM, Rajat toshniwal <span dir="ltr"><<a href="mailto:rajat.toshniwal@tekmindz.com" target="_blank">rajat.toshniwal@tekmindz.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div bgcolor="#ffffff" text="#000000">
Hi
<br>
<br>
I am new to freeswitch and i am trying to integrate one php
application with freeswitch. Purpose is freeswitch will send the
user dialed (dtmf numbers) as input to this php application and in
return it will send the response back.
<br>
<br>
Dialplan which I have written for this is
<br>
<br>
<extension name="inte"><br>
<condition field="destination_number"
expression="^9199$"><br>
<action application="read" data="0 9
$${base_dir}/sounds/en/us/callie/conference/8000/input-string.wav
res 60000 #"/><br>
<action application="sleep" data="2000"/><br>
<action application="export" data="new=${res}"/><br>
<action application="sleep" data="2000"/><br>
<action application="say" data="en name_spelled iterated
${new}"/><br>
<action application="curl" data="<a href="http://192.168.10.27/index.php" rel="nofollow" target="_blank">http://192.168.10.27/index.php</a>
post id=${new}" inline="true"/><br>
<action application="sleep" data="2000"/><br>
<action application="speak"
data="flite|slt|${curl_response_data}"/><br>
<action application="info"/><br>
<action application="speak" data="flite|slt|Thanks for your
query"/><br>
<action application="lua" data="helloworld.lua
${curl_response_data}"/><br>
</condition><br>
</extension><br>
<br>
Now <a href="http://192.168.10.27/index.php" rel="nofollow" target="_blank">http://192.168.10.27/index.php</a> this is a url on
which i am sending my requests. Problem here is curl is not taking
variable in the post. If instead of ${new}, i put some random static
value like 256, then it is working perfectly fine but I want my
users to input the values. Kindly suugest some way via which I can
post variables in curl url <br></div></blockquote><div>The issue is that you have inline="true" on your curl app. Remove that and you should be fine. <br></div><div>-MC<br></div></div><br clear="all"><br>-- <br>
Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br><a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br>
<br>
</div></div>