[Freeswitch-dev] Other-Leg-uuid before bridge
Hi everybody! I'm executing a script with exec_on_answer and exec_on_pre_answer in a bridge application. Since the execution of my application is triggered before bridging the two legs (that's exactly hat what i was looking for) i do not have the "Other-Leg-uuid" var setted in my session's channel variable. Is there any way to get the uuid of the bleg before the bridge? <action application="export" data="nolocal:execute_on_pre_answer=lua dial.lua PRGS"/> <action application="export" data="nolocal:execute_on_answer=lua dial.lua ANSW"/> <action application="bridge" data="sofia/external/111xxxx@192.168.1.1"/> So: in the dial.lua i need to have the uuid of "sofia/external/1111@192.168.1.1". Thank you in advice! (and thank you all for freeswitch!!) E' nata indoona : chiama, videochiama e messaggia Gratis. Scarica indoona per iPhone, Android e PC
You can set the uuid yourself: <action application="set" data="my_uuid=${create_uuid}" inline="true"/> <action application="bridge" data="{origination_uuid=${my_uuid}}/sofia/foo/bar"/> Check out the create_uuid API and origination_uuid chan var on the wiki... -MC On Tue, Nov 22, 2011 at 5:38 AM, succer110@tiscali.it <succer110@tiscali.it>wrote:
Hi everybody!
I'm executing a script with exec_on_answer and exec_on_pre_answer in a bridge application. Since the execution of my application is triggered before bridging the two legs (that's exactly hat what i was looking for) i do not have the "Other-Leg-uuid" var setted in my session's channel variable. Is there any way to get the uuid of the bleg before the bridge?
<action application="export" data="nolocal:execute_on_pre_answer=lua dial.lua PRGS"/> <action application="export" data="nolocal:execute_on_answer=lua dial.lua ANSW"/> <action application="bridge" data="sofia/external/ 111xxxx@192.168.1.1"/>
So: in the dial.lua i need to have the uuid of "sofia/external/ 1111@192.168.1.1". Thank you in advice! (and thank you all for freeswitch!!)
E' nata indoona : chiama, videochiama e messaggia Gratis. Scarica indoona per iPhone<http://itunes.apple.com/app/indoona/id462250893?mt=8>, Android <https://market.android.com/details?id=com.tiscali.indoona> e PC<http://www.indoona.com/download/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
Hi Michael, This brings me neatly on to a long outstanding query of mine - does this UUID stick? All testing and evidence suggests that the originating_uuid specified continues as the channel uuid after answer, however the wiki ( http://wiki.freeswitch.org/wiki/Mod_commands) states the following (UUID specification is key to part of my system and has left me worrying that this may cause a headache in the future): Wiki text: You can specify the UUID of an originated call by doing the following: - Use create_uuid to generate a UUID to use. - This will allow you to kill an originated call before it is answered by using uuid_kill. - The UUID of the answered call leg will not be the same UUID as the origination_uuid specified (Each call leg always gets its own UUID) Please tell me the wiki is out of date! Thanks, Callum On 23 November 2011 00:16, Michael Collins <msc@freeswitch.org> wrote:
You can set the uuid yourself:
<action application="set" data="my_uuid=${create_uuid}" inline="true"/> <action application="bridge" data="{origination_uuid=${my_uuid}}/sofia/foo/bar"/>
Check out the create_uuid API and origination_uuid chan var on the wiki...
-MC
On Tue, Nov 22, 2011 at 5:38 AM, succer110@tiscali.it < succer110@tiscali.it> wrote:
Hi everybody!
I'm executing a script with exec_on_answer and exec_on_pre_answer in a bridge application. Since the execution of my application is triggered before bridging the two legs (that's exactly hat what i was looking for) i do not have the "Other-Leg-uuid" var setted in my session's channel variable. Is there any way to get the uuid of the bleg before the bridge?
<action application="export" data="nolocal:execute_on_pre_answer=lua dial.lua PRGS"/> <action application="export" data="nolocal:execute_on_answer=lua dial.lua ANSW"/> <action application="bridge" data="sofia/external/ 111xxxx@192.168.1.1"/>
So: in the dial.lua i need to have the uuid of "sofia/external/ 1111@192.168.1.1". Thank you in advice! (and thank you all for freeswitch!!)
E' nata indoona : chiama, videochiama e messaggia Gratis. Scarica indoona per iPhone<http://itunes.apple.com/app/indoona/id462250893?mt=8>, Android <https://market.android.com/details?id=com.tiscali.indoona> e PC<http://www.indoona.com/download/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
if you specify origination_uuid it will remain the uuid for the whole session On Wed, Nov 23, 2011 at 3:44 AM, Callum Guy <callum.guy@x-on.co.uk> wrote:
Hi Michael,
This brings me neatly on to a long outstanding query of mine - does this UUID stick? All testing and evidence suggests that the originating_uuid specified continues as the channel uuid after answer, however the wiki ( http://wiki.freeswitch.org/wiki/Mod_commands) states the following (UUID specification is key to part of my system and has left me worrying that this may cause a headache in the future):
Wiki text:
You can specify the UUID of an originated call by doing the following:
- Use create_uuid to generate a UUID to use. - This will allow you to kill an originated call before it is answered by using uuid_kill. - The UUID of the answered call leg will not be the same UUID as the origination_uuid specified (Each call leg always gets its own UUID)
Please tell me the wiki is out of date!
Thanks,
Callum
On 23 November 2011 00:16, Michael Collins <msc@freeswitch.org> wrote:
You can set the uuid yourself:
<action application="set" data="my_uuid=${create_uuid}" inline="true"/> <action application="bridge" data="{origination_uuid=${my_uuid}}/sofia/foo/bar"/>
Check out the create_uuid API and origination_uuid chan var on the wiki...
-MC
On Tue, Nov 22, 2011 at 5:38 AM, succer110@tiscali.it < succer110@tiscali.it> wrote:
Hi everybody!
I'm executing a script with exec_on_answer and exec_on_pre_answer in a bridge application. Since the execution of my application is triggered before bridging the two legs (that's exactly hat what i was looking for) i do not have the "Other-Leg-uuid" var setted in my session's channel variable. Is there any way to get the uuid of the bleg before the bridge?
<action application="export" data="nolocal:execute_on_pre_answer=lua dial.lua PRGS"/> <action application="export" data="nolocal:execute_on_answer=lua dial.lua ANSW"/> <action application="bridge" data="sofia/external/ 111xxxx@192.168.1.1"/>
So: in the dial.lua i need to have the uuid of "sofia/external/ 1111@192.168.1.1". Thank you in advice! (and thank you all for freeswitch!!)
E' nata indoona : chiama, videochiama e messaggia Gratis. Scarica indoona per iPhone<http://itunes.apple.com/app/indoona/id462250893?mt=8>, Android <https://market.android.com/details?id=com.tiscali.indoona> e PC<http://www.indoona.com/download/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
That's great, I appreciate the confirmation. I've updated the wiki to clear this up for new users. ______________________________ Callum Guy Developer X-on Framlingham Technology Centre Station Road, Framlingham, Suffolk, IP13 9EZ T 0333 332 0116 E callum.guy@x-on.co.uk X-on is a trading name of Storacall Technology Ltd a limited company registered in England and Wales Registered Office : Avaland House, 110 London Road, Apsley, Hemel Hempstead, Herts, HP3 9SD Company Registration No. 2578478 This email has been sent from X-on.The contents and attachments are confidential to the sender and the intended addressees.If the message is received by anyone other than the addressee please return the message to the sender by replying to it and then delete the message from your computer without copying or disclosing the contents to anyone.Opinions, conclusions and statements of intent in this email are those of the sender and do not bind X-on unless confirmed by authorised representatives independently of this message.While best endeavours have been taken to avoid transmission of viruses, it is the responsibility of the recipient to scan for these.Please note emails sent to and from X-on are routinely monitored for record keeping and quality control, to ensure regulatory compliance and prevent unauthorised use of our systems. Please consider the environment before printing this email. On 23 November 2011 19:26, Anthony Minessale <anthony.minessale@gmail.com>wrote:
if you specify origination_uuid it will remain the uuid for the whole session
On Wed, Nov 23, 2011 at 3:44 AM, Callum Guy <callum.guy@x-on.co.uk> wrote:
Hi Michael,
This brings me neatly on to a long outstanding query of mine - does this UUID stick? All testing and evidence suggests that the originating_uuid specified continues as the channel uuid after answer, however the wiki ( http://wiki.freeswitch.org/wiki/Mod_commands) states the following (UUID specification is key to part of my system and has left me worrying that this may cause a headache in the future):
Wiki text:
You can specify the UUID of an originated call by doing the following:
- Use create_uuid to generate a UUID to use. - This will allow you to kill an originated call before it is answered by using uuid_kill. - The UUID of the answered call leg will not be the same UUID as the origination_uuid specified (Each call leg always gets its own UUID)
Please tell me the wiki is out of date!
Thanks,
Callum
On 23 November 2011 00:16, Michael Collins <msc@freeswitch.org> wrote:
You can set the uuid yourself:
<action application="set" data="my_uuid=${create_uuid}" inline="true"/> <action application="bridge" data="{origination_uuid=${my_uuid}}/sofia/foo/bar"/>
Check out the create_uuid API and origination_uuid chan var on the wiki...
-MC
On Tue, Nov 22, 2011 at 5:38 AM, succer110@tiscali.it < succer110@tiscali.it> wrote:
Hi everybody!
I'm executing a script with exec_on_answer and exec_on_pre_answer in a bridge application. Since the execution of my application is triggered before bridging the two legs (that's exactly hat what i was looking for) i do not have the "Other-Leg-uuid" var setted in my session's channel variable. Is there any way to get the uuid of the bleg before the bridge?
<action application="export" data="nolocal:execute_on_pre_answer=lua dial.lua PRGS"/> <action application="export" data="nolocal:execute_on_answer=lua dial.lua ANSW"/> <action application="bridge" data="sofia/external/ 111xxxx@192.168.1.1"/>
So: in the dial.lua i need to have the uuid of "sofia/external/ 1111@192.168.1.1". Thank you in advice! (and thank you all for freeswitch!!)
E' nata indoona : chiama, videochiama e messaggia Gratis. Scarica indoona per iPhone<http://itunes.apple.com/app/indoona/id462250893?mt=8>, Android <https://market.android.com/details?id=com.tiscali.indoona> e PC <http://www.indoona.com/download/>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
-- Anthony Minessale II
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire
AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
participants (4)
-
Anthony Minessale
-
Callum Guy
-
Michael Collins
-
succer110@tiscali.it