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



-----Original Message-----
From: asterisk-ss7-boun...@lists.digium.com on behalf of Joeri van Dooren
Sent: Mon 10/12/2009 17:19
To: asterisk-ss7@lists.digium.com
Subject: Re: [asterisk-ss7] libss7 problem with dialing a non numeric string
 
within libss7

in isup.c

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 12:
                        return 'c';
                case 13:
                        return 'd';
                case 14:
                        return 'e';
                case 15:
                        return '#';
                default:
                        return 0;
        }
}


and for:

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 12:
                        return 'c';
                case 13:
                        return 'd';
                case 14:
                        return 'e';
                case 15:
                        return '#';
                default:
                        return 0;


met vriendelijke groeten,

Joeri van Dooren

----- "Rennes Neps" <rennes.n...@norby.ee> schreef: 
> 
> 

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

 

Thanks

Rennes

 

> 

From: asterisk-ss7-boun...@lists.digium.com 
[mailto:asterisk-ss7-boun...@lists.digium.com] On Behalf Of Joeri van Dooren
> Sent: 12. oktoober 2009. a. 17:10
> To: asterisk-ss7@lists.digium.com
> Subject: Re: [asterisk-ss7] libss7 problem with dialing a non numeric string

 

Just change isup.c accordingly,

we did for our local changes to,
> 
> met vriendelijke groeten,
> 
> Joeri van Dooren
> 
> ----- "Rennes Neps" <rennes.n...@norby.ee> schreef: 
> > 

> 

Hei!

 

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:

 

exten => _[A-Z].,1,Dial(DAHDI/g1/DD0501,,g)

 

But in SS7 trace I see:

 

                --VARIABLE LENGTH PARMS[1]--

                Called Party Number:

                        Nature of address: 3

                        NI: 0

                        Numbering plan: 1

                        Address signals: 000000501#

                        [ 07 03 10 00 00 00 05 f1 ]

 

Do you have any idea how to fix that?

 

My chan_dahci.conf is as follows:

 

[channels]

switchtype=euroisdn

 

;;; linkset 1

context=incoming_ss7

 

echocancel=yes

echotraining=yes

echocancelwhenbridged=yes

 

group=1

linkset=1

signalling=ss7

ss7type=itu

pointcode=50

adjpointcode=14

defaultdpc=14

 

;networkindicator=international

networkindicator=national_spare

ss7_called_nai=dynamic

ss7_calling_nai=dynamic

 

;ISDN call type

ss7_internationalprefix = 00

;ss7_nationalprefix =

;ss7_subscriberprefix =

;ss7_unknownprefix = DD

 

cicbeginswith = 2

channel = 2-31

sigchan=1

 

 

Thanks in advance

BR

 

Rennes Neps

 


> 

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.421 / Virus Database: 270.13.112/2391 - Release Date: 10/12/09 
04:01:00

  

<<winmail.dat>>

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

asterisk-ss7 mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-ss7

Reply via email to