cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mlconv
New Contributor

trying to convert sip to pri I have a SIP handoff from AT&T and they are passing me 10 digits I need to strip it down to 7 digits and send that to my shoretel system as a PRI

Jump to solution

@@trying to convert sip to pri

I have a SIP handoff from AT&T and they are passing me 10 digits

I need to strip it down to 7 digits and send that to my shoretel system as a PRI

Here is the configuration:

Building configuration...

!

!

! ADTRAN, Inc. OS version R11.4.6.E

! Boot ROM version 14.05.00.SA

! Platform: Total Access 908e (2nd Gen), part number 4242908L1

! Serial number xxxxxxx

!

!

hostname "TA908e"

!

!

!

ip subnet-zero

ip classless

ip default-gateway xxx.xxx.xxx.xxx

ip routing

ipv6 unicast-routing

!

!

name-server 8.8.8.8 8.8.2.2

!

!

no auto-config

!

event-history on

no logging forwarding

no logging email

!

no service password-encryption

!

portal-list "admin" console ftp http-admin ssh telnet

!

!

no ip firewall alg msn

no ip firewall alg mszone

no ip firewall alg h323

!

!

!

!

!

!

!

no dot11ap access-point-control

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

interface eth 0/1

  ip address  xxx.xxx.xxx.xxx  xxx.xxx.xxx.xxx

  media-gateway ip primary

  no awcp

  no shutdown

!

!

interface eth 0/2

  ip address  xxx.xxx.xxx.xxx  xxx.xxx.xxx.xxx

  no shutdown

!

!

!

!

interface t1 0/1

  shutdown

!

interface t1 0/2

  shutdown

!

interface t1 0/3

  shutdown

!

interface t1 0/4

  tdm-group 1 timeslots 1-24 speed 64

  no shutdown

!

!

interface pri 1

  description PRI

  connect t1 0/4 tdm-group 1

  digits-transferred 7

  no shutdown

!

!

interface fxs 0/1

  shutdown

!

interface fxs 0/2

  shutdown

!

interface fxs 0/3

  shutdown

!

interface fxs 0/4

  shutdown

!

interface fxs 0/5

  shutdown

!

interface fxs 0/6

  shutdown

!

interface fxs 0/7

  shutdown

!

interface fxs 0/8

  shutdown

!

!

interface fxo 0/0

  shutdown

!

!

isdn-group 1

  connect pri 1

!

!

!

!

!

!

!

!

!

!

!

ip route 0.0.0.0 0.0.0.0 xxx.xxx.xxx.xxx

!

no tftp server

no tftp server overwrite

http server

no http secure-server

no snmp agent

no ip ftp server

no ip scp server

no ip sntp server

!

!

!

!

!

!

!

!

sip

sip udp 5060

sip tcp 5060

!

!

!

voice feature-mode network

voice flashhook mode transparent

voice forward-mode network

voice call-appearance-mode single

voice conferencing-mode local

!

!

!

!

!

!

!

!

voice dial-plan 1 local NXX-NXX-XXXX

!

!

!

!

voice codec-list DEFAULT

  codec g711ulaw

  codec g711alaw

  codec g729

!

!

!

voice trunk T01 type sip

  sip-server primary xxx.xxx.xxx.xxx

  sip-server secondary xxx.xxx.xxx.xxx

  max-number-calls 23

  codec-list DEFAULT both

!

voice trunk T02 type isdn

  resource-selection linear ascending

  connect isdn-group 1

  no early-cut-through

  rtp delay-mode adaptive

  codec-list DEFAULT

!

!

voice grouped-trunk SIP

  trunk T01

  accept $ cost 0

!

!

voice grouped-trunk ISDN

  trunk T02

  accept NXXX cost 0

  accept NXXX-XXXX cost 0

!

!

!

!

!

!

!

!

!

!

!

!

no sip registrar authenticate

sip registrar default-expires 5000

sip registrar min-expires 3600

sip registrar max-expires 5000

!

sip inbound-trunk-matching default-trunk T01

sip inbound-trunk-matching prefer trunk-routing

!

!

!

!

!

!

!

!

!

!

!

!

!

!

!

sip secure remote-user

no blacklist

!

!

!

line con 0

  no login

!

line telnet 0 4

  login

  no shutdown

line ssh 0 4

  login local-userlist

  no shutdown

!

sntp server xxx.xxx.xxx.xxx version 3

sntp wait-time 500

!

ntp source ethernet 0/1

!

!

!

end

TA908e# exit

