Thanks to all, edited the file as follows, recompiled and it worked great<div><div><font class="Apple-style-span" size="1">static char char2digit(char localchar)</font></div><div><font class="Apple-style-span" size="1">{</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">        </span>switch (localchar) {</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case '0':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 0;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case '1':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 1;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case '2':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 2;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case '3':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 3;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case '4':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 4;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case '5':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 5;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case '6':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 6;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case '7':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 7;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case '8':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 8;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case '9':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 9;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 'A':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 0xa;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 'B':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 0xb;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 'C':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 0xc;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 'D':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 0xd;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 'E':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 0xe;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 'F':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 0xf;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case '#':</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 0xf;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>default:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 0;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">        </span>}</font></div>
<div><font class="Apple-style-span" size="1">}</font></div><div><font class="Apple-style-span" size="1"><br></font></div><div><font class="Apple-style-span" size="1">static char digit2char(unsigned char digit)</font></div>
<div><font class="Apple-style-span" size="1">{</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">        </span>switch (digit & 0xf) {</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 0:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return '0';</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 1:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return '1';</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 2:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return '2';</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 3:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return '3';</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 4:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return '4';</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 5:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return '5';</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 6:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return '6';</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 7:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return '7';</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 8:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return '8';</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 9:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return '9';</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 10:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 'A';</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 11:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 'B';</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 12:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 'C';</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 13:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 'D';</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 14:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 'E';</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>case 15:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return '#';</font></div><div><font class="Apple-style-span" size="1"><br></font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                </span>default:</font></div>
<div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">                        </span>return 0;</font></div><div><font class="Apple-style-span" size="1"><span class="Apple-tab-span" style="white-space:pre">        </span>}</font></div>
<div><font class="Apple-style-span" size="1">}</font></div></div><div><br><div><div><br><div class="gmail_quote">2011/8/18 Davíð F. Gunnarsson <span dir="ltr"><<a href="mailto:davidf@hringdu.is" target="_blank">davidf@hringdu.is</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0, 0, 0);font-size:14px;font-family:Calibri, sans-serif">
<div>Hi </div>
<div><br>
</div>
<div>It 's not included. You will have to edit isup.c and add to ( I had a similar problem with E )</div>
<div><br>
</div>
<div>
<div>static char char2digit(unsigned char localchar)</div>
<div>{</div>
<div> switch (localchar) {</div>
</div>
<div><br>
</div>
<div>Add</div>
<div><br>
</div>
<div>
<div> case 'B':</div>
<div> return 0xb;</div>
</div>
<div><br>
</div>
<div>This should convert B for you. You will have to edit digit2char function to be able to call the same string.</div>
<div><br>
</div>
<div>Best Regards</div>
<div>Davíð Fannar Gunnarsson</div>
<div><a href="mailto:Davidf@hringdu.is" target="_blank">Davidf@hringdu.is</a></div>
<div><a href="tel:%2B354%20822-9923" value="+3548229923" target="_blank">+354 822-9923</a></div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;border-bottom:medium none;border-left:medium none;padding-bottom:0in;padding-left:0in;padding-right:0in;border-top:#b5c4df 1pt solid;border-right:medium none;padding-top:3pt">
<span style="font-weight:bold">From: </span>Gustavo Mársico <<a href="mailto:gustavomarsico@gmail.com" target="_blank">gustavomarsico@gmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span><<a href="mailto:asterisk-ss7@lists.digium.com" target="_blank">asterisk-ss7@lists.digium.com</a>><br>
<span style="font-weight:bold">Date: </span>Thu, 18 Aug 2011 20:44:20 -0300<br>
<span style="font-weight:bold">To: </span><<a href="mailto:asterisk-ss7@lists.digium.com" target="_blank">asterisk-ss7@lists.digium.com</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [asterisk-ss7] problem when called party number begins with star key (*)<br>
</div><div><div></div><div>
<div><br>
</div>
<div>
<div style="word-wrap:break-word">
As far as I see the Called party Num has:
<div><br>
</div>
<div>> [ 05 83 10 5b 01 0f ]</div>
<div><br>
</div>
<div>that means B501F. The F is the mark saying "there is no more digits". For some reason libss7 doesn't properly pass the digits in the structure.</div>
<div>Please test the Athila's libss7 branch. I use it with several services starting with B with no issues.
<div><br>
</div>
<div><br>
<div>
<div>On Aug 18, 2011, at 8:28 PM, Luis Marcelo wrote:</div>
<br>
<blockquote type="cite">
<div>Thanks Gustavo, I tried:</div>
<div><br>
</div>
<div>B510</div>
<div>b510</div>
<div>_bX.</div>
<div>-BX.</div>
<div><br>
</div>
<div>still no luck<br>
<br>
<div class="gmail_quote">2011/8/18 Gustavo Mársico <span dir="ltr"><<a href="mailto:gustavomarsico@gmail.com" target="_blank">gustavomarsico@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
There is no * / # in SS7 because the digits are hexa. If I remember correctly * is B, in your case B510.<br>
<div>
<div></div>
<div><br>
<br>
On Aug 18, 2011, at 8:09 PM, Luis Marcelo wrote:<br>
<br>
> Hi all,<br>
> Our telco is passing us calls to *510. We crafted our dial plan as follows:<br>
><br>
> exten => *510,1,Agi(<a>agi://localhost/myAgi</a>)<br>
> exten => _*510,1,Agi(<a>agi://localhost/myAgi</a>)<br>
> exten => b510,1,Agi(<a>agi://localhost/myAgi</a>)<br>
> exten => _b510,1,Agi(<a>agi://localhost/myAgi</a>)<br>
> exten => _*5X,1,Agi(<a>agi://localhost/myAgi</a>)<br>
> exten => _*5XX,1,Agi(<a>agi://localhost/myAgi</a>)<br>
> exten => _*510X,1,Agi(<a>agi://localhost/myAgi</a>)<br>
> exten => _*510XX,1,Agi(<a>agi://localhost/myAgi</a>)<br>
><br>
> None of them worked, Asterisk didn't execute the ago script<br>
><br>
> After that I enabled libss7 debug and compared two calls (the one to *510 and another to 0000 which does produce a match in another section of our dialplan)<br>
><br>
> This is the call to *510:<br>
><br>
> Len = 54 [ 92 de 33 85 cb 0b 30 a2 7f 00 01 10 20 01 0a 00 02 07 05 83 10 5b 01 0f 0a 08 84 11 95 71 10 00 40 04 03 04 7d 02 91 81 1d 03 80 90 a3 31 02 00 5a 39 02 31 c0 00 ]<br>
> FSN: 94 FIB 1<br>
> BSN: 18 BIB 1<br>
> <[0] MSU<br>
> [ 92 de 33 ]<br>
> Network Indicator: 2 Priority: 0 User Part: ISUP (5)<br>
> [ 85 ]<br>
> OPC 2240 DPC 3019 SLS 10<br>
> [ cb 0b 30 a2 ]<br>
> CIC: 127<br>
> [ 7f 00 ]<br>
> Message Type: IAM<br>
> [ 01 ]<br>
> --FIXED LENGTH PARMS[4]--<br>
> Nature of Connection Indicator:<br>
> Satellites in connection: 0<br>
> Continuity Check: Check not required (0)<br>
> Outgoing half echo control device: included (1)<br>
> [ 10 ]<br>
> Forward Call Indicators:<br>
> Nat/Intl Call Ind: call to be treated as a national call (0)<br>
> End to End Method Ind: no end-to-end method(s) available (0)<br>
> Interworking Ind: no interworking encountered (0)<br>
> End to End Info Ind: no end-to-end information available (0)<br>
> ISDN User Part Ind: ISDN user part used all the way (1)<br>
> ISDN User Part Pref Ind: ISDN user part preferred all the way (0)<br>
> ISDN Access Ind: originating access ISDN (1)<br>
> SCCP Method Ind: no indication (0)<br>
> [ 20 01 ]<br>
> Calling Party's Category:<br>
> Category: Ordinary calling subscriber (10)<br>
> [ 0a ]<br>
> Transmission Medium Requirements:<br>
> Speech (0)<br>
> [ 00 ]<br>
> --VARIABLE LENGTH PARMS[1]--<br>
> Called Party Number:<br>
> Nature of address: 3<br>
> NI: 0<br>
> Numbering plan: 1<br>
> Address signals:<br>
> [ 05 83 10 5b 01 0f ]<br>
> --OPTIONAL PARMS--<br>
> Calling Party Number:<br>
> Nature of address: 4<br>
> NI: 0<br>
> Numbering plan: 1<br>
> Presentation: 0<br>
> Screening: 1<br>
> Address signals: 59170100044<br>
> [ 0a 08 84 11 95 71 10 00 40 04 ]<br>
> Access Transport:<br>
> [ 03 04 7d 02 91 81 ]<br>
> User Service Information:<br>
> [ 1d 03 80 90 a3 ]<br>
> Propagation Delay Counter:<br>
> Delay: 0ms<br>
> [ 31 02 00 5a ]<br>
> Parameter Compatibility Information:<br>
> [ 39 02 31 c0 ]<br>
><br>
><br>
> this is the call to 0000<br>
><br>
> Len = 54 [ 90 dd 33 85 cb 0b 30 32 7a 00 01 10 20 01 0a 00 02 07 05 83 10 00 00 0f 0a 08 84 11 95 71 60 24 60 09 03 04 7d 02 91 81 1d 03 80 90 a3 31 02 00 5a 39 02 31 c0 00 ]<br>
> FSN: 93 FIB 1<br>
> BSN: 16 BIB 1<br>
> <[0] MSU<br>
> [ 90 dd 33 ]<br>
> Network Indicator: 2 Priority: 0 User Part: ISUP (5)<br>
> [ 85 ]<br>
> OPC 2240 DPC 3019 SLS 3<br>
> [ cb 0b 30 32 ]<br>
> CIC: 122<br>
> [ 7a 00 ]<br>
> Message Type: IAM<br>
> [ 01 ]<br>
> --FIXED LENGTH PARMS[4]--<br>
> Nature of Connection Indicator:<br>
> Satellites in connection: 0<br>
> Continuity Check: Check not required (0)<br>
> Outgoing half echo control device: included (1)<br>
> [ 10 ]<br>
> Forward Call Indicators:<br>
> Nat/Intl Call Ind: call to be treated as a national call (0)<br>
> End to End Method Ind: no end-to-end method(s) available (0)<br>
> Interworking Ind: no interworking encountered (0)<br>
> End to End Info Ind: no end-to-end information available (0)<br>
> ISDN User Part Ind: ISDN user part used all the way (1)<br>
> ISDN User Part Pref Ind: ISDN user part preferred all the way (0)<br>
> ISDN Access Ind: originating access ISDN (1)<br>
> SCCP Method Ind: no indication (0)<br>
> [ 20 01 ]<br>
> Calling Party's Category:<br>
> Category: Ordinary calling subscriber (10)<br>
> [ 0a ]<br>
> Transmission Medium Requirements:<br>
> Speech (0)<br>
> [ 00 ]<br>
> --VARIABLE LENGTH PARMS[1]--<br>
> Called Party Number:<br>
> Nature of address: 3<br>
> NI: 0<br>
> Numbering plan: 1<br>
> Address signals: 0000#<br>
> [ 05 83 10 00 00 0f ]<br>
> --OPTIONAL PARMS--<br>
> Calling Party Number:<br>
> Nature of address: 4<br>
> NI: 0<br>
> Numbering plan: 1<br>
> Presentation: 0<br>
> Screening: 1<br>
> Address signals: 59170642069<br>
> [ 0a 08 84 11 95 71 60 24 60 09 ]<br>
> Access Transport:<br>
> [ 03 04 7d 02 91 81 ]<br>
> User Service Information:<br>
> [ 1d 03 80 90 a3 ]<br>
> Propagation Delay Counter:<br>
> Delay: 0ms<br>
> [ 31 02 00 5a ]<br>
> Parameter Compatibility Information:<br>
> [ 39 02 31 c0 ]<br>
><br>
><br>
> It seems as if the debugger is not decoding the address digits in the first case (*510). I was wondering how do I go about writing an extension that matches this digits "" , or how can I confirm what digits are actually being passed to the dial plan<br>
><br>
> My box:<br>
> asterisk-1.6.0.1<br>
> dahdi-linux-2.0.0<br>
> libss7-1.0.1<br>
><br>
> thanks in advance.<br>
</div>
</div>
> --<br>
> _____________________________________________________________________<br>
> -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">
http://www.api-digital.com</a> --<br>
><br>
> asterisk-ss7 mailing list<br>
> To UNSUBSCRIBE or update options visit:<br>
> <a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-ss7</a><br>
<font color="#888888"><br>
<br>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com/" target="_blank">
http://www.api-digital.com</a> --<br>
<br>
asterisk-ss7 mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-ss7</a><br>
</font></blockquote>
</div>
<br>
</div>
--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-ss7 mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ss7</a></blockquote>
</div>
<br>
</div>
</div>
</div>
</div></div></div>
-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by
<a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> -- asterisk-ss7 mailing list To UNSUBSCRIBE or update options visit:
<a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ss7</a></span>
</div>
<br>--<br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-ss7 mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-ss7" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-ss7</a><br></blockquote></div><br>
</div></div></div>