cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Anonymous
Not applicable

TA908 DNIS Substitution

I have a new Level3 SIP trunk delivering inbound calls to an Adtran 908e on trunk T04. I'm using a simple $ match an a PRI trunk, T01, to accept all calls from T04 on T01. I'm receiving the DNIS from Level3 formatted as +1NXXNXXXXXX. However, I'm required to use DNIS substitution on the PRI trunk to format the DNIS as NXXNXXXXXX (omitting the +1). However, Adtran doesn't appear to recognize the "+" as a valid match and passes the complete DNIS on to the PRI trunk, which is not accepted by my PBX. I've tried various pattern matches with no luck.

Are there any known work arounds? Level3 has indicated that the DNIS is standard formatting and cannot be changed.

Please advise.

Labels (2)
0 Kudos
2 Replies
Anonymous
Not applicable

Re: TA908 DNIS Substitution

What is your DNIS substitution command on your PRI Trunk Account to your PBX? Can you past your PRI Trunk Account and Trunk Group config into your reply.

-Mark

Anonymous
Not applicable

Re: TA908 DNIS Substitution

Hello Kurt,

You can use an isdn-number-template to strip the international prefix.  Here is what a call would look like without any changes.  I ran a debug sip stack message and debug isdn l2-for from the command line.  Please note I have eliminated some of the debug for simplicity and ease of viewing:

21:51:03.821 SIP.STACK MSG Rx: UDP src=10.1.1.1:5060 dst=10.1.1.2:5060
21:51:03.822 SIP.STACK MSG     INVITE sip:+2569632001@10.1.1.2:5060 SIP/2.0
21:51:03.822 SIP.STACK MSG     From: <sip:2569638001@10.1.1.1:5060;transport=UDP>;tag=2e4dc90-7f000001-13c4-232-145da7b-232
21:51:03.823 SIP.STACK MSG     To: <sip:+2569632001@10.1.1.2:5060>
21:51:03.823 SIP.STACK MSG     Call-ID: 2e8f0d8-7f000001-13c4-232-6240e09f-232@10.1.1.1
21:51:03.824 SIP.STACK MSG    

CSeq: 1 INVITE

The number can also come in with a 1 and look like this: +12569632001.

Here is the call going from the SIP side of the unit to the PRI:

21:51:03.863 ISDN.L2_FMT PRI  2  ==============================================

21:51:03.864 ISDN.L2_FMT PRI  2  T Sapi:00 C/R:C Tei:00 INFO Ns:6   Nr:9   P:0

21:51:03.864 ISDN.L2_FMT PRI  2    Prot:08  CRL:2  CRV:0004

21:51:03.864 ISDN.L2_FMT PRI  2    M - 05 SETUP      

21:51:03.865 ISDN.L2_FMT PRI  2     IE - 04 BEARER CAPABILITY   Len=3

21:51:03.865 ISDN.L2_FMT PRI  2          80 Xfer Cap.:SPEECH           

21:51:03.865 ISDN.L2_FMT PRI  2          90 Xfer Rate:64k  

21:51:03.865 ISDN.L2_FMT PRI  2          A2 Layer 1:G.711 U-Law   

21:51:03.866 ISDN.L2_FMT PRI  2     IE - 18 CHANNEL ID          Len=3

21:51:03.867 ISDN.L2_FMT PRI  2          A1 Primary Rate

21:51:03.867 ISDN.L2_FMT PRI  2             Intfc ID:IMPLICIT

21:51:03.867 ISDN.L2_FMT PRI  2             Pref/Excl:PREFERRED

21:51:03.867 ISDN.L2_FMT PRI  2             D-Chan Indicated:NO

21:51:03.868 ISDN.L2_FMT PRI  2             Chan. Sel:FOLLOWS

21:51:03.868 ISDN.L2_FMT PRI  2          83 Numb/Map:NUMBER

21:51:03.868 ISDN.L2_FMT PRI  2          94 Channel:20

21:51:03.869 ISDN.L2_FMT PRI  2     IE - 6C CALLING PARTY #     Len=12

21:51:03.869 ISDN.L2_FMT PRI  2          00 Numb. Type:UNKNOWN      

21:51:03.869 ISDN.L2_FMT PRI  2             Numb. Plan:UNKNOWN       

21:51:03.869 ISDN.L2_FMT PRI  2          80 Presentation:ALLOWED    

21:51:03.870 ISDN.L2_FMT PRI  2             Screening:USER PROVIDED

21:51:03.870 ISDN.L2_FMT PRI  2             Ph.# 2569638001

21:51:03.870 ISDN.L2_FMT PRI  2     IE - 70 CALLED PARTY #      Len=14

