[Freeswitch-users] Using the Command API

Brian West brian at freeswitch.org
Fri Sep 19 12:59:42 EDT 2008


In this case you wouldn't use XML RPC you would use mod_event_socket.

http://wiki.freeswitch.org/wiki/Mod_event_socket#SendMsg

telnet localhost 8021

auth ClueCon <enter> <enter>

sendmsg 32a5e11a-8649-11dd-bb78-fd02030a93ef
call-command: execute
execute-app-name: playback
execute-app-arg: /var/lib/freeswitch/sounds/hello.wav <enter> <enter>

/b




On Sep 19, 2008, at 11:51 AM, Klaus Teller wrote:

>
>> From my understanding the code for playing the audio should be:
>
> client.execute("freeswitch.api",
>                                       new Object[] { "playback",  
> "32a5e11a-8649-11dd-bb78-fd02030a93ef /var/lib/freeswitch/sounds/ 
> hello.wav" });
>
> Unfortunately, the latter doesn't work. I suspect it's because the  
> call has been parked. What is the proper way to address this?
>



More information about the Freeswitch-users mailing list