<div dir="ltr"><div>This is the result of your email address being subscribed to the asterisk-bugs mailing list. I have unsubscribed your email address from it.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jun 19, 2020 at 11:21 AM KELLY DELERENZO <<a href="mailto:delerenzo.kelly@gmail.com">delerenzo.kelly@gmail.com</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"><div dir="auto">Stop sending me your crap</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jun 18, 2020, 4:19 AM Marin Odrljin (JIRA) <<a href="mailto:noreply@issues.asterisk.org" target="_blank">noreply@issues.asterisk.org</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">Marin Odrljin created ASTERISK-28955:<br>
----------------------------------------<br>
<br>
             Summary: "setvar" doesn't work properly in dahdi-channels.conf<br>
                 Key: ASTERISK-28955<br>
                 URL: <a href="https://issues.asterisk.org/jira/browse/ASTERISK-28955" rel="noreferrer noreferrer" target="_blank">https://issues.asterisk.org/jira/browse/ASTERISK-28955</a><br>
             Project: Asterisk<br>
          Issue Type: Bug<br>
      Security Level: None<br>
          Components: Core/Configuration<br>
    Affects Versions: 16.11.0<br>
            Reporter: Marin Odrljin<br>
            Severity: Minor<br>
<br>
<br>
"setvar" works differently than in previous Asterisk versions, e.g. 16.4.1 or 13.11.2.<br>
<br>
I have following dahdi-channels.conf:<br>
<br>
{code}<br>
; Span 1: TE8/0/1 "T8XXP (PCI) Card 0 Span 1" (MASTER) <br>
; Server X IN channels<br>
group = 11<br>
setvar = GROUP_NR=11<br>
context = from-pri<br>
switchtype = euroisdn<br>
signalling = pri_net<br>
channel => 1-15,17-21<br>
<br>
; Server X OUT channels<br>
group = 12<br>
setvar = GROUP_NR=12<br>
context = from-pri<br>
switchtype = euroisdn<br>
signalling = pri_net<br>
channel => 22-31<br>
<br>
; Span 2: TE8/0/2 "T8XXP (PCI) Card 0 Span 2"<br>
; Asterisk .98<br>
group = 2<br>
setvar = GROUP_NR=2<br>
context = from-pri<br>
switchtype = euroisdn<br>
signalling = pri_net<br>
channel => 32-46,48-62<br>
<br>
; ... other spans<br>
<br>
; Span 8: TE8/0/8 "T8XXP (PCI) Card 0 Span 8" <br>
; Panasonic PBX<br>
group = 8<br>
setvar = GROUP_NR=8<br>
context = from-pri<br>
switchtype = euroisdn<br>
signalling = pri_net<br>
channel => 218-232,234-248<br>
{code}<br>
<br>
And extensions.conf:<br>
<br>
{code}<br>
[from-pri]<br>
exten => _X!,1,Stasis(AriStart,SPAN=${CHANNEL(dahdi_span)},CHANNEL=${CHANNEL(dahdi_channel)},GROUP=${GROUP_NR}, ...other parameters)<br>
{code}<br>
<br>
In every group I have "setvar = GROUP_NR=X". This is a convenient way how I can have only one entry in dialplan for context "from-pri" and to know from which group a call came in. In Asterisk 13 that works fine, but we have decided to slowly move toward newer Asterisk version 16 because of new features and LTS. We have started to test with Asterisk 16.4.1 when it came out and this part with "setvar" was working fine, but now we took a latest one for production server and "setvar" is not working properly anymore. In version 16.11 if call comes at span 8, variable GROUP_NR is set to value 11 (1st group and setvar from our config) and not to value 8 as defined in that group. It looks like either parsing of the config file has changed and it takes now the "setvar" entry from the first group where it occurs. If I remove all "setvar=GROUP_NR=..." except in the last group 8 then it is fine. In previous versions and the same config files GROUP_NR variable was always set to the value according to "setvar" directive from that group.<br>
<br>
<br>
<br>
--<br>
This message was sent by Atlassian JIRA<br>
(v6.2#6252)<br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-bugs mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-bugs" rel="noreferrer noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-bugs</a></blockquote></div>
-- <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>
asterisk-bugs mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="http://lists.digium.com/mailman/listinfo/asterisk-bugs" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-bugs</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Development Team</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com/" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org/" target="_blank">www.asterisk.org</a></font></div></div></div></div>