[Freeswitch-users] Playing an audio file to end destination before bridging the call

Adnan Barakat adnan at barakatdesigns.net
Mon Jul 14 10:22:11 PDT 2008


Brian West wrote:
> <action application="set" data="timer_name=soft"/>
Nope, still no luck, adding this setting didn't seem to make any difference.

Here is the actual dialplan I'm using on mod_xml_curl:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
     <section name="dialplan" description="DialPlan">
         <context name="public">
             <extension name="DialPlan">
                 <condition field="destination_number" expression="^([0-9]+)$">
                     <action application="set" data="timer_name=soft"/>
                     <action application="set" data="group_confirm_key=exec"/>
                     <action application="set" data="group_confirm_file=playback 
/tmp/whisper.wav"/>
                     <action application="set" data="ringback=${uk-ring}"/>
                     <action application="ring_ready" />
                     <action application="bridge" 
data="sofia/internal/1234 at gw.domain.com" />
                 </condition>
             </extension>
         </context>
     </section>
</document>


However if I do this the quality is perfect (but the receiver is required to 
press a key before the call is bridged which I'm trying to avoid):

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="freeswitch/xml">
     <section name="dialplan" description="DialPlan">
         <context name="public">
             <extension name="DialPlan">
                 <condition field="destination_number" expression="^([0-9]+)$">
                     <action application="set" data="timer_name=soft"/>
                     <action application="set" data="group_confirm_key=1"/>
                     <action application="set" 
data="group_confirm_file=/tmp/whisper.wav"/>
                     <action application="set" data="ringback=${uk-ring}"/>
                     <action application="ring_ready" />
                     <action application="bridge" 
data="sofia/internal/1234 at gw.domain.com" />
                 </condition>
             </extension>
         </context>
     </section>
</document>


Thanks again guys for your time and help on this.

Adnan




More information about the FreeSWITCH-users mailing list