[asterisk-users] Global variables in global variables

Daniel admin at tootai.net
Wed Jan 25 12:17:04 CST 2023


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
+33.368460088 at tootai.net	      sip:820 at sip.tootai.net
+41.445532125 at swiss-itech.ch		    tootaiNET



More information about the asterisk-users mailing list