libss7 problem with dialing a non numeric string

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You're the greatest, thanks man! Trying it asap.

Rennes


-----Original Message-----
From: asterisk-ss7-bounces@xxxxxxxxxxxxxxxx on behalf of Joeri van Dooren
Sent: Mon 10/12/2009 17:19
To: asterisk-ss7 at lists.digium.com
Subject: Re: 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.Neps at 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-bounces@xxxxxxxxxxxxxxxx [mailto:asterisk-ss7-bounces at lists.digium.com] On Behalf Of Joeri van Dooren
> Sent: 12. oktoober 2009. a. 17:10
> To: asterisk-ss7 at 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.Neps at 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

  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 4620 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-ss7/attachments/20091012/015acbcf/attachment-0001.bin 


[Index of Archives]     [Asterisk App Development]     [PJ SIP]     [Gnu Gatekeeper]     [IETF Sipping]     [Info Cyrus]     [ALSA User]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Backpacking]     [Deep Creek Hot Springs]     [Yosemite Campsites]     [ISDN Cause Codes]     [Asterisk Books]

  Powered by Linux