You can't use origination_uuid within { }s, it has to be within [ ]s since its a per-leg parameter. Looking at the logs would reveal you that the newly created channel doesn't have the expected uuid. Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mrene@avgs.ca On 2010-06-22, at 11: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@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@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@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 --
Saludos
Arturo Monroy <freeswitch.log>_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org