---xml_curl.conf.xml
<configuration name="xml_curl.conf" description="cURL XML Gateway">
<bindings>
<binding name="dialplan">
<param name="gateway-url" value="http://txtphoneline.com/freeswitch" bindings="dialplan" />
<param name="method" value="POST" />
<param name="enable-cacert-check" value="false" />
<param name="enable-ssl-verifyhost" value="false" />
<param name="enable-post-var" value="variable_sip_to_user"/>
<param name="enable-post-var" value="variable_sip_from_user_stripped"/>
</binding>
</bindings>
</configuration>
---http://txtphoneline.com/freeswitch/index.php
header('Content-Type: text/xml');
$log = fopen("log.txt", "a");
$txt = date('Y-m-d H:i:s') . "\n";
$txt .= json_encode($_REQUEST) . "\n";
$txt .= "\n";
fwrite($log, $txt);
fclose($log);
$response = <<< XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="result">
<result status="not found" />
</section>
</document>
XML;
$response = <<< XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
<section name="dialplan" description="Regex Xml Dialplan from local">
<context name="default">
<extension name="myextension">
<condition field="destination_number" expression="1004">
<action application="info"/>
<action application="answer"/>
</condition>
</extension>
</context>
</section>
</document>
XML;
die($response);
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}