[Freeswitch-users] Play message upon call anwser

Todd phunk0000 at hotmail.com
Wed Mar 3 06:37:33 PST 2010


Or maybe there is an easier way to play an audio file to whoever answers the
phone before the call is bridged..  And is it best practice to put these
changes in the default dial plan or somewhere else?  Still kinda new to
this, Thanks.

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Todd
Sent: Wednesday, March 03, 2010 9:20 AM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Play message upon call anwser

 

He group confirm feature seems like it should work, but I can't figure out
where in the default dialplan to put this line so that the audio file is
played for everycall made to a local extension. here us the
group_confirm_playback action, I am wondering where it should go.

 

<action application="bridge" data="{group_confirm_file=playback
/usr/local/freeswitch/sounds/en/pbxpalintro.wav,
group_confirm_key=exec,call_timeout=60}
user/${dialed_extension}%${domain_name}"/>

 

Here is the local extension portion of the default dialplan where I think it
should go, but I can't figure out exactly where.  Thanks!

 

<extension name="Local_Extension">

                  <condition field="destination_number"
expression="(^\d{3,6}$)">

                    <!-- <action application="javascript"
data="pbxpalintro.js" /> -->

                   

                    <action application="set" data="dialed_extension=$1"/>

                    <action application="export"
data="dialed_extension=$1"/>

                    

                    <action application="bridge"
data="{group_confirm_file=playback
/usr/local/freeswitch/sounds/en/pbxpalintro.wav,
group_confirm_key=exec,call_timeout=60}
user/${dialed_extension}%${domain_name}"/>

                   

                    <!-- bind_meta_app can have these args <key> [a|b|ab]
[a|b|o|s] <app> -->

                    <action application="bind_meta_app" data="1 b s
execute_extension::dx XML features"/>

                    <action application="bind_meta_app" data="2 b s
record_session::$${base_dir}/recordings/${caller_id_number}.${strftime(%Y-%m
-%d-%H-%M-%S)}.wav"/>

                    <action application="bind_meta_app" data="3 b s
execute_extension::cf XML features"/>

                    <action application="set" data="ringback=${us-ring}"/>

                    <action application="set"
data="transfer_ringback=$${hold_music}"/>

                    <action application="set" data="call_timeout=30"/>

                    <!-- <action application="set"
data="sip_exclude_contact=${network_addr}"/> -->

                    <action application="set"
data="hangup_after_bridge=true"/>

                    <!--<action application="set"
data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,USER_BUSY,NO_ANSWER,TIMEOUT,
NO_ROUTE_DESTINATION"/> -->

                    <action application="set" data="continue_on_fail=true"/>

                    <action application="db"
data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_numb
er}"/>

                    <action application="db"
data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/>

                    <action application="set"
data="called_party_callgroup=${user_data(${dialed_extension}@${domain_name}
var callgroup)}"/>

                    <!--<action application="export"
data="nolocal:sip_secure_media=${user_data(${dialed_extension}@${domain_name
} var sip_secure_media)}"/>-->

                    <action application="db"
data="insert/${domain_name}-last_dial/${called_party_callgroup}/${uuid}"/>

                    <action application="bridge"
data="user/${dialed_extension}@${domain_name}"/>

                    <action application="answer"/>

                    <action application="sleep" data="1000"/>

                    <action application="voicemail" data="default
${domain_name} ${dialed_extension}"/>

                  </condition>

                </extension>

 

 

 

 

 

 

 

                   

 

From: freeswitch-users-bounces at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Michael
Collins
Sent: Tuesday, March 02, 2010 11:04 PM
To: freeswitch-users at lists.freeswitch.org
Subject: Re: [Freeswitch-users] Play message upon call anwser

 

 

On Tue, Mar 2, 2010 at 1:15 PM, Todd <phunk0000 at hotmail.com> wrote:

Hey List..  I am trying to setup my dial plan so whenever a call is answered
a recording is played to the person who answered the phone before the call
is connected..  Any help would be great.   Thanks

Are you talking about the group confirm feature?
http://wiki.freeswitch.org/wiki/Freeswitch_IVR_Originate#Answer_confirmation

-MC 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100303/5cbbe337/attachment-0002.html 


More information about the FreeSWITCH-users mailing list