What you're trying to do is quite possible, however you need to take a slightly different approach. The issue is that when you are continuing you need somewhere to go. You can't have anything but a dialstring inside of bridge, thus the "&playback" attempt won't work. Try this trick using the "inline" dialplan:<br>
<br><span style="font-family: courier new,monospace;">/originate</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">
}sofia/DOMAIN/1001 bridge:{fail_on_single_reject=true,ignore_early_media=true,originate_continue_on_timeout=true}sofia/DOMAIN/1002,playback:C:/teste2.wav inline</span><br style="font-family: courier new,monospace;"><br>Note that I moved the necessary parameters over to the b leg since that's where you want the "continue" to happen. Remember too, that the first argument to "originate" is a dialstring but the second argument is a "dialplan" entry. You could just as easily do this:<br>
<br><span style="font-family: courier new,monospace;">originate {ringback=c:/teste.wav}sofia/DOMAIN/1001 TRY_1002 XML default</span><br><br>And then add this extension somewhere in default.xml or in conf/dialplan/default/foo.xml:<br>
<span style="font-family: courier new,monospace;"><extension name="try to dial an extension"></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <condition field="destination_number" expression="^TRY_(\d+)$"></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <action application="bridge" data="{fail_on_single_reject=true,ignore_early_media=true,originate_continue_on_timeout=true}sofia/DOMAIN/$1"/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <action application="playback" data="C:/teste2.wav"/></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <action application="hangup"/></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">
</condition></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"></extension></span><br style="font-family: courier new,monospace;"><br>Try it out and report back to let us know that you have it all working.<br>
-MC<br><br><div class="gmail_quote">On Tue, Sep 13, 2011 at 2:48 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 Gabriel,<br>
<br>
Thanks for your help. I'm new with freeswitch and didn't know about the<br>
failover.<br>
<br>
i tried<br>
/originate<br>
{ringback=c:/teste.wav,fail_on_single_reject=true,ignore_early_media=true,originate_continue_on_timeout=true}sofia/DOMAIN/1001<br>
&bridge(sofia/DOMAIN/1002|sofia/DOMAIN/1003)/ and it works fine.<br>
Now the problem is on the failover pass the not the bridge to the other<br>
number. I tried /originate<br>
{ringback=c:/teste.wav,fail_on_single_reject=true,ignore_early_media=true,originate_continue_on_timeout=true}sofia/<a href="http://10.101.81.71/1001%0A&bridge%28sofia/10.101.81.71/1002%29%7C&playback%28C:/teste2.wav%29/" target="_blank">10.101.81.71/1001<br>
&bridge(sofia/10.101.81.71/1002)|&playback(C:/teste2.wav)/</a> but obviously it<br>
didn't work :(.<br>
<br>
Any sugestions?<br>
<br>
Tks<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://freeswitch-users.2379917.n2.nabble.com/Timeout-Message-or-something-similar-tp6783735p6786830.html" target="_blank">http://freeswitch-users.2379917.n2.nabble.com/Timeout-Message-or-something-similar-tp6783735p6786830.html</a><br>
</font><div class="im">Sent from the freeswitch-users mailing list archive at Nabble.com.<br>
<br>
<br>
</div><div><div></div><div class="h5">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>