Play recording sound into conference
Hi, I wonder if anyone has a recipe for the typical "please state your name after the tone" ... "(play $recording) has joined the conference" feature of conference systems. The recording part is obvious. But how do I play audio into a conference from the dialplan? This is how I think it should work. --snip-- <action application="playback" data="voicemail/vm-record_name1.wav"/> <action application="record" data="/tmp/name-${uuid}.wav 5 200"/> <action application="conference" data="$conference play /tmp/name-${uuid}.wav"/> <action application="conference" data="$conference play conference/conf-has_joined.wav"/> <action application="conference" data="$conference"/> But the first 'conference play ..' action already puts the call into the conference. Any idea? Thanks! Frank
If you know the conference name then you can use the API-from-dialplan syntax: http://wiki.freeswitch.org/wiki/Mod_commands#From_the_Dialplan something like: <action application="set" data="tmp=${conference $conf_name play ${recording} async}"/> Give it a try and let us know what happens. -MC On Mon, May 2, 2011 at 7:47 AM, Frank Rosengart <frank@rosengart.de> wrote:
Hi,
I wonder if anyone has a recipe for the typical "please state your name after the tone" ... "(play $recording) has joined the conference" feature of conference systems.
The recording part is obvious. But how do I play audio into a conference from the dialplan?
This is how I think it should work. --snip-- <action application="playback" data="voicemail/vm-record_name1.wav"/> <action application="record" data="/tmp/name-${uuid}.wav 5 200"/> <action application="conference" data="$conference play /tmp/name-${uuid}.wav"/> <action application="conference" data="$conference play conference/conf-has_joined.wav"/> <action application="conference" data="$conference"/>
But the first 'conference play ..' action already puts the call into the conference.
Any idea?
Thanks!
Frank
_______________________________________________ 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
or use the read application from the dp to record the name then set conference_enter_sound variable to the path to the file and use api_hangup_hook to delete it On Mon, May 2, 2011 at 4:11 PM, Michael Collins <msc@freeswitch.org> wrote:
If you know the conference name then you can use the API-from-dialplan syntax: http://wiki.freeswitch.org/wiki/Mod_commands#From_the_Dialplan something like: <action application="set" data="tmp=${conference $conf_name play ${recording} async}"/> Give it a try and let us know what happens. -MC
On Mon, May 2, 2011 at 7:47 AM, Frank Rosengart <frank@rosengart.de> wrote:
Hi,
I wonder if anyone has a recipe for the typical "please state your name after the tone" ... "(play $recording) has joined the conference" feature of conference systems.
The recording part is obvious. But how do I play audio into a conference from the dialplan?
This is how I think it should work. --snip-- <action application="playback" data="voicemail/vm-record_name1.wav"/> <action application="record" data="/tmp/name-${uuid}.wav 5 200"/> <action application="conference" data="$conference play /tmp/name-${uuid}.wav"/> <action application="conference" data="$conference play conference/conf-has_joined.wav"/> <action application="conference" data="$conference"/>
But the first 'conference play ..' action already puts the call into the conference.
Any idea?
Thanks!
Frank
_______________________________________________ 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
_______________________________________________ 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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
On 05/02/2011 11:11 PM, Michael Collins wrote:
something like: <action application="set" data="tmp=${conference $conf_name play ${recording} async}"/>
This works great without the 'async'. I was not aware of the power of the API-from-dialplan feature. Maybe this could be included in the demo files? Thanks a lot! Frank
participants (3)
-
Anthony Minessale
-
Frank Rosengart
-
Michael Collins