Labels (2)
0 Kudos
1 Solution

Accepted Solutions
Anonymous
Not applicable

Re: trying to convert sip to pri I have a SIP handoff from AT&T and they are passing me 10 digits I need to strip it down to 7 digits and send that to my shoretel system as a PRI

Jump to solution

Hi mlconv​,

I think you might need to allow calls between the grouped-trunks using trunk-lists and permit commands, like this:

!

voice trunk-list Telco

  trunk T01

!

voice trunk-list PBX

  trunk T02

!

!

voice grouped-trunk SIP

  permit list PBX

  !deny all other trunks

  !deny all other ani

!

!

voice grouped-trunk ISDN

  permit list Telco

  !deny all other trunks

  !deny all other ani

!

!

Best regards,

Chris

View solution in original post

0 Kudos
3 Replies
mlconv
New Contributor

Re: trying to convert sip to pri I have a SIP handoff from AT&T and they are passing me 10 digits I need to strip it down to 7 digits and send that to my shoretel system as a PRI

Jump to solution

debug after attempting incoming call.  just getting call failed

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2020.02.10 19:50:58 =~=~=~=~=~=~=~=~=~=~=~=

TA908e#debug sip stack mess

TA908e#debug isdn l2-formatted

TA908e#debug voice sum

TA908e#debug save

Saving debug filters enabled in this session...

debug isdn l2-formatted

debug sip stack messages

debug voice summary

Done.

TA908e#

12:04:17.602 SIP.STACK MSG     Rx: UDP src=xxx.xxx.xxx.xxx:5060 dst=xxx.xxx.xxx.xxx:5060

12:04:17.602 SIP.STACK MSG         OPTIONS sip:xxx.xxx.xxx.xxx:5060 SIP/2.0

12:04:17.602 SIP.STACK MSG         Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bK0dl20n006gt1h5j6o4g0

12:04:17.602 SIP.STACK MSG         Call-ID: 895896100fcd01e7f7922f60890e379e040000qh03300@xxx.xxx.xxx.xxx

12:04:17.602 SIP.STACK MSG         To: sip:ping@xxx.xxx.xxx.xxx

12:04:17.603 SIP.STACK MSG         From: <sip:ping@xxx.xxx.xxx.xxx>;tag=43ce74518c18443b3b3a2e8f928dca20000qh03

12:04:17.603 SIP.STACK MSG         Max-Forwards: 0

12:04:17.603 SIP.STACK MSG         CSeq: 7617 OPTIONS

12:04:17.603 SIP.STACK MSG         Route: <sip:xxx.xxx.xxx.xxx:5060;lr>

12:04:17.603 SIP.STACK MSG    

12:04:17.606 SIP.STACK MSG     Tx: UDP src=xxx.xxx.xxx.xxx:5060 dst=xxx.xxx.xxx.xxx:5060

12:04:17.606 SIP.STACK MSG         SIP/2.0 501 Not Implemented

12:04:17.606 SIP.STACK MSG         From: <sip:ping@xxx.xxx.xxx.xxx>;tag=43ce74518c18443b3b3a2e8f928dca20000qh03

12:04:17.606 SIP.STACK MSG         To: <sip:ping@xxx.xxx.xxx.xxx>;tag=4aa2f88-7f000001-13c4-101-60582d5b-101

12:04:17.606 SIP.STACK MSG         Call-ID: 895896100fcd01e7f7922f60890e379e040000qh03300@xxx.xxx.xxx.xxx

12:04:17.606 SIP.STACK MSG         CSeq: 7617 OPTIONS

12:04:17.607 SIP.STACK MSG         Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bK0dl20n006gt1h5j6o4g0

12:04:17.607 SIP.STACK MSG         Content-Length: 0

12:04:17.607 SIP.STACK MSG    

12:04:20.366 SIP.STACK MSG     Rx: UDP src=xxx.xxx.xxx.xxx:5060 dst=xxx.xxx.xxx.xxx:5060

12:04:20.366 SIP.STACK MSG         OPTIONS sip:xxx.xxx.xxx.xxx:5060 SIP/2.0

12:04:20.366 SIP.STACK MSG         Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bKdk6a86208g6cuknl8h50

12:04:20.367 SIP.STACK MSG         Call-ID: d3ba19a32355192f3d38539c56410327000q113@xxx.xxx.xxx.xxx

12:04:20.367 SIP.STACK MSG         To: sip:ping@xxx.xxx.xxx.xxx

12:04:20.367 SIP.STACK MSG         From: <sip:ping@xxx.xxx.xxx.xxx>;tag=def51be60ba3c30306f892137ccc90bf000q113

