<br><br><div class="gmail_quote">On Tue, Aug 11, 2009 at 11:08 AM, Phillip Jones <span dir="ltr"><<a href="mailto:pjintheusa@gmail.com" target="_blank">pjintheusa@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Can you use this method to make simultaneous calls though while<br>
preserving carrier order? i.e. each call must try carrier 1 first then<br>
carrier 2 (because each carrier terminates a different subset of<br>
numbers)<br>
<br>
So - if I did NOT want to support failover I would use:<br>
<br>
session:execute("bridge",<br>
"sofia/gateway/broadvox/6095553828,sofia/gateway/broadvox/7325553828");<br>
<< call 6095553828 and 7325553828 at the same time<br>
<br>
If I were to use failover and not need multiple destinations then I would use:<br>
<br>
session:execute("bridge",<br>
"sofia/gateway/broadvox/6095553828|sofia/gateway/quest/6095553828");<br>
<< call using broadvox first and quest it that fails<br>
<br>
I need to combine:<br>
<br>
Call 6095553828 and 7325553828 simultaneously and each trying<br>
broadvox then on fail quest.<br>
<br>
session:execute("bridge",<br>
"(sofia/gateway/broadvox/6095553828|sofia/gateway/quest/6095553828),(sofia/gateway/broadvox/7325553828,sofia/gateway/quest/7325553828)");<br>
<br>
But of course that syntax does not work.<br>
<br>
I can not see another syntax that would achieve this?</blockquote><br></div>Just to make sure I'm reading you correctly I want to clarify...<br><br>You are trying to maintain carrier order and also trying to dial simultaneously. If I understand what you mean, you have two separate dialstrings that you want to dial simultaneously and if BOTH fail, THEN you want to dial the third dialstring?<br>
<br>If the above is correct then this dialplan snippet SHOULD work:<br><br><action application="set" data="continue_on_fail=true"/><br><action application="bridge" data="sofia/gateway/broadvox/6095553828,sofia/gateway/broadvox/7325553828"/><br>
<!-- if either of the above dialstrings is successful then this next line won't execute... --><br><action application="bridge" data="sofia/gateway/quest/7325553828"/><br><br>I also noticed that you're using js in your example... I hope you will consider using the dialplan instead. The DP is quick and clean. At the very least, if you really need js for some logic then let the js do the logic and then transfer back out to the dialplan. That way you will use fewer system resources and your project can scale more easily.<br>
<br>-MC<br>