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
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/KSnom870Thank 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.