Hello everyone, i'd like to clarify one small thing: in an originate with multiple dialstrings separated by "|" ( meaning sequential dialing ) ... if i set origination_uuid as session variable, can i have the same uuid on every session/channel. something like that: bgapi originate {originate_timeout=60} [origination_uuid=c88a737e-d713-4e47-be56-e384df470b44]sofia/gateway/gatewayA/1222333444| [origination_uuid=c88a737e-d713-4e47-be56-e384df470b44]sofia/gateway/gatewayB/1222333444| [origination_uuid=c88a737e-d713-4e47-be56-e384df470b44]sofia/gateway/gatewayC/1222333444 &application so in other words, when executing originate command, FS, will generate a separate thread for the call and within the thread it will generate these sessions. So, is it safe to set the same uuid on all session that are being dialed sequentially? Do sessions start and end sequentially ? Appreciate any answer on this. Regards, Tihomir.
Hey there, Even if this were possible (ultimately I believe it's going to come down to a race condition - will FS clean up the old channel's UUID and handles before starting the next one), it seems like a very bad idea. FS bases all channel actions on the premise of having unique session uuids. If you share UUIDs between channels, you're only going to cause yourself more headache. Assuming you're wanting to be able to identify that these three physical calls are all part of the same logical call, you'll be much better off generating a unique ID in your application somewhere and setting it on all legs as a channel var. Then you can simply use that identifier in your application, if you want this behavior. As to the direct answer to your question, though - as mentioned above I believe it'll be a race condition at best, and a consistent failure at worst (and I'm quite confident the FS guys are going to tell you not to do this). Best, Colin On Tue, Dec 6, 2016 at 9:22 AM, Tihomir Culjaga <tculjaga@gmail.com> wrote:
Hello everyone,
i'd like to clarify one small thing:
in an originate with multiple dialstrings separated by "|" ( meaning sequential dialing ) ... if i set origination_uuid as session variable, can i have the same uuid on every session/channel.
something like that:
bgapi originate {originate_timeout=60}
[origination_uuid=c88a737e-d713-4e47-be56-e384df470b44] sofia/gateway/gatewayA/1222333444| [origination_uuid=c88a737e-d713-4e47-be56-e384df470b44] sofia/gateway/gatewayB/1222333444| [origination_uuid=c88a737e-d713-4e47-be56-e384df470b44] sofia/gateway/gatewayC/1222333444
&application
so in other words, when executing originate command, FS, will generate a separate thread for the call and within the thread it will generate these sessions. So, is it safe to set the same uuid on all session that are being dialed sequentially?
Do sessions start and end sequentially ?
Appreciate any answer on this.
Regards, Tihomir.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Just because you can, doesn't mean you should, And as Colin pointed out, you're gonna have a race condition, And you'll need to get used to seeing this: 2016-12-06 09:07:56.268518 [CRIT] switch_core_session.c:2294 Duplicate UUID! 2016-12-06 09:07:56.268518 [CRIT] mod_sofia.c:4522 Error Creating Session And I can only imagine the hell this'll cause with billing. /b On Tue, Dec 6, 2016 at 9:22 AM, Tihomir Culjaga <tculjaga@gmail.com> wrote:
Hello everyone,
i'd like to clarify one small thing:
in an originate with multiple dialstrings separated by "|" ( meaning sequential dialing ) ... if i set origination_uuid as session variable, can i have the same uuid on every session/channel.
something like that:
bgapi originate {originate_timeout=60}
[origination_uuid=c88a737e-d713-4e47-be56-e384df470b44] sofia/gateway/gatewayA/1222333444| [origination_uuid=c88a737e-d713-4e47-be56-e384df470b44] sofia/gateway/gatewayB/1222333444| [origination_uuid=c88a737e-d713-4e47-be56-e384df470b44] sofia/gateway/gatewayC/1222333444
&application
so in other words, when executing originate command, FS, will generate a separate thread for the call and within the thread it will generate these sessions. So, is it safe to set the same uuid on all session that are being dialed sequentially?
Do sessions start and end sequentially ?
Appreciate any answer on this.
Regards, Tihomir.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com (50% Discount using code FreeSwitch50) http://www.freeswitchcookbook.com (50% Discount using code FreeSwitch50) https://www.gofundme.com/freeswitch_ubuntu Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
:=) well, running the originate from console works fine, but u never know whats gonna happen when you have some real load on the servers :=) since it was working fine from console, was just wondering whether this is an issue in real life traffic... and yes, i do agree its more a headache than a benefit. fill fallback to generating unique uuids for all sessions. Thanks, Tihomir. On 6 December 2016 at 16:09, Brian West <brian@freeswitch.org> wrote:
Just because you can, doesn't mean you should, And as Colin pointed out, you're gonna have a race condition, And you'll need to get used to seeing this:
2016-12-06 09:07:56.268518 [CRIT] switch_core_session.c:2294 Duplicate UUID!
2016-12-06 09:07:56.268518 [CRIT] mod_sofia.c:4522 Error Creating Session
And I can only imagine the hell this'll cause with billing.
/b
On Tue, Dec 6, 2016 at 9:22 AM, Tihomir Culjaga <tculjaga@gmail.com> wrote:
Hello everyone,
i'd like to clarify one small thing:
in an originate with multiple dialstrings separated by "|" ( meaning sequential dialing ) ... if i set origination_uuid as session variable, can i have the same uuid on every session/channel.
something like that:
bgapi originate {originate_timeout=60}
[origination_uuid=c88a737e-d713-4e47-be56-e384df470b44]sofia /gateway/gatewayA/1222333444| [origination_uuid=c88a737e-d713-4e47-be56-e384df470b44]sofia /gateway/gatewayB/1222333444| [origination_uuid=c88a737e-d713-4e47-be56-e384df470b44]sofia /gateway/gatewayC/1222333444
&application
so in other words, when executing originate command, FS, will generate a separate thread for the call and within the thread it will generate these sessions. So, is it safe to set the same uuid on all session that are being dialed sequentially?
Do sessions start and end sequentially ?
Appreciate any answer on this.
Regards, Tihomir.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com (50% Discount using code FreeSwitch50) http://www.freeswitchcookbook.com (50% Discount using code FreeSwitch50) https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 <+1%20918-420-9001> | *F:*+19184209002 <+1%20918-420-9002> | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Yes, they'll all fail if the first one fails rapidly. I tested it with invalid urls and the second two in your example fail with duplicate uuid, which is where I copied and pasted the exact two lines from my logs when I tested what you were trying to do. /b On Tue, Dec 6, 2016 at 2:43 PM, Tihomir Culjaga <tculjaga@gmail.com> wrote:
:=)
well, running the originate from console works fine, but u never know whats gonna happen when you have some real load on the servers :=)
since it was working fine from console, was just wondering whether this is an issue in real life traffic... and yes, i do agree its more a headache than a benefit.
fill fallback to generating unique uuids for all sessions.
Thanks, Tihomir.
On 6 December 2016 at 16:09, Brian West <brian@freeswitch.org> wrote:
Just because you can, doesn't mean you should, And as Colin pointed out, you're gonna have a race condition, And you'll need to get used to seeing this:
2016-12-06 09:07:56.268518 [CRIT] switch_core_session.c:2294 Duplicate UUID!
2016-12-06 09:07:56.268518 [CRIT] mod_sofia.c:4522 Error Creating Session
And I can only imagine the hell this'll cause with billing.
/b
On Tue, Dec 6, 2016 at 9:22 AM, Tihomir Culjaga <tculjaga@gmail.com> wrote:
Hello everyone,
i'd like to clarify one small thing:
in an originate with multiple dialstrings separated by "|" ( meaning sequential dialing ) ... if i set origination_uuid as session variable, can i have the same uuid on every session/channel.
something like that:
bgapi originate {originate_timeout=60}
[origination_uuid=c88a737e-d713-4e47-be56-e384df470b44]sofia /gateway/gatewayA/1222333444| [origination_uuid=c88a737e-d713-4e47-be56-e384df470b44]sofia /gateway/gatewayB/1222333444| [origination_uuid=c88a737e-d713-4e47-be56-e384df470b44]sofia /gateway/gatewayC/1222333444
&application
so in other words, when executing originate command, FS, will generate a separate thread for the call and within the thread it will generate these sessions. So, is it safe to set the same uuid on all session that are being dialed sequentially?
Do sessions start and end sequentially ?
Appreciate any answer on this.
Regards, Tihomir.
____________________________________________________________ _____________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
--
*Brian West* brian@freeswitch.org
*Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com (50% Discount using code FreeSwitch50) http://www.freeswitchcookbook.com (50% Discount using code FreeSwitch50) https://www.gofundme.com/freeswitch_ubuntu
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 <+1%20918-420-9001> | *F:*+19184209002 <+1%20918-420-9002> | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com (50% Discount using code FreeSwitch50) http://www.freeswitchcookbook.com (50% Discount using code FreeSwitch50) https://www.gofundme.com/freeswitch_ubuntu Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
participants (3)
-
Brian West
-
Colin Morelli
-
Tihomir Culjaga