12:04:20.367 SIP.STACK MSG         Max-Forwards: 0

12:04:20.367 SIP.STACK MSG         CSeq: 7618 OPTIONS

12:04:20.367 SIP.STACK MSG         Route: <sip:xxx.xxx.xxx.xxx:5060;lr>

12:04:20.368 SIP.STACK MSG    

12:04:20.370 SIP.STACK MSG     Tx: UDP src=xxx.xxx.xxx.xxx:5060 dst=xxx.xxx.xxx.xxx:5060

12:04:20.370 SIP.STACK MSG         SIP/2.0 501 Not Implemented

12:04:20.370 SIP.STACK MSG         From: <sip:ping@xxx.xxx.xxx.xxx>;tag=def51be60ba3c30306f892137ccc90bf000q113

12:04:20.370 SIP.STACK MSG         To: <sip:ping@xxx.xxx.xxx.xxx>;tag=4aa3190-7f000001-13c4-103-6fbb7b77-103

12:04:20.371 SIP.STACK MSG         Call-ID: d3ba19a32355192f3d38539c56410327000q113@xxx.xxx.xxx.xxx

12:04:20.371 SIP.STACK MSG         CSeq: 7618 OPTIONS

12:04:20.371 SIP.STACK MSG         Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bKdk6a86208g6cuknl8h50

12:04:20.371 SIP.STACK MSG         Content-Length: 0

12:04:20.371 SIP.STACK MSG    

12:04:30.169 SIP.STACK MSG     Rx: UDP src=xxx.xxx.xxx.xxx:5060 dst=xxx.xxx.xxx.xxx:5060

12:04:30.170 SIP.STACK MSG         INVITE sip:972nnnnnnn@xxx.xxx.xxx.xxx:5060 SIP/2.0

12:04:30.170 SIP.STACK MSG         Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bKfso0f0305g46kliaqeb0.1

12:04:30.170 SIP.STACK MSG         From: "WIRELESS CALLER" <sip:5555555555@xxx.xxx.xxx.xxx;user=phone>;tag=728536589-1581385910610-

12:04:30.170 SIP.STACK MSG         To: "User 972nnnnnnn"<sip:972nnnnnnn@xxx.xxx.xxx.xxx;user=phone>

12:04:30.170 SIP.STACK MSG         Call-ID: BW0151506101102201786654604@R1

12:04:30.170 SIP.STACK MSG         CSeq: 418972842 INVITE

12:04:30.171 SIP.STACK MSG         Contact: <sip:xxx.xxx.xxx.xxx:5060;transport=udp>

12:04:30.171 SIP.STACK MSG         P-Asserted-Identity: "WIRELESS CALLER" <sip:5555555555@xxx.xxx.xxx.xxx;user=phone>

12:04:30.171 SIP.STACK MSG         Privacy: none

12:04:30.171 SIP.STACK MSG         Supported: timer

12:04:30.171 SIP.STACK MSG         Allow: INVITE,ACK,CANCEL,BYE,REFER,INFO,NOTIFY,PRACK,OPTIONS

12:04:30.171 SIP.STACK MSG         Recv-Info: x-broadworks-client-session-info

12:04:30.172 SIP.STACK MSG         Accept: application/dtmf-relay, application/media_control+xml, application/sdp,  multipart/mixed

12:04:30.172 SIP.STACK MSG         Min-SE: 60

12:04:30.172 SIP.STACK MSG         Session-Expires: 3000;refresher=uac

12:04:30.172 SIP.STACK MSG         Max-Forwards: 68

12:04:30.172 SIP.STACK MSG         Content-Length: 300

12:04:30.172 SIP.STACK MSG         Content-Disposition: session; handling=required

12:04:30.173 SIP.STACK MSG         Content-Type: application/sdp

12:04:30.173 SIP.STACK MSG    

12:04:30.173 SIP.STACK MSG         v=0

12:04:30.173 SIP.STACK MSG         o=BroadWorks 1502635880 1 IN IP4 xxx.xxx.xxx.xxx

12:04:30.173 SIP.STACK MSG         s=-

12:04:30.173 SIP.STACK MSG         c=IN IP4 xxx.xxx.xxx.xxx

12:04:30.173 SIP.STACK MSG         t=0 0

12:04:30.174 SIP.STACK MSG         m=audio 16682 RTP/AVP 18 0 100 8 98

12:04:30.174 SIP.STACK MSG         a=rtpmap:18 G729/8000

