<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Lucida Console";
panose-1:2 11 6 9 4 5 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=HR link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Hello,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>I have following dahdi-channels.conf:<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span lang=EN-US style='font-size:10.0pt;font-family:"Lucida Console";color:black'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>; Span 1: TE8/0/1 "T8XXP (PCI) Card 0 Span 1" (MASTER) <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>; Server X IN channels<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>group = 11<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>setvar = GROUP_NR=11<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>context = from-pri<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>switchtype = euroisdn<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>signalling = pri_net<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>channel => 1-15,17-21<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>; Server X OUT channels<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>group = 12<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>setvar = GROUP_NR=12<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>context = from-pri<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>switchtype = euroisdn<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>signalling = pri_net<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>channel => 22-31<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>; Span 2: TE8/0/2 "T8XXP (PCI) Card 0 Span 2"<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>; Asterisk .98<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>group = 2<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>setvar = GROUP_NR=2<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>context = from-pri<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>switchtype = euroisdn<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>signalling = pri_net<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>channel => 32-46,48-62<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>; ... other spans<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>; Span 8: TE8/0/8 "T8XXP (PCI) Card 0 Span 8" <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>; Panasonic PBX<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>group = 8<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>setvar = GROUP_NR=8<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>context = from-pri<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>switchtype = euroisdn<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>signalling = pri_net<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>channel => 218-232,234-248<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'><o:p> </o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>And extensions.conf:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>[from-pri]<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>exten => _X!,1,Stasis(AriStart,SPAN=${CHANNEL(dahdi_span)},CHANNEL=${CHANNEL(dahdi_channel)},GROUP=${GROUP_NR}, ...other parameters)<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>In every group I have „<span style='font-size:10.0pt;font-family:"Lucida Console";color:black'>setvar = GROUP_NR=X</span>“. 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 nad 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, var GROUP_NR is set to 11 (1st group and setvar from our config) and not to value 8. It looks like that either parsing of the conf 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 conf files GROUP_NR variable was always set to the value according to setvar from that group.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Can anyone check this out? Should I file an issue?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><b><span style='font-size:8.0pt;mso-fareast-language:HR'>Marin Odrljin<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:8.0pt;mso-fareast-language:HR'><a href="mailto:marin@maxcom.hr"><span style='color:blue'>marin@maxcom.hr</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;mso-fareast-language:HR'>mob: +385 98 168 7071<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;mso-fareast-language:HR'>-------------------------------------<o:p></o:p></span></p><p class=MsoNormal><b><span style='font-size:8.0pt;mso-fareast-language:HR'>maxcom d.o.o.<o:p></o:p></span></b></p><p class=MsoNormal><span style='font-size:8.0pt;mso-fareast-language:HR'>Zagrebačka 89, 42000 Varaždin, HR<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;mso-fareast-language:HR'>tel: +385 (42) 204 137<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;mso-fareast-language:HR'>fax: +385 (42) 204 138<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;mso-fareast-language:HR'><a href="http://www.maxcom.hr/"><span style='color:blue'>www.maxcom.hr</span></a><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;mso-fareast-language:HR'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:8.0pt;mso-fareast-language:HR'><img border=0 width=169 height=36 id="Picture_x0020_7" src="cid:image001.jpg@01D6455B.3ECAB1E0" alt="Description: Description: maxcom_logo.gif"></span><span style='mso-fareast-language:HR'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>