[Freeswitch-dev] uuid_bridge doesn't work

Rupa Schomaker rupa at rupa.com
Tue Jun 22 10:13:32 PDT 2010


Why not set ringback to your pleasewait wav file and do a forked bridge to
your extensions?

On Tue, Jun 22, 2010 at 12:02 PM, Arturo Monroy <amonroy at auronix.com> wrote:

>  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.
>
>
> Example
>
> If i've to created 3 outbounds calls with diferents domains and
> callExtension i doing something like that, where %s is a dinaminc Value
>
> /*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='%
> s'}ext1 at 192.168.1.1 <s%27%7Dext1 at 192.168.1.1> &park()
> /*outbound 2*/ bgapi originate { ignore_early_media=true,origination_uuid='myUUUID
> ',originate_timeout=%s,origination_caller_id_name='%s',origination_caller_id_number=%s,api_on_answer='uuid_bridge
> UUID myUUUID '}ext2 at 192.168.1.2 &park()
> /*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='%
> s'}ext2 at 192.168.1.3 <s%27%7Dext2 at 192.168.1.3> &park()
>
> 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
>
>  Saludos
>
> Arturo Monroy
>
>
> El 22/06/2010 11:24 a.m., Brian West escribió:
>
> 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:
>
>
>
>  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/189 at 192.168.1.203 &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 sofia/internal/189 at 192.168.1.203 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 (sofia/internal/189 at 192.168.1.203) 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
>
>
>
>  _______________________________________________
> FreeSWITCH-dev mailing listFreeSWITCH-dev at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-devhttp://www.freeswitch.org
>
>
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>


-- 
-Rupa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20100622/b4285824/attachment-0001.html 


More information about the FreeSWITCH-dev mailing list