Generate uniqueid like asterisk
Hi all, currently, I use asterisk uniqueid to lot of internals processes Ex: 001-1542296620.1319230 I want to change asterisk by FS, but I have to keep this uniqueid format. I know the format of the uniqueid : [server id]-[timestamp].[random integer] How can I generate it from FS please ? I already seen with mod_dialplan_asterisk module, but I'm not sure if can I use only UNIQUEID variable (I'm not need the asterisk dialplan) Or maybe use other variables Ex: unixtimestamp and create random interger... thanks in advance ++
On 11/16/18 3:29 AM, Mickael Hubert wrote:
Hi all, currently, I use asterisk uniqueid to lot of internals processes Ex: 001-1542296620.1319230 I want to change asterisk by FS, but I have to keep this uniqueid format. I know the format of the uniqueid : [server id]-[timestamp].[random integer]
How can I generate it from FS please ?
Touch and edit /usr/share/freeswitch/scripts/uniqueid.lua Write this to the file: local server_id = argv[1] or '001' -- defaults system id to '001' if you don't pass an arg stream:write(server_id .. '-' .. os.time() .. '.' .. math.random(1000000,9999999)) Then use this in your XML dialplan: <action application="set" data="server_id=003"/> <action application="set" data="UNIQUEID=${lua(uniqueid.lua ${server_id})}"/> Now you have a UNIQUEID channel variable in the format you requested.
Hello, Is there a way to use more than one SSL certificate and have TLS enabled across multiple domains? Is that something that I would need to use a separate SIP profile for? Thank you, Mike
Not currently. /b On Tue, Nov 20, 2018 at 10:16 AM Michael Avers <michael@mailworks.org> wrote:
Hello,
Is there a way to use more than one SSL certificate and have TLS enabled across multiple domains? Is that something that I would need to use a separate SIP profile for?
Thank you, Mike
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
-- Brian West | Co-founder and Developer Need Commercial support? email sales@freeswitch.com FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g> Email: brian@freeswitch.com Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/> [image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
Hi Brian, I found the following excerpt in Confluence's TLS page - is it no longer relevant?*Multiple Profile TLS** * *If you have multiple Sofia SIP profiles, you may find yourself wanting to enable TLS support for each of the profiles. However, each may be represented to third parties using a different DNS record. In this case, simply create a new directory under /{prefix}/freeswitch/conf/ssl/ for each DNS record . Then place an agent.pem and cafile.pem into each of the directories. Point each profile to the individual directory which contains its specific agent.pem file.* Thank you, Mike On Tue, Nov 20, 2018, at 10:07 AM, Brian West wrote:
Not currently. /b
On Tue, Nov 20, 2018 at 10:16 AM Michael Avers <michael@mailworks.org> wrote:>> Hello,
Is there a way to use more than one SSL certificate and have TLS enabled across multiple domains? Is that something that I would need to use a separate SIP profile for?>> Thank you, Mike
___________________________________________________________________- ______>> Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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>> https://freeswitch.com
--
Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045[1]> Email: brian@freeswitch.com
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com[2]
https://www.facebook.com/signalwireinc?src=email https://twitter.com/freeswitch> ___________________________________________________________________- ________> Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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> https://freeswitch.com
Links: 1. https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&en... 2. https://www.freeswitch.com/
*Point each profile to the individual directory which contains its specific agent.pem file.*
For me, that sounds like "you can use different certs for external and internal". I don't think this means multiple certs per profile. Did you verify if your devices can use SNI? If not, this is not possible at all because the URI is sent after TLS handshake where you already have a connection while SNI does this during handshake. Kevin Am Di., 20. Nov. 2018 um 22:29 Uhr schrieb Michael Avers < michael@mailworks.org>:
Hi Brian, I found the following excerpt in Confluence's TLS page - is it no longer relevant? *Multiple Profile TLS*
*If you have multiple Sofia SIP profiles, you may find yourself wanting to enable TLS support for each of the profiles. However, each may be represented to third parties using a different DNS record. In this case, simply create a new directory under /{prefix}/freeswitch/conf/ssl/ for each DNS record . Then place an agent.pem and cafile.pem into each of the directories. Point each profile to the individual directory which contains its specific agent.pem file.*
Thank you, Mike
On Tue, Nov 20, 2018, at 10:07 AM, Brian West wrote:
Not currently. /b
On Tue, Nov 20, 2018 at 10:16 AM Michael Avers <michael@mailworks.org> wrote:
Hello,
Is there a way to use more than one SSL certificate and have TLS enabled across multiple domains? Is that something that I would need to use a separate SIP profile for?
Thank you, Mike
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
--
Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>
Email: brian@freeswitch.com
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/>
[image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch> *_________________________________________________________________________* Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
It can really only do one certificate, most devices don't work with wildcard certs so you're SOL and we don't do SNI that would require some work down in sofia. On Tue, Nov 20, 2018 at 4:36 PM Kevin Olbrich <ko@sv01.de> wrote:
*Point each profile to the individual directory which contains its specific agent.pem file.*
For me, that sounds like "you can use different certs for external and internal". I don't think this means multiple certs per profile.
Did you verify if your devices can use SNI? If not, this is not possible at all because the URI is sent after TLS handshake where you already have a connection while SNI does this during handshake.
Kevin
Am Di., 20. Nov. 2018 um 22:29 Uhr schrieb Michael Avers < michael@mailworks.org>:
Hi Brian, I found the following excerpt in Confluence's TLS page - is it no longer relevant? *Multiple Profile TLS*
*If you have multiple Sofia SIP profiles, you may find yourself wanting to enable TLS support for each of the profiles. However, each may be represented to third parties using a different DNS record. In this case, simply create a new directory under /{prefix}/freeswitch/conf/ssl/ for each DNS record . Then place an agent.pem and cafile.pem into each of the directories. Point each profile to the individual directory which contains its specific agent.pem file.*
Thank you, Mike
On Tue, Nov 20, 2018, at 10:07 AM, Brian West wrote:
Not currently. /b
On Tue, Nov 20, 2018 at 10:16 AM Michael Avers <michael@mailworks.org> wrote:
Hello,
Is there a way to use more than one SSL certificate and have TLS enabled across multiple domains? Is that something that I would need to use a separate SIP profile for?
Thank you, Mike
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
--
Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>
Email: brian@freeswitch.com
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/>
[image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
*_________________________________________________________________________* Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
-- Brian West | Co-founder and Developer Need Commercial support? email sales@freeswitch.com FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g> Email: brian@freeswitch.com Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/> [image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
What's the general level of device support for SANs? (i.e. cert with a whole bunch of domains listed in one certificate, like you can easily do with letsencrypt) -- Nathan -------- Original Message -------- From: Brian West Sent: Tue, Nov 20, 2018 5:32 PM CST To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Subject: [Freeswitch-users] Using multiple SSL certificates It can really only do one certificate, most devices don't work with wildcard certs so you're SOL and we don't do SNI that would require some work down in sofia. On Tue, Nov 20, 2018 at 4:36 PM Kevin Olbrich <ko@sv01.de <mailto:ko@sv01.de>> wrote: > /Point each profile to the individual directory which contains its specific agent.pem file./ For me, that sounds like "you can use different certs for external and internal". I don't think this means multiple certs per profile. Did you verify if your devices can use SNI? If not, this is not possible at all because the URI is sent after TLS handshake where you already have a connection while SNI does this during handshake. Kevin Am Di., 20. Nov. 2018 um 22:29 Uhr schrieb Michael Avers <michael@mailworks.org <mailto:michael@mailworks.org>>: __ Hi Brian, I found the following excerpt in Confluence's TLS page - is it no longer relevant? /Multiple Profile TLS// / /If you have multiple Sofia SIP profiles, you may find yourself wanting to enable TLS support for each of the profiles. However, each may be represented to third parties using a different DNS record. In this case, simply create a new directory under /{prefix}/freeswitch/conf/ssl/ for each DNS record . Then place an agent.pem and cafile.pem into each of the directories. Point each profile to the individual directory which contains its specific agent.pem file./ Thank you, Mike On Tue, Nov 20, 2018, at 10:07 AM, Brian West wrote: Not currently. /b On Tue, Nov 20, 2018 at 10:16 AM Michael Avers <michael@mailworks.org <mailto:michael@mailworks.org>> wrote: Hello, Is there a way to use more than one SSL certificate and have TLS enabled across multiple domains? Is that something that I would need to use a separate SIP profile for? Thank you, Mike _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com -- Brian West | Co-founder and Developer Need Commercial support? email sales@freeswitch.com <mailto:sales@freeswitch.com> FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g> Email: brian@freeswitch.com <mailto:brian@freeswitch.com> Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/> https://www.facebook.com/signalwireinc?src=email <https://www.facebook.com/freeswitch> https://twitter.com/freeswitch <https://twitter.com/freeswitch> ___________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com <mailto:sales@freeswitch.com> https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://cluecon.com FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto:FreeSWITCH-users@lists.freeswitch.org> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users https://freeswitch.com -- Brian West | Co-founder and Developer Need Commercial support? email sales@freeswitch.com <mailto:sales@freeswitch.com> FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g> Email: brian@freeswitch.com <mailto:brian@freeswitch.com> Mobile: 918-424-9378 Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/> https://www.facebook.com/signalwireinc?src=email <https://www.facebook.com/freeswitch> https://twitter.com/freeswitch <https://twitter.com/freeswitch> _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com -- ------------------------------------------------------------ Nathan Neulinger nneul@mst.edu Missouri S&T Information Technology (573) 341-6679 System Administrator - Architect (573) 612-1412 System and Desktop Infrastructure Team Manager
I asked the same question not long ago. I am using a SAN certificate to achieve the desired result. On Wed, 21 Nov 2018, 00:20 Brian West, <brian@freeswitch.com> wrote:
It can really only do one certificate, most devices don't work with wildcard certs so you're SOL and we don't do SNI that would require some work down in sofia.
On Tue, Nov 20, 2018 at 4:36 PM Kevin Olbrich <ko@sv01.de> wrote:
*Point each profile to the individual directory which contains its specific agent.pem file.*
For me, that sounds like "you can use different certs for external and internal". I don't think this means multiple certs per profile.
Did you verify if your devices can use SNI? If not, this is not possible at all because the URI is sent after TLS handshake where you already have a connection while SNI does this during handshake.
Kevin
Am Di., 20. Nov. 2018 um 22:29 Uhr schrieb Michael Avers < michael@mailworks.org>:
Hi Brian, I found the following excerpt in Confluence's TLS page - is it no longer relevant? *Multiple Profile TLS*
*If you have multiple Sofia SIP profiles, you may find yourself wanting to enable TLS support for each of the profiles. However, each may be represented to third parties using a different DNS record. In this case, simply create a new directory under /{prefix}/freeswitch/conf/ssl/ for each DNS record . Then place an agent.pem and cafile.pem into each of the directories. Point each profile to the individual directory which contains its specific agent.pem file.*
Thank you, Mike
On Tue, Nov 20, 2018, at 10:07 AM, Brian West wrote:
Not currently. /b
On Tue, Nov 20, 2018 at 10:16 AM Michael Avers <michael@mailworks.org> wrote:
Hello,
Is there a way to use more than one SSL certificate and have TLS enabled across multiple domains? Is that something that I would need to use a separate SIP profile for?
Thank you, Mike
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
--
Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>
Email: brian@freeswitch.com
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/>
[image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch>
*_________________________________________________________________________* Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
--
Brian West | Co-founder and Developer
Need Commercial support? email sales@freeswitch.com
FreeSWITCH Solutions | 17345 Civic Drive #2531 Brookfield, WI 53045 <https://maps.google.com/?q=17345+Civic+Drive+%232531+Brookfield,+WI+53045&entry=gmail&source=g>
Email: brian@freeswitch.com
Mobile: 918-424-9378
Website: https://www.FreeSWITCH.com <https://www.freeswitch.com/>
[image: https://www.facebook.com/signalwireinc?src=email] <https://www.facebook.com/freeswitch> [image: https://twitter.com/freeswitch] <https://twitter.com/freeswitch> _________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
Hi! SNI (Server Name Indication), part of TLS could do this but I would not bet that phones actually send this. If you are able to host on different IPs, it would work with internal + external profiles: <!-- SIP and TLS settings. --> <X-PRE-PROCESS cmd="set" data="sip_tls_version=sslv23"/> <!-- Internal SIP Profile --> <X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/> <X-PRE-PROCESS cmd="set" data="internal_sip_port=5060"/> <X-PRE-PROCESS cmd="set" data="internal_tls_port=5061"/> <X-PRE-PROCESS cmd="set" data="internal_ssl_enable=false"/> <X-PRE-PROCESS cmd="set" data="internal_ssl_dir=$${base_dir}/conf/ssl"/> <!-- External SIP Profile --> <X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/> <X-PRE-PROCESS cmd="set" data="external_sip_port=5080"/> <X-PRE-PROCESS cmd="set" data="external_tls_port=5081"/> <X-PRE-PROCESS cmd="set" data="external_ssl_enable=false"/> <X-PRE-PROCESS cmd="set" data="external_ssl_dir=$${base_dir}/conf/ssl"/> At least for 1.6.x I am not aware of multi cert for same profile, docs for 1.8.x are limited (as the users does not know what he does not know ;-) ) Maybe nginx can also solve this as a transparent proxy. I did something like this using Kamailio for a large cluster setup. Kevin Am Di., 20. Nov. 2018 um 18:30 Uhr schrieb Michael Avers < michael@mailworks.org>:
Hello,
Is there a way to use more than one SSL certificate and have TLS enabled across multiple domains? Is that something that I would need to use a separate SIP profile for?
Thank you, Mike
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
HI Ryan, thanks a lot ! it works like a charm. ++ Le mar. 20 nov. 2018 à 15:40, Ryan Harris <ryharris@airmail.cc> a écrit :
On 11/16/18 3:29 AM, Mickael Hubert wrote:
Hi all, currently, I use asterisk uniqueid to lot of internals processes Ex: 001-1542296620.1319230 I want to change asterisk by FS, but I have to keep this uniqueid format. I know the format of the uniqueid : [server id]-[timestamp].[random integer]
How can I generate it from FS please ?
Touch and edit /usr/share/freeswitch/scripts/uniqueid.lua
Write this to the file:
local server_id = argv[1] or '001' -- defaults system id to '001' if you don't pass an arg stream:write(server_id .. '-' .. os.time() .. '.' .. math.random(1000000,9999999))
Then use this in your XML dialplan:
<action application="set" data="server_id=003"/>
<action application="set" data="UNIQUEID=${lua(uniqueid.lua ${server_id})}"/>
Now you have a UNIQUEID channel variable in the format you requested.
_________________________________________________________________________ Professional FreeSWITCH Services sales@freeswitch.com https://freeswitch.com
Official FreeSWITCH Sites https://freeswitch.com/oss https://freeswitch.org/confluence https://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 https://freeswitch.com
participants (7)
-
Andrew Cassidy
-
Brian West
-
Kevin Olbrich
-
Michael Avers
-
Mickael Hubert
-
Nathan Neulinger
-
Ryan Harris