<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Moises Silva escreveu:
<blockquote
cite="mid:c4d05cbe0909031111m2d20dd39j70f909e696025a53@mail.gmail.com"
type="cite">
<div class="gmail_quote">
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; 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;">
</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 moz-do-not-send="true"
href="mailto:moy@sangoma.com">moy@sangoma.com</a><br>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
--Bandwidth and Colocation Provided by <a class="moz-txt-link-freetext" href="http://www.api-digital.com">http://www.api-digital.com</a>--
asterisk-r2 mailing list
To UNSUBSCRIBE or update options visit:
<a class="moz-txt-link-freetext" href="http://lists.digium.com/mailman/listinfo/asterisk-r2">http://lists.digium.com/mailman/listinfo/asterisk-r2</a></pre>
</blockquote>
This change is made in my initial patch. I made this a two days early.
Now, I use only the mfcr2 branch.<br>
<br>
I will test this in the morning.<br>
<br>
<pre class="moz-signature" cols="72">--
Afonso Zimmermann
</pre>
</body>
</html>