[Freeswitch-users] api commands not working in outbound socket

jaflong jaflong jaflong at yandex.com
Fri Jul 24 13:10:25 MSD 2015


Hi list

I have a php script run through ivrd.

api commands are returned with "ERR command not found" with done through sendRecv or api functions

any suggestion why it fails?

example 1
---------

code:

$command = "api uuid_getvar db39795e-31e1-11e5-9af9-cfe09f60c9f7 variable_sip_from_user";
$conn->sendRecv($command);


tcpdump:

api uuid_getvar db39795e-31e1-11e5-9af9-cfe09f60c9f7 variable_sip_from_user

Content-Type: command/reply
Reply-Text: -ERR command not found




example 2
---------

code:

$command = "api version";
$conn->sendRecv($command);


tcpdump:

api version

Content-Type: command/reply
Reply-Text: -ERR command not found




example 3
---------

code:

$command = "version";
$conn->api($command);

tcpdump:

api version

Content-Type: command/reply
Reply-Text: -ERR command not found






Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list