[Freeswitch-users] How to play back a .wav file from Erlang?
mayamatakeshi
mayamatakeshi at gmail.com
Thu Mar 4 15:55:35 PST 2010
On Fri, Mar 5, 2010 at 2:22 AM, Mark Sobkow <m.sobkow at marketelsystems.com>wrote:
> I have the UUID of a parked call. I've waited n seconds for an operator
> to answer that call, but none are available so I want to play a message
> to the customer. How do I do that from Erlang? I've tried the
> following, but it doesn't seem to actually play the file, and I'm not
> getting any useful information in fs_cli about the playback attempt that
> would indicate why it's not working.
>
> bgapi( eval, "uuid:1f6d7a61-fd1a-4efd-bf84-31c4eea652c2 playback
> /opt/freeswitch/sounds/en/us/callie/misc/8000/sorry.wav" )
>
Command playback is used in the dialplan.
For parked calls you must use uuid_broadcast:
http://wiki.freeswitch.org/wiki/Mod_commands#uuid_broadcast
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100305/c40367f8/attachment-0002.html
More information about the FreeSWITCH-users
mailing list