Re: [asterisk-users] Alternative to Local channel
On Fri, Aug 18, 2023 at 12:38 AM Federico wrote: > It's a great idea but it doesn't work. > Maybe this should be the way that works. > I just did it with stock sample configs aside from adding the variable to globals and it worked perfectly fine. Any modules which contain any referenced dialplan functions need to load before pbx_config. This can explicitly be done using modules.conf -- Joshua C. Colp Asterisk Project Lead Sangoma Technologies Check us out at www.sangoma.com and www.asterisk.org -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Alternative to Local channel
It's a great idea but it doesn't work. Maybe this should be the way that works. -Original Message- From: Eric Wieling Sent: Thursday, August 17, 2023 3:43 PM To: Asterisk Users Mailing List - Non-Commercial Discussion ; Federico Subject: Re: [asterisk-users] Alternative to Local channel You can't set the variable in globals? I don't know if functions work in globals, but it is worth a try. [globals] LSESSION=${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} On 8/16/23 20:39, Federico wrote: > I used to use the local channel to create a global variable > > (dialplan) > > [default] > > exten => s,1,Set(GLOBAL(LSESSION)=${STRFTIME(${EPOCH},,%Y-%m-%d > %H:%M:%S)}) > > to that end, I modified cli.conf > > [startup_commands] > > originate local/s extension s@default = yes > > But now I upgraded to Asterisk18 and there is no longer a local > channels > > Does anybody have any idea of a workaround? > > -- http://help.nyigc.net/ -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Alternative to Local channel
You can't set the variable in globals? I don't know if functions work in globals, but it is worth a try. [globals] LSESSION=${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)} On 8/16/23 20:39, Federico wrote: I used to use the local channel to create a global variable (dialplan) [default] exten => s,1,Set(GLOBAL(LSESSION)=${STRFTIME(${EPOCH},,%Y-%m-%d %H:%M:%S)}) to that end, I modified cli.conf [startup_commands] originate local/s extension s@default = yes But now I upgraded to Asterisk18 and there is no longer a local channels Does anybody have any idea of a workaround? -- http://help.nyigc.net/ -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Alternative to Local channel
On 8/17/23 05:04, Federico wrote: Yes that are, but how do I use them to execute a part of the dialplan, once, when Asterisk starts up. Systemd provides "ExecStartPost=" option to run more commands eg. cp /usr/local/src/asterisk/sample.call /var/spool/asterisk/outgoing/ -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Alternative to Local channel
Yes that are, but how do I use them to execute a part of the dialplan, once, when Asterisk starts up. module show like originate Module Description Use Count Status Support Level app_originate.so Originate call 0 Running core res_clioriginate.soCall origination and redirection from th 0 Running core 2 modules loaded -Original Message- From: asterisk-users On Behalf Of Steve Edwards Sent: Wednesday, August 16, 2023 11:31 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] Alternative to Local channel On Wed, 16 Aug 2023, Federico wrote: > But now I upgraded to Asterisk18 and there is no longer a local channels Are app_originate.so and res_clioriginate.so loaded? -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST https://www.linkedin.com/in/steve-edwards-4244281 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Alternative to Local channel
On Wed, 16 Aug 2023, Federico wrote: But now I upgraded to Asterisk18 and there is no longer a local channels Are app_originate.so and res_clioriginate.so loaded? -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com Voice: +1-760-468-3867 PST https://www.linkedin.com/in/steve-edwards-4244281 -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users