<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body 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>
    &nbsp; &lt;extension name="inte"&gt;<br>
    &nbsp; &nbsp; &nbsp; &lt;condition field="destination_number"
    expression="^9199$"&gt;<br>
    &nbsp; &nbsp; &nbsp; &lt;action application="read" data="0 9
    $${base_dir}/sounds/en/us/callie/conference/8000/input-string.wav
    res 60000 #"/&gt;<br>
    &nbsp; &nbsp; &nbsp; &lt;action application="sleep" data="2000"/&gt;<br>
    &nbsp; &nbsp; &nbsp; &lt;action application="export" data="new=${res}"/&gt;<br>
    &nbsp; &nbsp; &nbsp; &lt;action application="sleep" data="2000"/&gt;<br>
    &nbsp; &nbsp; &nbsp; &lt;action application="say" data="en name_spelled iterated
    ${new}"/&gt;<br>
    &nbsp; &nbsp; &nbsp; &lt;action application="curl" data="<a
      href="http://192.168.10.27/index.php" target="_top" rel="nofollow">http://192.168.10.27/index.php</a>&nbsp;
    post id=${new}" inline="true"/&gt;<br>
    &nbsp; &nbsp; &nbsp; &lt;action application="sleep" data="2000"/&gt;<br>
    &nbsp; &nbsp; &nbsp; &lt;action application="speak"
    data="flite|slt|${curl_response_data}"/&gt;<br>
    &nbsp; &nbsp; &nbsp; &lt;action application="info"/&gt;<br>
    &nbsp; &nbsp; &nbsp; &lt;action application="speak" data="flite|slt|Thanks for your
    query"/&gt;<br>
    &nbsp; &nbsp; &nbsp; &lt;action application="lua" data="helloworld.lua
    ${curl_response_data}"/&gt;<br>
    &nbsp; &nbsp; &nbsp; &lt;/condition&gt;<br>
    &nbsp; &nbsp; &lt;/extension&gt;<br>
    <br>
    Now <a href="http://192.168.10.27/index.php" target="_top"
      rel="nofollow">http://192.168.10.27/index.php</a>&nbsp;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>
    <br>
    <hr noshade="noshade" size="1" color="#cccccc">
    <div style="font-weight: bold;"><br>
    </div>
  
<br>
<font color="BLACK"><font size="2.5"> <br>
             <hr>
                  Disclaimer: The information contained in this
                  communication is confidential, private, proprietary,
                  or otherwise privileged and is intended only for the
                  use of the addressee.Unauthorized use, disclosure,
                  distribution or copying is strictly prohibited and may
                  be unlawful. If you have received this communication
                  in error, please delete this message and notify the
                  sender immediately - Samin TekMindz India Pvt.Ltd.
                  <hr>
                </font>
              </font>

<br>
</body>
</html>