<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Verdana; font-size: 10pt; color: #000000'><span>within libss7</span><div><br></div><div><span id="BCB3C718-BACB-11DC-B53B-B8AC0D22A50D">in isup.c</span></div><div><br></div><div><div>static char digit2char(unsigned char digit)</div><div>{</div><div> switch (digit & 0xf) {</div><div> case 0:</div><div> return '0';</div><div> case 1:</div><div> return '1';</div><div> case 2:</div><div> return '2';</div><div> case 3:</div><div> return '3';</div><div> case 4:</div><div> return '4';</div><div> case 5:</div><div> return '5';</div><div> case 6:</div><div> return '6';</div><div> case 7:</div><div> return '7';</div><div> case 8:</div><div> return '8';</div><div> case 9:</div><div> return '9';</div><div> case 12:</div><div> return 'c';</div><div> case 13:</div><div> return 'd';</div><div> case 14:</div><div> return 'e';</div><div> case 15:</div><div> return '#';</div><div> default:</div><div> return 0;</div><div> }</div><div>}</div><div><br></div><div><br></div><div>and for:</div></div><div><div><br></div><div><div>static char digit2char(unsigned char digit)</div><div>{</div><div> switch (digit & 0xf) {</div><div> case 0:</div><div> return '0';</div><div> case 1:</div><div> return '1';</div><div> case 2:</div><div> return '2';</div><div> case 3:</div><div> return '3';</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>case 4:</div></div><div><div> return '4';</div><div> case 5:</div><div> return '5';</div><div> case 6:</div><div> return '6';</div><div> case 7:</div><div> return '7';</div><div> case 8:</div><div> return '8';</div><div> case 9:</div><div> return '9';</div><div> case 12:</div><div> return 'c';</div><div><div> case 13:</div><div> return 'd';</div><div><div> case 14:</div><div> return 'e';</div></div></div><div> case 15:</div><div> return '#';</div><div> default:</div><div> return 0;</div><div><br></div></div></div><div><span id="BCB3C718-BACB-11DC-B53B-B8AC0D22A50D"><br>met vriendelijke groeten,<br><br>Joeri van Dooren<br></span><br>----- "Rennes Neps" <Rennes.Neps@norby.ee> schreef:
<br>>
<div class="Section1">>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D">As I’m not very strong in C, can you please point me in the
right direction, what am I looking for there in the file? Tried to look already,
but unexperienced eye did’nt find it :D</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D">Thanks</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D">Rennes</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D"> </span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
asterisk-ss7-bounces@lists.digium.com
[mailto:asterisk-ss7-bounces@lists.digium.com] <b>On Behalf Of </b>Joeri van
Dooren<br>>
<b>Sent:</b> 12. oktoober 2009. a. 17:10<br>>
<b>To:</b> asterisk-ss7@lists.digium.com<br>>
<b>Subject:</b> Re: [asterisk-ss7] libss7 problem with dialing a non numeric string</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"; color:black">Just change isup.c accordingly,</span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"; color:black">we did for our local changes to,<br>>
<br>>
met vriendelijke groeten,<br>>
<br>>
Joeri van Dooren<br>>
<br>>
----- "Rennes Neps" <Rennes.Neps@norby.ee> schreef: <br>>
> </span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"; color:black">> </span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">Hei!</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">I’m trying to send special characters out to ss7
link, but libss7 seems to convert them to zeroes. The challenge is that our
service provider demands some of the regional numbers to be sent in format
D0+number. When I use D in front of the number in dialplan, libss7 replaces it
with 00, So I have a dial string:</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">exten => _[A-Z].,1,Dial(DAHDI/g1/DD0501,,g)</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">But in SS7 trace I see:</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">
--VARIABLE LENGTH PARMS[1]--</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">
Called Party Number:</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">
Nature of address: 3</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">
NI: 0</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">
Numbering plan: 1</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">
Address signals: 000000501#</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">
[ 07 03 10 00 00 00 05 f1 ]</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">Do you have any idea how to fix that?</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">My chan_dahci.conf is as follows:</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">[channels]</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">switchtype=euroisdn</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">;;; linkset 1</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">context=incoming_ss7</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">echocancel=yes</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">echotraining=yes</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">echocancelwhenbridged=yes</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">group=1</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">linkset=1</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">signalling=ss7</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">ss7type=itu</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">pointcode=50</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">adjpointcode=14</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">defaultdpc=14</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">;networkindicator=international</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">networkindicator=national_spare</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">ss7_called_nai=dynamic</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">ss7_calling_nai=dynamic</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">;ISDN call type</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">ss7_internationalprefix = 00</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">;ss7_nationalprefix =</span><span style="color: black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">;ss7_subscriberprefix =</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">;ss7_unknownprefix = DD</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">cicbeginswith = 2</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">channel = 2-31</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">sigchan=1</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">Thanks in advance</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">BR</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black"> </span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span lang="ET" style="color:black">Rennes Neps</span><span style="color:black"></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span style="color:black"> </span></p>
</div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana","sans-serif"; color:black"><br>> </span></p></div></div></div></div></div></body></html>