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.<div><br></div><div>-MC<br><br><div class="gmail_quote">
On Fri, Sep 16, 2011 at 7:04 AM, Brtantunes <span dir="ltr"><<a href="mailto:brtantunes@gmail.com">brtantunes@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
I figured it out. I'm using variables, Right now the command is:<br>
/originate<br>
{ringback=c:/teste.wav}[timeoutMsg=C:/teste2.wav,domain=DOMAIN,maxCallTime=30,ringTimeout=30]sofia/DOMAIN/1001<br>
TRY_1002 XML default/<br>
<br>
And in the dialplan i have:<br>
/<context name="myDialPlan"><br>
<div class="im"> <extension name="try to dial an extension"><br>
<condition field="destination_number" expression="^TRY_(\d+)$"><br>
</div> <action application="sched_hangup" data="+${maxCallTime}<br>
allotted_timeout"/><br>
<action application="bridge"<br>
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"/><br>
<action application="playback" data="${timeoutMsg}"/><br>
<div class="im"> <action application="hangup"/><br>
</condition><br>
</extension><br>
</div></context>/<br>
<br>
It is working fine.<br>
Now i just want to include the originate in the dialplan and just pass all<br>
parameters like variables, but i'm having problems. Any sugestions?<br>
<div class="im"><br>
Tks for your help,<br>
Greetings<br>
<br>
--<br>
</div>View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/Timeout-Message-or-something-similar-tp6783735p6801030.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/Timeout-Message-or-something-similar-tp6783735p6801030.html</a><br>
<div><div></div><div class="h5">Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br></div>