<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#ffffff" text="#000000">Hi Moises,<br>
<br>
The variable is now passing. It works. But the identification of value
doesn't work. I tested in the following situations:<br>
<br></div></blockquote><div><br></div><div>That is my bad, I forgot to synchronize the code, I assume you used google code svn branch, didn't you? I commited the code to my private svn repository, but not synchronized with google code svn, so there was no code to identify the new strings. I have synchronized now, can you update your svn tree and try again?</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div bgcolor="#ffffff" text="#000000"> -- Executing [s@macro-disc-dialout-trunk:12] Dial("DAHDI/1-1",
"DAHDI/g2/9902|120|tTwW") in new stack<br>
[Sep 3 14:57:05] WARNING[3841]: chan_dahdi.c:990
dahdi_r2_get_channel_category: Invalid category specified
'International Subscriber' for chan DAHDI/32-1, using default National
Subscriber<br>
-- Called g2/9902<br>
<br>
About this case, I have made other change in asterisk to not use global
variables:<br>
<br>
- pbx_builtin_setvar_helper(c,
"MFCR2_CATEGORY",
openr2_proto_get_category_string(p->mfcr2_recvd_category));<br>
+ c->tech_pvt = p;<br>
<br>
- const char *catstr = pbx_builtin_getvar_helper(c,
"MFCR2_CATEGORY");<br>
struct dahdi_pvt *p = c->tech_pvt;<br>
+ const char *catstr =
openr2_proto_get_category_string(p->mfcr2_category);<br>
<br>
It works too. <br>
<pre cols="72"><font class="Apple-style-span" face="arial" size="3"><span class="Apple-style-span" style="font-size: 13px; white-space: normal;"><font class="Apple-style-span" face="-webkit-monospace" size="2"><span class="Apple-style-span" style="font-size: 10px; white-space: pre;"><br>
</span></font></span></font></pre></div></blockquote><div><br></div><div>I don't understand what you are trying to do here, mfcr2-1.4 branch does not use global variables at all, what are this changes you did for?</div>
<div><br></div></div>-- <br>Moises Silva<br>Software Developer<br>Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada<br>t. 1 905 474 1990 x 128 | e. <a href="mailto:moy@sangoma.com">moy@sangoma.com</a><br>