Why not set ringback to your pleasewait wav file and do a forked bridge to your extensions?<br><br><div class="gmail_quote">On Tue, Jun 22, 2010 at 12:02 PM, Arturo Monroy <span dir="ltr"><<a href="mailto:amonroy@auronix.com">amonroy@auronix.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#ffffff" text="#3366ff">
<tt>thank for your response, the version that I'm using is 1.0.head
(svn-17188:17782M), and no is something silly, I'm triying to created a
Lua's method to make my own "advance bridge" , to allow create many
originate at same time and the first to answerd bridge to current
channel, if not anyone anwered play a file, for instance or whatever.<br>
<br>
<br>
Example<br>
<br>
If i've to created 3 outbounds calls with diferents domains and
callExtension i doing something like that, where %s is a dinaminc Value<br>
<br>
<font color="#ff6666">/*outbound 1*/ bgapi originate {
ignore_early_media=true,origination_uuid=%s,originate_timeout=%s,origination_caller_id_name='%s',origination_caller_id_number=%s,api_on_answer='%<a href="mailto:s%27%7Dext1@192.168.1.1" target="_blank">s'}ext1@192.168.1.1</a>
&park()<br>
</font><font color="#336666">/*outbound 2*/ bgapi originate {
ignore_early_media=true,origination_uuid='</font><font color="#336666">myUUUID
</font><font color="#336666">',originate_timeout=%s,origination_caller_id_name='%s',origination_caller_id_number=%s,api_on_answer='uuid_bridge
UUID </font><font color="#336666">myUUUID </font><font color="#336666">'}<a href="mailto:ext2@192.168.1.2" target="_blank">ext2@192.168.1.2</a>
&park()<br>
</font><font color="#6600cc">/*outbound 3*/ bgapi originate {
ignore_early_media=true,origination_uuid=%s,originate_timeout=%s,origination_caller_id_name='%s',origination_caller_id_number=%s,api_on_answer='%<a href="mailto:s%27%7Dext2@192.168.1.3" target="_blank">s'}ext2@192.168.1.3</a>
&park()<br>
</font><br>
while this is running in backgroud (using bgapi) the inbound call is
hearing a message 'meanTime.wav', finally when the first one has
already anwered, then hangup the rest originates. I'm Sure that
uuid_bridge is execute corectly but i'm not understand why the inbound
call is over when the api_on_answer is execute<br>
<br>
</tt>
<pre cols="72"><tt>Saludos
Arturo Monroy</tt></pre>
<br>
El 22/06/2010 11:24 a.m., Brian West escribió:
<div><div></div><div class="h5"><blockquote type="cite">
<pre>What are you doing exactly cuz this makes no sense..
Also what SVN rev are you on because uuid_bridge uses the exact same code the core uses and bridge works fine. I suspect you're either on OLD code or you're doing something silly.
/b
On Jun 22, 2010, at 10:55 AM, Arturo Monroy wrote:
</pre>
<blockquote type="cite">
<pre>Hello, i have a little problem, could you help me please?
I trying to bridge using uuid_bridge API, but doesn't work , and I cant figure out why, I'll explain you:
I make a Inboud call and run a lua script code, the lua code has this
local UUID = session:getVariable("uuid");
local api = freeswitch.API()
local uuid = api:executeString('create_uuid')
api:executeString(string.format("originate {ignore_early_media=true,origination_uuid='%s',api_on_answer='uuid_bridge %s %s'}sofia/internal/<a href="mailto:189@192.168.1.203" target="_blank">189@192.168.1.203</a> &park", uuid, UUID, uuid))
The outbpund call is to Xlite phone, and this is ringing but when a answer the call, the first one is hangup and the second (@203) is still alive, What happed??????
The uuid_bridge return +OK but inmediatly the first is over
2010-06-21 12:51:45.725585 [INFO] switch_channel.c:2535 <a href="mailto:sofia/internal/189@192.168.1.203" target="_blank">sofia/internal/189@192.168.1.203</a> api on answer: uuid_bridge(7a9ab23d-4ea5-4597-84e2-992ee88c2c79 3456ef2d-ec79-43a7-bf72-a1b2e88fc725)
+OK 3456ef2d-ec79-43a7-bf72-a1b2e88fc725 **********Line 765
2010-06-21 12:51:45.725585 [DEBUG] switch_core_state_machine.c:344 (<a href="mailto:sofia/internal/189@192.168.1.203" target="_blank">sofia/internal/189@192.168.1.203</a>) State RESET going to sleep
2010-06-21 12:51:45.725585 [DEBUG] switch_ivr_originate.c:3341 Originate Resulted in Error Cause: 487 [ORIGINATOR_CANCEL] ********* Line 780
Please help me, thank you
</pre>
</blockquote>
<pre>_______________________________________________
FreeSWITCH-dev mailing list
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org" target="_blank">FreeSWITCH-dev@lists.freeswitch.org</a>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a>
</pre>
</blockquote>
</div></div></div>
<br>_______________________________________________<br>
FreeSWITCH-dev mailing list<br>
<a href="mailto:FreeSWITCH-dev@lists.freeswitch.org">FreeSWITCH-dev@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-dev" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-dev</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>-Rupa<br>