12:04:30.174 SIP.STACK MSG         a=rtpmap:0 PCMU/8000

12:04:30.174 SIP.STACK MSG         a=rtpmap:100 telephone-event/8000

12:04:30.174 SIP.STACK MSG         a=fmtp:100 0-15

12:04:30.174 SIP.STACK MSG         a=rtpmap:8 PCMA/8000

12:04:30.175 SIP.STACK MSG         a=rtpmap:98 G726-32/8000

12:04:30.175 SIP.STACK MSG         a=sendrecv

12:04:30.175 SIP.STACK MSG         a=maxptime:30

12:04:30.175 SIP.STACK MSG    

12:04:30.182 SIP.STACK MSG     Tx: UDP src=xxx.xxx.xxx.xxx:5060 dst=xxx.xxx.xxx.xxx:5060

12:04:30.182 SIP.STACK MSG         SIP/2.0 100 Trying

12:04:30.182 SIP.STACK MSG         From: "WIRELESS CALLER"<sip:5555555555@xxx.xxx.xxx.xxx;user=phone>;tag=728536589-1581385910610-

12:04:30.182 SIP.STACK MSG         To: "User 972nnnnnnn"<sip:972nnnnnnn@xxx.xxx.xxx.xxx;user=phone>

12:04:30.183 SIP.STACK MSG         Call-ID: BW0151506101102201786654604@R1

12:04:30.183 SIP.STACK MSG         CSeq: 418972842 INVITE

12:04:30.183 SIP.STACK MSG         Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bKfso0f0305g46kliaqeb0.1

12:04:30.183 SIP.STACK MSG         Contact: <sip:972nnnnnnn@xxx.xxx.xxx.xxx:5060;transport=UDP>

12:04:30.183 SIP.STACK MSG         Supported: 100rel,replaces

12:04:30.183 SIP.STACK MSG         Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER, REGISTER

12:04:30.184 SIP.STACK MSG         User-Agent: ADTRAN_Total_Access_908e_2nd_Gen/R11.4.6.E

12:04:30.184 SIP.STACK MSG         Content-Length: 0

12:04:30.184 SIP.STACK MSG    

12:04:30.185 VOICE.SUMMARY Could not route call to 972nnnnnnn.

12:04:30.185 VOICE.SUMMARY WARNING voice trunk accept templates

12:04:30.189 SIP.STACK MSG     Tx: UDP src=xxx.xxx.xxx.xxx:5060 dst=xxx.xxx.xxx.xxx:5060

12:04:30.189 SIP.STACK MSG         SIP/2.0 404 Not Found

12:04:30.190 SIP.STACK MSG         From: "WIRELESS CALLER"<sip:5555555555@xxx.xxx.xxx.xxx;user=phone>;tag=728536589-1581385910610-

12:04:30.190 SIP.STACK MSG         To: "User 972nnnnnnn"<sip:972nnnnnnn@xxx.xxx.xxx.xxx;user=phone>;tag=4aa3398-7f000001-13c4-10d-73a7e0c9-10d

12:04:30.190 SIP.STACK MSG         Call-ID: BW0151506101102201786654604@R1

12:04:30.190 SIP.STACK MSG         CSeq: 418972842 INVITE

12:04:30.190 SIP.STACK MSG         Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bKfso0f0305g46kliaqeb0.1

12:04:30.190 SIP.STACK MSG         Supported: 100rel,replaces

12:04:30.191 SIP.STACK MSG         Allow: ACK, BYE, CANCEL, INFO, INVITE, NOTIFY, OPTIONS, PRACK, REFER, REGISTER

12:04:30.191 SIP.STACK MSG         User-Agent: ADTRAN_Total_Access_908e_2nd_Gen/R11.4.6.E

12:04:30.191 SIP.STACK MSG         Content-Length: 0

12:04:30.191 SIP.STACK MSG    

12:04:30.223 SIP.STACK MSG     Rx: UDP src=xxx.xxx.xxx.xxx:5060 dst=xxx.xxx.xxx.xxx:5060

12:04:30.224 SIP.STACK MSG         ACK sip:972nnnnnnn@xxx.xxx.xxx.xxx:5060 SIP/2.0

12:04:30.224 SIP.STACK MSG         Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bKfso0f0305g46kliaqeb0.1

12:04:30.224 SIP.STACK MSG         CSeq: 418972842 ACK

12:04:30.225 SIP.STACK MSG         From: "WIRELESS CALLER" <sip:5555555555@xxx.xxx.xxx.xxx;user=phone>;tag=728536589-1581385910610-

