<div dir="ltr">I believe that EVAL might be able to help you here: <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Function_EVAL">https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Function_EVAL</a><div><br></div><div>Example:</div><div><br></div><div> Allphones=${EVAL(Kphones)}&${EVAL(Sphones)}<br></div><div><br></div><div>I'm not sure if in the globals it will let you, but in the dialplan for sure it will.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jan 24, 2023 at 3:59 AM Antony Stone <<a href="mailto:Antony.Stone@asterisk.open.source.it">Antony.Stone@asterisk.open.source.it</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi.<br>
<br>
I have a very old dialplan (ie: a dialplan for a very old version of Asterisk) <br>
which I've just transferred to Asterisk 16.28.0<br>
<br>
The [globals] section of that dialplan includes:<br>
<br>
Kphones=SIP/KC470IP&SIP/KSnom870<br>
Sphones=SIP/SYealinkT38G&SIP/SGC610IP<br>
Allphones=${Kphones}&${Sphones}<br>
<br>
In the old system, this results in ${Allphones} containing:<br>
<br>
SIP/KC470IP&SIP/KSnom870&SIP/SYealinkT38G&SIP/SGC610IP<br>
<br>
I can use this in a dial() command.<br>
<br>
On the new system, the variable Allphones ends up containing:<br>
<br>
${Kphones}&${Sphones}<br>
<br>
(ie: the unexpanded variable names, not the content of those previously-<br>
defined variables.)<br>
<br>
This fairly obviously does not work in a dial() command.<br>
<br>
<br>
a) is this a deliberate backward incompatiblity at some stage in the <br>
development of Asterisk?<br>
<br>
b) if not, is this a known bug?<br>
<br>
c) is there some other way I'm supposed to be doing this now, to be able to <br>
define a global variable including the value of another global variable?<br>
<br>
d) if not, is there some workaround?<br>
<br>
<br>
Thanks,<br>
<br>
<br>
Antony.<br>
<br>
-- <br>
Most people are aware that the Universe is big.<br>
<br>
- Paul Davies, Professor of Theoretical Physics<br>
<br>
Please reply to the list;<br>
please *don't* CC me.<br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>