[Freeswitch-users] api commands not working in outbound socket
Michael Jerris
mike at jerris.com
Fri Jul 24 17:49:20 MSD 2015
do the commands work in fs_cli? if not, are you sure mod_commands is
loaded?
On Friday, July 24, 2015, jaflong jaflong <jaflong at 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 at freeswitch.org <javascript:;>
> 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 at lists.freeswitch.org <javascript:;>
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150724/d0f8faa6/attachment-0001.html
Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users
mailing list