<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">&lt;<a href="mailto:rajat.toshniwal@tekmindz.com" target="_blank">rajat.toshniwal@tekmindz.com</a>&gt;</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>
      &lt;extension name=&quot;inte&quot;&gt;<br>
          &lt;condition field=&quot;destination_number&quot;
    expression=&quot;^9199$&quot;&gt;<br>
          &lt;action application=&quot;read&quot; data=&quot;0 9
    $${base_dir}/sounds/en/us/callie/conference/8000/input-string.wav
    res 60000 #&quot;/&gt;<br>
          &lt;action application=&quot;sleep&quot; data=&quot;2000&quot;/&gt;<br>
          &lt;action application=&quot;export&quot; data=&quot;new=${res}&quot;/&gt;<br>
          &lt;action application=&quot;sleep&quot; data=&quot;2000&quot;/&gt;<br>
          &lt;action application=&quot;say&quot; data=&quot;en name_spelled iterated
    ${new}&quot;/&gt;<br>
          &lt;action application=&quot;curl&quot; data=&quot;<a href="http://192.168.10.27/index.php" rel="nofollow" target="_blank">http://192.168.10.27/index.php</a> 
    post id=${new}&quot; inline=&quot;true&quot;/&gt;<br>
          &lt;action application=&quot;sleep&quot; data=&quot;2000&quot;/&gt;<br>
          &lt;action application=&quot;speak&quot;
    data=&quot;flite|slt|${curl_response_data}&quot;/&gt;<br>
          &lt;action application=&quot;info&quot;/&gt;<br>
          &lt;action application=&quot;speak&quot; data=&quot;flite|slt|Thanks for your
    query&quot;/&gt;<br>
          &lt;action application=&quot;lua&quot; data=&quot;helloworld.lua
    ${curl_response_data}&quot;/&gt;<br>
          &lt;/condition&gt;<br>
        &lt;/extension&gt;<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=&quot;true&quot; 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>