[asterisk-ss7] libss7 problem with dialing a non numeric string

Joeri van Dooren joeri at weepee.org
Mon Oct 12 13:29:11 CDT 2009


identical ... they are different ... i added the complete set ... of wat was missing in the isup handling of isup digit`s,

you just have to read the code .... that`s why it`s called OPEN source ;)

met vriendelijke groeten,

Joeri van Dooren

----- "Rennes Neps" <Rennes.Neps at norby.ee> schreef:

> Sorry, I'm confused you refer to two places, but they seem to be
> identical?
> 
> Are you sure there's no mistake?
> 
> 
> 
> I have this in mu isup.c:
> 
> 
> 
> static char char2digit(char localchar)
> 
> {
> 
>         switch (localchar) {
> 
>                 case '0':
> 
>                         return 0;
> 
>                 case '1':
> 
>                         return 1;
> 
>                 case '2':
> 
>                         return 2;
> 
>                 case '3':
> 
>                         return 3;
> 
>                 case '4':
> 
>                         return 4;
> 
>                 case '5':
> 
>                         return 5;
> 
>                 case '6':
> 
>                         return 6;
> 
>                 case '7':
> 
>                         return 7;
> 
>                 case '8':
> 
>                         return 8;
> 
>                 case '9':
> 
>                         return 9;
> 
>                 case '#':
> 
>                         return 0xf;
> 
>                 default:
> 
>                         return 0;
> 
>         }
> 
> }
> 
> 
> 
> static char digit2char(unsigned char digit)
> 
> {
> 
>         switch (digit & 0xf) {
> 
>                 case 0:
> 
>                         return '0';
> 
>                 case 1:
> 
>                         return '1';
> 
>                 case 2:
> 
>                         return '2';
> 
>                 case 3:
> 
>                         return '3';
> 
>                 case 4:
> 
>                         return '4';
> 
>                 case 5:
> 
>                         return '5';
> 
>                 case 6:
> 
>                         return '6';
> 
>                 case 7:
> 
>                         return '7';
> 
>                 case 8:
> 
>                         return '8';
> 
>                 case 9:
> 
>                         return '9';
> 
>                 case 15:
> 
>                         return '#';
> 
>                 default:
> 
>                         return 0;
> 
>         }
> 
> }
> 
> 
> 
> Regards
> 
> 
> 
> Rennes Neps



More information about the asterisk-ss7 mailing list