12:04:30.225 SIP.STACK MSG         To: "User 972nnnnnnn"<sip:972nnnnnnn@xxx.xxx.xxx.xxx;user=phone>;tag=4aa3398-7f000001-13c4-10d-73a7e0c9-10d

12:04:30.225 SIP.STACK MSG         Call-ID: BW0151506101102201786654604@R1

12:04:30.225 SIP.STACK MSG         Max-Forwards: 68

12:04:30.225 SIP.STACK MSG         Content-Length: 0

12:04:30.225 SIP.STACK MSG     

TA908e#

TA908e#

TA908e#

TA908e#

TA908e#

12:04:52.628 SIP.STACK MSG     Rx: UDP src=xxx.xxx.xxx.xxx:5060 dst=xxx.xxx.xxx.xxx:5060

12:04:52.628 SIP.STACK MSG         OPTIONS sip:xxx.xxx.xxx.xxx:5060 SIP/2.0

12:04:52.628 SIP.STACK MSG         Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bKleq9i7007gom1gv14av0

12:04:52.629 SIP.STACK MSG         Call-ID: 895896100fcd01e7f7922f60890e379e040000q113@xxx.xxx.xxx.xxx

12:04:52.629 SIP.STACK MSG         To: sip:ping@xxx.xxx.xxx.xxx

12:04:52.629 SIP.STACK MSG         From: <sip:ping@xxx.xxx.xxx.xxx>;tag=43ce74518c18443b3b3a2e8f928dca20000q113

12:04:52.629 SIP.STACK MSG         Max-Forwards: 0

12:04:52.629 SIP.STACK MSG         CSeq: 7618 OPTIONS

12:04:52.629 SIP.STACK MSG         Route: <sip:xxx.xxx.xxx.xxx:5060;lr>

12:04:52.630 SIP.STACK MSG    

12:04:52.632 SIP.STACK MSG     Tx: UDP src=xxx.xxx.xxx.xxx:5060 dst=xxx.xxx.xxx.xxx:5060

12:04:52.632 SIP.STACK MSG         SIP/2.0 501 Not Implemented

12:04:52.632 SIP.STACK MSG         From: <sip:ping@xxx.xxx.xxx.xxx>;tag=43ce74518c18443b3b3a2e8f928dca20000q113

12:04:52.633 SIP.STACK MSG         To: <sip:ping@xxx.xxx.xxx.xxx>;tag=4aa35a0-7f000001-13c4-124-7318c4a8-124

12:04:52.633 SIP.STACK MSG         Call-ID: 895896100fcd01e7f7922f60890e379e040000q113@xxx.xxx.xxx.xxx

12:04:52.633 SIP.STACK MSG         CSeq: 7618 OPTIONS

12:04:52.633 SIP.STACK MSG         Via: SIP/2.0/UDP xxx.xxx.xxx.xxx:5060;branch=z9hG4bKleq9i7007gom1gv14av0

12:04:52.633 SIP.STACK MSG         Content-Length: 0

12:04:52.633 SIP.STACK MSG    

TA908e#

TA908e#

TA908e#

TA908e#

TA908e#

Anonymous
Not applicable

Re: trying to convert sip to pri I have a SIP handoff from AT&T and they are passing me 10 digits I need to strip it down to 7 digits and send that to my shoretel system as a PRI

Jump to solution

Hi mlconv​,

I think you might need to allow calls between the grouped-trunks using trunk-lists and permit commands, like this:

!

voice trunk-list Telco

  trunk T01

!

voice trunk-list PBX

  trunk T02

!

!

voice grouped-trunk SIP

  permit list PBX

  !deny all other trunks

  !deny all other ani

!

!

voice grouped-trunk ISDN

  permit list Telco

  !deny all other trunks

  !deny all other ani

!

!

Best regards,

Chris

0 Kudos
jayh
Honored Contributor
Honored Contributor

Re: trying to convert sip to pri I have a SIP handoff from AT&T and they are passing me 10 digits I need to strip it down to 7 digits and send that to my shoretel system as a PRI

Jump to solution

You have:

voice grouped-trunk ISDN

  trunk T02

  accept NXXX cost 0

  accept NXXX-XXXX cost 0

You'll want to change this to allow the range of valid extensions on the PRI, as ten digits (or however it is sent from the SIP trunk).

For example, if your PBX has the range of 972-555-0100 through 972-555-0199, do this:

voice grouped-trunk ISDN

  trunk T02

  accept 972-555-01XX cost 0