What do you mean by &quot;include the originate in the dialplan&quot;? 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">&lt;<a href="mailto:brtantunes@gmail.com">brtantunes@gmail.com</a>&gt;</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&#39;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>
/&lt;context name=&quot;myDialPlan&quot;&gt;<br>
<div class="im">        &lt;extension name=&quot;try to dial an extension&quot;&gt;<br>
          &lt;condition field=&quot;destination_number&quot; expression=&quot;^TRY_(\d+)$&quot;&gt;<br>
</div>                &lt;action application=&quot;sched_hangup&quot; data=&quot;+${maxCallTime}<br>
allotted_timeout&quot;/&gt;<br>
                &lt;action application=&quot;bridge&quot;<br>
data=&quot;{fail_on_single_reject=true,ignore_early_media=true,originate_continue_on_timeout=true,ignore_early_media=true,originate_timeout=${ringTimeout}}sofia/${domain}/$1&quot;/&gt;<br>
                &lt;action application=&quot;playback&quot; data=&quot;${timeoutMsg}&quot;/&gt;<br>
<div class="im">                &lt;action application=&quot;hangup&quot;/&gt;<br>
          &lt;/condition&gt;<br>
        &lt;/extension&gt;<br>
</div>&lt;/context&gt;/<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&#39;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>