do the commands work in fs_cli?  if not, are you sure mod_commands is loaded?<br><br>On Friday, July 24, 2015, jaflong jaflong &lt;<a href="mailto:jaflong@yandex.com">jaflong@yandex.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi list<br>
<br>
I have a php script run through ivrd.<br>
<br>
api commands are returned with &quot;ERR command not found&quot; with done through sendRecv or api functions<br>
<br>
any suggestion why it fails?<br>
<br>
example 1<br>
---------<br>
<br>
code:<br>
<br>
$command = &quot;api uuid_getvar db39795e-31e1-11e5-9af9-cfe09f60c9f7 variable_sip_from_user&quot;;<br>
$conn-&gt;sendRecv($command);<br>
<br>
<br>
tcpdump:<br>
<br>
api uuid_getvar db39795e-31e1-11e5-9af9-cfe09f60c9f7 variable_sip_from_user<br>
<br>
Content-Type: command/reply<br>
Reply-Text: -ERR command not found<br>
<br>
<br>
<br>
<br>
example 2<br>
---------<br>
<br>
code:<br>
<br>
$command = &quot;api version&quot;;<br>
$conn-&gt;sendRecv($command);<br>
<br>
<br>
tcpdump:<br>
<br>
api version<br>
<br>
Content-Type: command/reply<br>
Reply-Text: -ERR command not found<br>
<br>
<br>
<br>
<br>
example 3<br>
---------<br>
<br>
code:<br>
<br>
$command = &quot;version&quot;;<br>
$conn-&gt;api($command);<br>
<br>
tcpdump:<br>
<br>
api version<br>
<br>
Content-Type: command/reply<br>
Reply-Text: -ERR command not found<br>
<br>
<br>
<br>
<br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;consulting@freeswitch.org&#39;)">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="javascript:;" onclick="_e(event, &#39;cvml&#39;, &#39;FreeSWITCH-users@lists.freeswitch.org&#39;)">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote>