title: Freeswitch - Calling out via mod_curl using the dialplan
body: <p>I am trying to replicate an API service we use on another switch which requires the passing of basic call information (Caller No and Callee numbers) to a webpage using the mod_curl action.</p>
  
  <p>The code I have is this , in the default inbound dialplan:</p>
  
  <pre><code> &lt;action application="curl" data="http://web.test.net/fs.php post id=${new}" inline="true"/&gt;
  </code></pre>
  
  <p>If I paste the curl request from within FS_CLI it does paste information,so I know curl is enabled and working on the server.  However, If I dial the number associated with the dialplan nothing happens - I cant even see that FS has tried to run the action.</p>
  
  <p>Can anyone advise on how to call out to a URL passing some variables from within the dialplan.  I realise I could build an event listener, but thats overkill for what Im trying to achieve.</p>
  
  <p>Full code below:</p>
  
  <pre><code>&lt;include&gt;
    &lt;extension name="sip-inbound"&gt;
      &lt;condition field="destination_number" expression="^(xxxx594xxxx)$"&gt;
          &lt;action application="set" data="domain_name=$${domain}"/&gt;
          &lt;action application="curl" data="http://web.test.net/fs.php post id=${new}" inline="true"/&gt;
        &lt;action application="bridge" data="1000 XML default"/&gt;
      &lt;/condition&gt;
    &lt;/extension&gt;
  &lt;/include&gt;
  </code></pre>
  
  <p>Thank you</p>