[Freeswitch-users] Timeout Message or something similar

Michael Collins msc at freeswitch.org
Fri Sep 16 20:25:31 MSD 2011


What do you mean by "include the originate in the dialplan"? The originate
command is what creates the two call legs. Anything in the dialplan requires
a call leg already to exist.

-MC

On Fri, Sep 16, 2011 at 7:04 AM, Brtantunes <brtantunes at gmail.com> wrote:

> Hello,
>
> I figured it out. I'm using variables, Right now the command is:
> /originate
>
> {ringback=c:/teste.wav}[timeoutMsg=C:/teste2.wav,domain=DOMAIN,maxCallTime=30,ringTimeout=30]sofia/DOMAIN/1001
> TRY_1002 XML default/
>
> And in the dialplan i have:
> /<context name="myDialPlan">
>         <extension name="try to dial an extension">
>          <condition field="destination_number" expression="^TRY_(\d+)$">
>                 <action application="sched_hangup" data="+${maxCallTime}
> allotted_timeout"/>
>                <action application="bridge"
>
> data="{fail_on_single_reject=true,ignore_early_media=true,originate_continue_on_timeout=true,ignore_early_media=true,originate_timeout=${ringTimeout}}sofia/${domain}/$1"/>
>                <action application="playback" data="${timeoutMsg}"/>
>                 <action application="hangup"/>
>          </condition>
>        </extension>
> </context>/
>
> It is working fine.
> Now i just want to include the originate in the dialplan and just pass all
> parameters like variables, but i'm having problems. Any sugestions?
>
> Tks for your help,
> Greetings
>
> --
> View this message in context:
> http://freeswitch-users.2379917.n2.nabble.com/Timeout-Message-or-something-similar-tp6783735p6801030.html
> Sent from the freeswitch-users mailing list archive at Nabble.com.
>
>
> 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/20110916/bd2f4dae/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list