[Freeswitch-users] Dial Plan Query

sharad sharad at coraltele.com
Wed Feb 9 10:26:13 MSK 2011


Hi All

I defined a simple dialplan shown below to speak out the current date & 
time.

Now on dialing 555 followed by any digit / digits, freeswitch starts 
speaking the date & time.

I want to define the duplicate access code of 555 say 444 means on dialing 
444 followed by digits also should perform the same action.

Will be greatfull, if someone can help.

Thanks & regards
Sharad
<!-- Check Current Date & Time from here -->

    <extension name="speak_date_time">

        <condition field="destination_number" expression="^555(.*)$">

        <action application="answer"/>

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

        <action application="playback" data="ivr/today_date_is.wav"/>

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

        <action application="phrase" data="saydate"/>

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

        <action application="playback" data="ivr/and_time_is.wav"/>

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

        <action application="phrase" data="saytime"/>

        </condition>

</extension>






More information about the FreeSWITCH-users mailing list