Re: Global variables in global variables

Daniel <[email protected]>
Newsgroups gmane.comp.telephony.pbx.asterisk.user
Message-ID <[email protected]>
Le 25/01/2023 à 17:56, Antony Stone a écrit :
> On Wednesday 25 January 2023 at 16:46:14, Daniel wrote:
> 
> On Sunday 01 January 2023 at 17:30:03, Antony Stone wrote:
> 
>>> The [globals] section of that dialplan includes:
>>>
>>> 	Kphones=SIP/KC470IP&SIP/KSnom870
>>> 	Sphones=SIP/SYealinkT38G&SIP/SGC610IP
>>> 	Allphones=${Kphones}&${Sphones}
>>>
>>> On the new system, the variable Allphones ends up containing:
>>>
>>> 	${Kphones}&${Sphones}
>>
>> I do the same concatenation with Asterisk 18 & 20 and there is no problem.
> 
> Really?
> 
> You have something like:
> 
> 	Allphones=${Kphones}&${Sphones}
> 
> and specifically *in the [globals] section* of the dialplan?

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

0
-- 
Daniel Huhardeaux
[email protected]	      sip:[email protected]
[email protected]		    tootaiNET

-- 
_____________________________________________________________________
-- 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.