<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div><div><div class="h5"><div>On Feb 1, 2012, at 8:42 AM, Juraj Fabo wrote:</div>
<br></div></div><blockquote type="cite"><div><div><div class="h5">Hi<br><br>I&#39;m using freetdm from git downloaded on 30.1.2012.<br>On windows I had no problems, but on sles 11 sp1 64bit call setup message<br>was missing caller and called information elements.<br>
I&#39;ve tracked down the problem to file<br>src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support.c, into function<br>get_trillium_val()<br>Particularly, when get_trillium_val(ton_codes, 0, IN_TON_UNK) is called,<br>0xe6 is returned (which is from the nsf_spec_codes[] table)<br>
I think the loop should have some strict terminate condition but not sure<br>about the write intention.<br>My workaround to be able to continue development is following<br><br>diff -urN src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support.c<br>
src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support_mod.c<br>--- src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support.c   2012-02-01<br>14:02:30.000000000 +0000<br>+++ src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support_mod.c<br>
<a href="tel:2012-02-01%2014" value="+12012020114" target="_blank">2012-02-01 14</a>:02:08.000000000 +0000<br>@@ -106,10 +106,11 @@<br> static uint8_t get_trillium_val(ftdm2trillium_t *vals, uint8_t ftdm_val,<br>uint8_t default_val)<br>
 {<br>        ftdm2trillium_t *val = vals;<br>-       while(val++) {<br>+       while(val) {<br>                if (val-&gt;ftdm_val == ftdm_val) {<br>                        return val-&gt;trillium_val;<br>                }<br>
+                val++;<br>        }<br>        return default_val;<br> }<br>@@ -117,10 +118,11 @@<br> static uint8_t get_ftdm_val(ftdm2trillium_t *vals, uint8_t trillium_val,<br>uint8_t default_val)<br> {<br>        ftdm2trillium_t *val = vals;<br>
-       while(val++) {<br>+       while(val) {<br>                if (val-&gt;trillium_val == trillium_val) {<br>                        return val-&gt;ftdm_val;<br>                }<br>+                val++;<br>        }<br>
        return default_val;<br> }<br><br> Is there some other way how to go around?<br><br> </div></div></div></blockquote></div></div></div></blockquote><div><br></div><div>All that looping code was f&#39;d up pretty bad and it was fixed yesterday. Update to see the fix.</div>
<div><br class="Apple-interchange-newline"><table border="0" cellspacing="0" cellpadding="0" width="648" style="width:486.3pt;border-collapse:collapse"><tbody><tr style="height:60.55pt"><td style="border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;border-top-style:dotted;border-top-color:rgb(128,176,214);border-top-width:1pt;padding-top:1.45pt;padding-right:5.75pt;padding-bottom:1.45pt;padding-left:5.75pt;height:60.55pt">
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><b><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(14,93,167)">Moises Silva<br>
</span></b><b><i><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Software Engineer, Development Manager</span></i></b><b><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(14,93,167)"></span></b></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)"><a href="mailto:msilva@sangoma.com" target="_blank">msilva@sangoma.com</a></span></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)">Sangoma Technologies</span></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)">100 Renfrew Drive, Suite 100, Markham, ON L3R 9R6 Canada</span><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(255,192,0)"></span></p>
</td><td width="187" style="width:140.45pt;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;border-top-style:dotted;border-top-color:rgb(128,176,214);border-top-width:1pt;padding-top:1.45pt;padding-right:5.75pt;padding-bottom:1.45pt;padding-left:5.75pt;height:60.55pt">
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)"><br>t.   +1 800 388 2475 (N. America)</span></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)">t.   +1 905 474 1990 x128</span></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(0,92,165)">f.   +1 905 474 9223</span></p>
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><span lang="EN-CA" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(31,73,125)"> </span></p></td><td width="149" rowspan="2" style="width:111.55pt;border-top-style:dotted;border-top-color:rgb(128,176,214);border-top-width:1pt;border-left-style:none;border-left-width:initial;border-left-color:initial;border-bottom-style:dotted;border-bottom-color:rgb(128,176,214);border-bottom-width:1pt;border-right-style:none;border-right-width:initial;border-right-color:initial;padding-top:1.45pt;padding-right:5.75pt;padding-bottom:1.45pt;padding-left:5.75pt;height:60.55pt">
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><a href="http://www.sangoma.com/contact?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email+signatures" target="_blank"><b><span style="color:rgb(31,73,125);text-decoration:none"><img border="0" width="96" height="15"></span></b></a><span style="color:rgb(31,73,125)"></span></p>
</td></tr><tr><td width="500" colspan="2" style="width:374.75pt;border-top-style:none;border-right-style:none;border-left-style:none;border-width:initial;border-color:initial;border-bottom-style:dotted;border-bottom-color:rgb(128,176,214);border-bottom-width:1pt;padding-top:1.45pt;padding-right:5.75pt;padding-bottom:1.45pt;padding-left:5.75pt">
<p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;line-height:15px"><a href="http://sangoma.com/products?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Products</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://sangoma.com/solutions?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Solutions</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://sangoma.com/about_us/events?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Events</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://www.sangoma.com/contact?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Contact</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://wiki.sangoma.com/?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Wiki</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://www.facebook.com/pages/Sangoma-VoIP-Cards/43578453335?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Facebook</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)"> | </span><a href="http://www.twitter.com/sangoma?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">Twitter</span></a><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">`| | </span><a href="http://www.youtube.com/sangomatechnologies?utm_source=signature&amp;utm_medium=email&amp;utm_campaign=email%2Bsignatures" target="_blank"><span lang="PT-BR" style="font-size:8pt;line-height:12px;font-family:Arial,sans-serif;color:rgb(128,176,214)">YouTube</span></a><span style="font-size:8pt;line-height:12px;color:rgb(31,73,125)"></span></p>
</td></tr></tbody></table><p style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px"><br></p></div></div>