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@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