<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Juraj,<div><span class="Apple-tab-span" style="white-space:pre">        </span>I thank you for your time to track this down. &nbsp;But we don't post patches to the mailing lists you'll need to open a jira at <a href="http://jira.freeswitch.org">http://jira.freeswitch.org</a> and attach the patch if possible.</div><div><br></div><div>Thanks,</div><div>Brian</div><div><br></div><div>Sent from my hospital bed.</div><div><br></div><div><div><div>On Feb 1, 2012, at 8:42 AM, Juraj Fabo wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi<br><br>I'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'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 &nbsp;&nbsp;2012-02-01<br>14:02:30.000000000 +0000<br>+++ src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_support_mod.c<br>2012-02-01 14: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> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ftdm2trillium_t *val = vals;<br>- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while(val++) {<br>+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while(val) {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (val-&gt;ftdm_val == ftdm_val) {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return val-&gt;trillium_val;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;val++;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ftdm2trillium_t *val = vals;<br>- &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while(val++) {<br>+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;while(val) {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (val-&gt;trillium_val == trillium_val) {<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return val-&gt;ftdm_val;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;val++;<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return default_val;<br> }<br><br> Is there some other way how to go around?<br><br> Thank you<br><br> Juraj<br>_________________________________________________________________________<br>Professional FreeSWITCH Consulting Services:<br><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>http://www.freeswitchsolutions.com<br><br>FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>http://www.cudatel.com<br><br>Official FreeSWITCH Sites<br>http://www.freeswitch.org<br>http://wiki.freeswitch.org<br>http://www.cluecon.com<br><br>FreeSWITCH-dev mailing list<br>FreeSWITCH-dev@lists.freeswitch.org<br>http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev<br>UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev<br>http://www.freeswitch.org<br></div></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">--&nbsp;<br>Brian West&nbsp;<br>FreeSWITCH Solutions, LLC<br>Phone: +1 (918) 420-9266&nbsp;<br>Fax: &nbsp; +1 (918) 420-9267<br><a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a><br>http://www.freeswitch.org</span>
</div>
<br></div></body></html>