[Freeswitch-users] How to configure for FS playing voice prompt in case the called extension is in a call.

fieldpeak fieldpeak at gmail.com
Mon Jul 11 06:25:38 MSD 2011


Hi Gurus,

Could anyone advise how to realize have FS to play a voice prompt e.g. 'the
extension you dialed is busy now, please dial the other exsention' to
replacing busy tone when the called extension is in a call...

the details is below,

When calling to FS, the FS will play IVR "welcome to call us, please input
the extension number, for operator please press 0",
then the caller input the extension number, in case the extension is in a
call, the caller will hear busy tone...
it needs the system play "the extension you dailed is busy, please dial the
other extension", currently my dial plan as following, could anyone advise
how to change based on below dial plan or any other new dail plan can
realize it...

Thanks a lot!

    <extension name="Local_Extension">
      <condition field="destination_number" expression="^(1\d{3})$">
    <action application="set" data="dialed_extension=$1"/>
    <action application="export" data="dialed_extension=$1"/>
    <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="hangup_after_bridge=true"/>

    <!-- to enable voice mail, set continue_on_fail=true below -->
    <action application="set" data="continue_on_fail=false"/>
    <action application="hash"
data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}"/>
    <action application="hash"
data="insert/${domain_name}-last_dial_ext/global/${uuid}"/>
    <action application="bridge"
data="sofia/internal/${dialed_extension}%${domain_name}"/>
    <action application="answer"/>

    <action application="sleep" data="1000"/>
    <action application="bridge" data="loopback/app=voicemail:default
${domain_name} ${dialed_extension}"/>
      </condition>
    </extension>


    <extension name="IVR" >
       <condition field="destination_number" expression="^888$">
           <action application="answer"/>
           <action application="sleep" data="2000"/>
           <action application="ivr" data="IVR"/>
       </condition>
    </extension>

        <!--  -->
    <menu name="IVR"
        greet-long="C:/VSWITCH/recordings/greeting_tts.wav"
        greet-short="C:/VSWITCH/recordings/greeting_tts.wav"
        invalid-sound="ivr/ivr-that_was_an_invalid_entry.wav"
        exit-sound="voicemail/vm-goodbye.wav"
        confirm-macro=""
        confirm-key=""
        tts-engine="flite"
        tts-voice="rms"
        confirm-attempts="3"
        timeout="10000"
        inter-digit-timeout="2000"
        max-failures="3"
        max-timeouts="3"
        digit-len="5">
        <entry action="menu-exec-app" digits="/(^\*\d{3,5}$|^\d{3,5}$)/"
param="transfer $1 XML default"/>
    </menu>

Regards,
Charles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110711/c2b4cb7d/attachment.html 


More information about the FreeSWITCH-users mailing list