21:51:03.871 ISDN.L2_FMT PRI  2          80 Numb. Type:UNKNOWN      

21:51:03.871 ISDN.L2_FMT PRI  2             Numb. Plan:UNKNOWN       

21:51:03.871 ISDN.L2_FMT PRI  2             Ph.# 0112569632001

21:51:03.887 ISDN.L2_FMT PRI  2  ==============================================

Note the Ph# line toward the bottom.  The way PRI handles the international call looks different than the E.164 format on the SIP call leg.  Also see that in this case the Number Type and Plan is UNKNOWN.  It may also say international as this will determine how to make the isdn-number-template.  In my case, I made this number template on the ADTRAN:

isdn-number-template 10 prefix 011 unknown NXXNXXXXXX

This template catches the call with the prefix 011 and pattern NXX-NXX-XXXX on the PRI call leg.  Now look at the result.  The SIP is the same:

21:52:48.562 SIP.STACK MSG Rx: UDP src=10.1.1.1:5060 dst=10.1.1.2:5060
21:52:48.562 SIP.STACK MSG     INVITE sip:+2569632001@10.1.1.2:5060 SIP/2.0
21:52:48.563 SIP.STACK MSG     From: <sip:2569638001@10.1.1.1:5060;transport=UDP>;tag=2e4de48-7f000001-13c4-29b-7c377b1a-29b
21:52:48.563 SIP.STACK MSG     To: <sip:+2569632001@10.1.1.2:5060>
21:52:48.564 SIP.STACK MSG     Call-ID: 2e8f2b8-7f000001-13c4-29b-79321a42-29b@10.1.1.1
21:52:48.564 SIP.STACK MSG     CSeq: 1 INVITE

The change is the Ph# on the bottom of the PRI Setup Message:

21:52:48.604 ISDN.L2_FMT PRI  2  ==============================================

21:52:48.605 ISDN.L2_FMT PRI  2  T Sapi:00 C/R:C Tei:00 INFO Ns:8   Nr:12  P:0

21:52:48.605 ISDN.L2_FMT PRI  2    Prot:08  CRL:2  CRV:0005

21:52:48.605 ISDN.L2_FMT PRI  2    M - 05 SETUP      

21:52:48.605 ISDN.L2_FMT PRI  2     IE - 04 BEARER CAPABILITY   Len=3

21:52:48.606 ISDN.L2_FMT PRI  2          80 Xfer Cap.:SPEECH           

21:52:48.606 ISDN.L2_FMT PRI  2          90 Xfer Rate:64k  

21:52:48.606 ISDN.L2_FMT PRI  2          A2 Layer 1:G.711 U-Law   

21:52:48.607 ISDN.L2_FMT PRI  2     IE - 18 CHANNEL ID          Len=3

21:52:48.607 ISDN.L2_FMT PRI  2          A1 Primary Rate

21:52:48.607 ISDN.L2_FMT PRI  2             Intfc ID:IMPLICIT

21:52:48.607 ISDN.L2_FMT PRI  2             Pref/Excl:PREFERRED

21:52:48.608 ISDN.L2_FMT PRI  2             D-Chan Indicated:NO

21:52:48.608 ISDN.L2_FMT PRI  2             Chan. Sel:FOLLOWS

21:52:48.608 ISDN.L2_FMT PRI  2          83 Numb/Map:NUMBER

21:52:48.608 ISDN.L2_FMT PRI  2          93 Channel:19

21:52:48.609 ISDN.L2_FMT PRI  2     IE - 6C CALLING PARTY #     Len=12

21:52:48.609 ISDN.L2_FMT PRI  2          00 Numb. Type:UNKNOWN      

21:52:48.609 ISDN.L2_FMT PRI  2             Numb. Plan:UNKNOWN       

21:52:48.610 ISDN.L2_FMT PRI  2          80 Presentation:ALLOWED    

21:52:48.610 ISDN.L2_FMT PRI  2             Screening:USER PROVIDED

21:52:48.610 ISDN.L2_FMT PRI  2             Ph.# 2569638001

21:52:48.611 ISDN.L2_FMT PRI  2     IE - 70 CALLED PARTY #      Len=11

21:52:48.611 ISDN.L2_FMT PRI  2          80 Numb. Type:UNKNOWN      

21:52:48.611 ISDN.L2_FMT PRI  2             Numb. Plan:UNKNOWN       

21:52:48.611 ISDN.L2_FMT PRI  2            Ph.# 2569632001

21:52:48.629 ISDN.L2_FMT PRI  2  ==============================================

The 011 is now gone and the number is just 10 digits.  I hope this helps.  If you have any questions feel free to reply.

Regards,

Geoff