do the commands work in fs_cli? if not, are you sure mod_commands is loaded?
On Friday, July 24, 2015, jaflong jaflong <jaflong@yandex.com> wrote:
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
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org