Re: Global variables in global variables

Antony Stone <[email protected]>
Newsgroups gmane.comp.telephony.pbx.asterisk.user
Message-ID <[email protected]>
On Wednesday 25 January 2023 at 19:17:04, Daniel wrote:

> Asterisk 20.1.0
> 
> [globals]
> Sphones=SIP/SYealinkT38G&SIP/SGC610IP
> Kphones=SIP/KC470IP&SIP/KSnom870
> Allphones=${Sphones}&${Kphones}
> 
> -s*CLI> dialplan show globals
> Allphones=SIP/KC470IP&SIP/KSnom870&SIP/SYealinkT38G&SIP/SGC610IP
> Sphones=SIP/SYealinkT38G&SIP/SGC610IP
> Kphones=SIP/KC470IP&SIP/KSnom870

Thank you very much.

I have now established that this works provided it's in extensions.conf or 
some included file.

It does not work if it's written in AEL - assigning global variables works, 
but the above does not.

I shall keep my global assignments out of AEL in future.

Thanks,


Antony.

-- 
Just when you think you're done, a cat floats by with buttered toast strapped 
to its back.

 - Steve Krug, "Don't make me think"

                                                   Please reply to the list;
                                                         please *don't* CC me.

-- 
_____________________________________________________________________
-- 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.