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" <[email protected]> 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: [email protected]
[mailto:[email protected]] On Behalf Of Joeri van Dooren
> Sent: 12. oktoober 2009. a. 17:10
> To: [email protected]
> 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" <[email protected]> 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
>_______________________________________________
--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