[asterisk-ss7] ss7_called_nai=dynamic parsing bug or config mistake?
Vahan Yerkanian
vahan at arminco.com
Wed Jan 12 12:08:46 CST 2011
On 1/12/11 8:21 PM, peterpet wrote:
> Replace yours with this and try...
chan_dahdi.conf:
ss7_called_nai=dynamic
ss7_calling_nai=national
ss7_nationalprefix=0
ss7_internationalprefix=00
ss7_networkroutedprefix=iwillnotusethisnai
ss7_unknownprefix=iwillnotusethisnai
ss7_subscriberprefix=1
extensions.ael:
_010NXXXXX => { Dial(DAHDI/g2/${EXTEN},60); Hangup; }
_1XX => { Dial(DAHDI/g2/${EXTEN},60); Hangup; }
debug:
-- Executing [109 at Network:6] Dial("SIP/sip-00000000",
"DAHDI/g2/109,60") in new stack
-- Called g2/109
Len = 32 [ 82 81 1d c5 c9 81 52 20 62 00 01 00 60 01 0a 00 02 06 04 01
10 01 f9 0a 06 03 13 06 72 20 72 00 ]
FSN: 1 FIB 1
BSN: 2 BIB 1
>[0] MSU
[ 82 81 1d ]
Network Indicator: 3 Priority: 0 User Part: ISUP (5)
[ c5 ]
OPC 330 DPC 457 SLS 2
[ c9 81 52 20 ]
CIC: 98
[ 62 00 ]
Message Type: IAM
[ 01 ]
--FIXED LENGTH PARMS[4]--
Nature of Connection Indicator:
Satellites in connection: 0
Continuity Check: Check not required (0)
Outgoing half echo control device: not included (0)
[ 00 ]
Forward Call Indicators:
Nat/Intl Call Ind: call to be treated as a
national call (0)
End to End Method Ind: no end-to-end method(s)
available (0)
Interworking Ind: no interworking encountered (0)
End to End Info Ind: no end-to-end information
available (0)
ISDN User Part Ind: ISDN user part used all the
way (1)
ISDN User Part Pref Ind: ISDN user part not
preferred all the way (1)
ISDN Access Ind: originating access ISDN (1)
SCCP Method Ind: no indication (0)
[ 60 01 ]
Calling Party's Category:
Category: Ordinary calling subscriber (10)
[ 0a ]
Transmission Medium Requirements:
Speech (0)
[ 00 ]
--VARIABLE LENGTH PARMS[1]--
Called Party Number:
Nature of address: 1
NI: 0
Numbering plan: 1
Address signals: 109#
[ 04 01 10 01 f9 ]
--OPTIONAL PARMS--
Calling Party Number:
Nature of address: 3
NI: 0
Numbering plan: 1
Presentation: 0
Screening: 3
Address signals: 60270227
[ 0a 06 03 13 06 72 20 72 ]
-------------
For comparison, here is the call to a national number:
-- Executing [010524351 at Network:6] Dial("SIP/sip-00000001",
"DAHDI/g2/010524351,60") in new stack
-- Called g2/010524351
Len = 35 [ 86 83 20 c5 c9 81 52 20 62 00 01 00 60 01 0a 00 02 09 07 83
10 01 25 34 15 0f 0a 06 03 13 06 72 20 72 00 ]
FSN: 3 FIB 1
BSN: 6 BIB 1
>[0] MSU
[ 86 83 20 ]
Network Indicator: 3 Priority: 0 User Part: ISUP (5)
[ c5 ]
OPC 330 DPC 457 SLS 2
[ c9 81 52 20 ]
CIC: 98
[ 62 00 ]
Message Type: IAM
[ 01 ]
--FIXED LENGTH PARMS[4]--
Nature of Connection Indicator:
Satellites in connection: 0
Continuity Check: Check not required (0)
Outgoing half echo control device: not included (0)
[ 00 ]
Forward Call Indicators:
Nat/Intl Call Ind: call to be treated as a
national call (0)
End to End Method Ind: no end-to-end method(s)
available (0)
Interworking Ind: no interworking encountered (0)
End to End Info Ind: no end-to-end information
available (0)
ISDN User Part Ind: ISDN user part used all the
way (1)
ISDN User Part Pref Ind: ISDN user part not
preferred all the way (1)
ISDN Access Ind: originating access ISDN (1)
SCCP Method Ind: no indication (0)
[ 60 01 ]
Calling Party's Category:
Category: Ordinary calling subscriber (10)
[ 0a ]
Transmission Medium Requirements:
Speech (0)
[ 00 ]
--VARIABLE LENGTH PARMS[1]--
Called Party Number:
Nature of address: 3
NI: 0
Numbering plan: 1
Address signals: 10524351#
[ 07 83 10 01 25 34 15 0f ]
--OPTIONAL PARMS--
Calling Party Number:
Nature of address: 3
NI: 0
Numbering plan: 1
Presentation: 0
Screening: 3
Address signals: 60270227
[ 0a 06 03 13 06 72 20 72 ]
The 0 gets properly stripped off here, while the 1 is not stripped for
subscriber number.
More information about the asterisk-ss7
mailing list