[Freeswitch-users] Inbound dialplan

Baskar yudha2008 at gmail.com
Thu May 26 02:27:35 MSD 2011


Hi Michael,

Thanks for your quick reply. Below is the code for the dial plan inbound
ivr. Can you please specify where i should be inserting the
continue_on_fail=true line in the code.

Default.xml

    <extension name="inbound">
      <condition field="destination_number" expression="^(XXXXXXXXXX)$" />
      <condition wday="2-6" hour="8-17">
        <action application="set" data="hangup_after_bridge=true"/>
        <action application="set" data="accountcode=Inbound"/>
        <action application="answer"/>
        <action application="start_dtmf" />
        <action application="ivr" data="ivr_inbound"/>
        <action application="record_session"
data="$${base_dir}/inbound/${destination_number}-${caller_id_number}-${strftime(%Y-%m-%d-%H-%M-%S)}.gsm"/>
        <action application="transfer" data="1018 XML default"/>
      </condition>
    </extension>

ivr_inbound.xml

<menu name="ivr_inbound"

 greet-long="/usr/local/freeswitch/sounds/en/us/callie/misc/8000/abc_pe/abc_pe_bus.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="1"
     digit-len="4">
   <entry action="menu-exec-app" digits="/^([1-6][0-9][0-9][0-9])$/"
param="transfer $1 XML default"/>
   <entry digits="0" action="menu-exec-app" param="transfer 6525 XML
default"/>
</menu>

*--
Thanks with Regards,

N.Baskar

*
On Wed, May 25, 2011 at 5:25 PM, Michael Collins <msc at freeswitch.org> wrote:

> If I understand correctly you're wanting to handle a bridge scenario where
> the target extension is busy, etc. Most likely you just need to set
> continue_on_fail=true so that your dialplan continues in the case of the
> target extension not picking up.
>
> -MC
>
> On Wed, May 25, 2011 at 1:27 PM, Baskar <yudha2008 at gmail.com> wrote:
>
>> Hi All,,
>>
>> In my inbound dial plan xml file  i have set two conditions enabled
>>
>> Condition1:
>>
>> In inbound dial plan callers are given an option to key in the extension
>> number and reach the appropriate extension (Example: 1001 or 1002 or 1003
>> etc).
>>
>> Condition2:
>>
>> The second condition routes call to a default extension in scenarios where
>> the caller does not specify any extension number (Example: Default extension
>> is 1007).
>>
>>
>> Both the above conditions are working fine.
>>
>> Now I need to set up another condition where after keying in the extension
>> number the call gets transferred to the appropriate extension and if the
>> extension is busy(Example: say extension 1003 is busy) it should be hunted
>> to a default extension (example: 1007). How can we set up this condition in
>> dial plan?
>>
>> Can any one guide me.
>> --
>> Thanks with Regards,
>>
>> N.Baskar
>>
>>
>> _______________________________________________
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at 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 at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20110525/af5d485d/attachment.html 


More information about the FreeSWITCH-users mailing list