- Joined
- Dec 17, 2010
- Messages
- 21
- Reaction score
- 1
I connected a Patton 4960 T1 to 3CX and a CenturyLink T1 PRI. I used the provisioning template within 3CX, and it registered. Outbound calls work perfectly, but all incoming calls fail. I can't figure out what's happening.
I did this a few years back at a different location, and it worked without issue.
Tried a few different firmware 6.x versions without any difference.
Anyone have any ideas?
Provisioning Template:
#########################################################
#
# For SN-4950/4960/4980/4990 1-port T1
# Supported firmware versions R6.x
#
# Author: Kevin Attard Compagno
# Contact: [email protected]
#
#########################################################
#
# Notes:
# No Overlap-Dialing in the US
#
#########################################################
webserver port 80 language en
system
ic voice 0
pcm law-select uLaw
system
clock-source 1 e1t1 0 0
profile ppp default
profile call-progress-tone defaultDialtone
flush-play-list
play 1 1000 350 -13 440 -13
profile call-progress-tone defaultAlertingtone
flush-play-list
play 1 1000 440 -19 480 -19
pause 2 3000
profile call-progress-tone defaultBusytone
flush-play-list
play 1 500 480 -24 620 -24
pause 2 500
profile call-progress-tone defaultReleasetone
flush-play-list
play 1 250 480 -24 620 -24
pause 2 250
profile call-progress-tone defaultCongestiontone
flush-play-list
play 1 250 480 -24 620 -24
pause 2 250
profile tone-set default
profile voip default
codec 1 g711alaw64k rx-length 20 tx-length 20
codec 2 g711ulaw64k rx-length 20 tx-length 20
codec 3 g729 rx-length 20 tx-length 20
fax transmission 1 relay t38-udp
modem transmission 1 bypass g711alaw64k rx-length 20 tx-length 20
profile pstn default
profile sip default
profile aaa default
method 1 local
method 2 none
context ip router
interface IF_IP_WAN
ipaddress dhcp
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
interface IF_IP_LAN
ipaddress 10.20.8.5 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
context cs switch
mapping-table calling-pi to calling-e164 MAP_REMOVE_BLANK_CALLERID
map restricted to ""
mapping-table calling-e164 to calling-e164 MAP_LEADING_ZERO
map (.%)-(.%)-(.%)-(.%)-(.%) to \1\2\3\4\5
map (.%)-(.%)-(.%)-(.%) to \1\2\3\4
map (.%)-(.%)-(.%) to \1\2\3
map (.%)-(.%) to \1\2
mapping-table calling-e164 to calling-name MAP_CID_TO_CNAME
map (.%) to \1
complex-function MAPPING_INCOMING_CALLS
execute 1 MAP_REMOVE_BLANK_CALLERID
execute 2 MAP_LEADING_ZERO
mapping-table calling-e164 to calling-e164 SET_CNPN
map 0(.%) to \1
mapping-table calling-type-of-number to calling-type-of-number TYPE
map default to national
mapping-table calling-numbering-plan to calling-numbering-plan PLAN
map default to isdn-telephony
complex-function OUTBOUND
execute 1 PLAN
execute 2 SET_CNPN
execute 3 TYPE
routing-table called-e164 RT_ISDN_TO_SIP_0
route default dest-interface IF_SIP_0 MAPPING_INCOMING_CALLS
routing-table called-e164 RT_SIP_TO_ISDN_0
route default dest-interface IF_ISDN_0 OUTBOUND
interface isdn IF_ISDN_0
route call dest-table RT_ISDN_TO_SIP_0
call-reroute emit
diversion emit
user-side-ringback-tone
caller-name
interface sip IF_SIP_0
bind context sip-gateway GW_SIP_0
early-connect
early-disconnect
route call dest-table RT_SIP_TO_ISDN_0
remote 10.20.8.2 5060
call-reroute accept
trust remote
address-translation outgoing-call request-uri user-part fix 10000 host-part to-header target-param none
address-translation incoming-call called-e164 request-uri
context cs switch
no shutdown
authentication-service AS_ALL_LINES
realm 1 3CXPhoneSystem
username 10000 password xrt49xw
location-service LS_10000
domain 1 10.20.8.2
identity-group default
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES username 10000
identity 10000
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES
registration outbound
registrar 10.20.8.2 5060
lifetime 300
register auto
context sip-gateway GW_SIP_0
interface LAN
bind interface IF_IP_LAN context router port 5060
context sip-gateway GW_SIP_0
bind location-service LS_10000
no shutdown
port ethernet 0 0
medium auto
encapsulation ip
bind interface IF_IP_WAN router
no shutdown
port ethernet 0 1
medium auto
encapsulation ip
bind interface IF_IP_LAN router
no shutdown
port e1t1 0 0
port-type t1
clock auto
linecode b8zs
framing esf
encapsulation q921
q921
uni-side auto
encapsulation q931
q931
protocol ni2
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface IF_ISDN_0 switch
port e1t1 0 0
no shutdown
DEBUG INFO from Patton:
10.20.8.5#04:46:00 ICC > [IF_ISDN_0] << Message: primitive=64
04:46:00 ICC > [IF_ISDN_0] Added endpoint IF_ISDN_0-0140e6a0
04:46:00 ICC > [IF_ISDN_0] NEW CALL. Allocated Endpoint IF_ISDN_0-0140e6a0
04:46:00 ICC > [EP IF_ISDN_0-0140e6a0] << [080005]
SETUP (NI2 User)
[04038090A2]
Bearer capability : speech - CCITT
circuit mode - 64kBit/s - G.711 U-law
[1803A98301]
Channel id : UNKNOWN (0xE3FC60) - exclusive
other interface - is not d-channel - CCITT - UNKNOWN CHANNEL TYPE (0x140E6A0)
[1C1D9F8B0100A117020101020100800F4345444152205241504944532C4941]
Facility : Invoke : invokeid: 00000001
global operation
invoke {
present = 1
local = 0
argumentnamePresentationAllowedSimple = 'CEDAR RAPIDS,IA'
}
[6C0C218033313935353136373738]
Calling party number : 3195516778
national number - E.164 numbering plan
presentation allowed - user provided not screened
[7005C133373639]
Called party number : 3769
subscriber number - E.164 numbering plan
04:46:00 IDP > [EP IF_ISDN_0-0140e6a0] Change dtmf detection to 'disabled'
04:46:00 IDP > [EP IF_ISDN_0-0140e6a0] Acquired b-Channel 1 (Datapath termination 10000001)
04:46:00 ICC > [EP IF_ISDN_0-0140e6a0] CNIP << CallingName Invoke
04:46:00 ICC > [EP IF_ISDN_0-0140e6a0] CNIP >> Name Indication(CEDAR RAPIDS,IA,Presentation allowed)
04:46:00 ICC > [EP IF_ISDN_0-0140e6a0] State: NULL, Event: TERMINAL SETUP IND
04:46:00 ICC > [EP IF_ISDN_0-0140e6a0] Set state to CALL PRESENT
04:46:00 IDP > [EP IF_ISDN_0-0140e6a0] Change datapath direction to Send/Receive.
04:46:00 IERR > [EP IF_ISDN_0-0140e6a0] DIALING TO FAILED
04:46:00 IERR > [EP IF_ISDN_0-0140e6a0] ERROR. ABORTING CALL.
04:46:00 ICC > [EP IF_ISDN_0-0140e6a0] State: CALL PRESENT, Event: ERROR
04:46:00 ICC > [EP IF_ISDN_0-0140e6a0] Set state to NULL
04:46:00 IDP > [EP IF_ISDN_0-0140e6a0] Change datapath direction to Inactive.
04:46:00 ICC > [IF_ISDN_0] CLEARING CALL IF_ISDN_0-0140e6a0
04:46:00 ICC > [IF_ISDN_0] Removed endpoint IF_ISDN_0-0140e6a0
04:46:00 ICC > [EP IF_ISDN_0-0140e6a0] >> [08005A]
RELEASE COMPLETE (NI2 User)
[0802859B]
Cause : destination out of order
private network serving remote user - CCITT - Q.931
04:46:00 ICC > [IF_ISDN_0] Destroying finished calls.
04:46:00 ICC > [IF_ISDN_0] Destroyed endpoint IF_ISDN_0-0140e6a0
I did this a few years back at a different location, and it worked without issue.
Tried a few different firmware 6.x versions without any difference.
Anyone have any ideas?
Provisioning Template:
#########################################################
#
# For SN-4950/4960/4980/4990 1-port T1
# Supported firmware versions R6.x
#
# Author: Kevin Attard Compagno
# Contact: [email protected]
#
#########################################################
#
# Notes:
# No Overlap-Dialing in the US
#
#########################################################
webserver port 80 language en
system
ic voice 0
pcm law-select uLaw
system
clock-source 1 e1t1 0 0
profile ppp default
profile call-progress-tone defaultDialtone
flush-play-list
play 1 1000 350 -13 440 -13
profile call-progress-tone defaultAlertingtone
flush-play-list
play 1 1000 440 -19 480 -19
pause 2 3000
profile call-progress-tone defaultBusytone
flush-play-list
play 1 500 480 -24 620 -24
pause 2 500
profile call-progress-tone defaultReleasetone
flush-play-list
play 1 250 480 -24 620 -24
pause 2 250
profile call-progress-tone defaultCongestiontone
flush-play-list
play 1 250 480 -24 620 -24
pause 2 250
profile tone-set default
profile voip default
codec 1 g711alaw64k rx-length 20 tx-length 20
codec 2 g711ulaw64k rx-length 20 tx-length 20
codec 3 g729 rx-length 20 tx-length 20
fax transmission 1 relay t38-udp
modem transmission 1 bypass g711alaw64k rx-length 20 tx-length 20
profile pstn default
profile sip default
profile aaa default
method 1 local
method 2 none
context ip router
interface IF_IP_WAN
ipaddress dhcp
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
interface IF_IP_LAN
ipaddress 10.20.8.5 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
context cs switch
mapping-table calling-pi to calling-e164 MAP_REMOVE_BLANK_CALLERID
map restricted to ""
mapping-table calling-e164 to calling-e164 MAP_LEADING_ZERO
map (.%)-(.%)-(.%)-(.%)-(.%) to \1\2\3\4\5
map (.%)-(.%)-(.%)-(.%) to \1\2\3\4
map (.%)-(.%)-(.%) to \1\2\3
map (.%)-(.%) to \1\2
mapping-table calling-e164 to calling-name MAP_CID_TO_CNAME
map (.%) to \1
complex-function MAPPING_INCOMING_CALLS
execute 1 MAP_REMOVE_BLANK_CALLERID
execute 2 MAP_LEADING_ZERO
mapping-table calling-e164 to calling-e164 SET_CNPN
map 0(.%) to \1
mapping-table calling-type-of-number to calling-type-of-number TYPE
map default to national
mapping-table calling-numbering-plan to calling-numbering-plan PLAN
map default to isdn-telephony
complex-function OUTBOUND
execute 1 PLAN
execute 2 SET_CNPN
execute 3 TYPE
routing-table called-e164 RT_ISDN_TO_SIP_0
route default dest-interface IF_SIP_0 MAPPING_INCOMING_CALLS
routing-table called-e164 RT_SIP_TO_ISDN_0
route default dest-interface IF_ISDN_0 OUTBOUND
interface isdn IF_ISDN_0
route call dest-table RT_ISDN_TO_SIP_0
call-reroute emit
diversion emit
user-side-ringback-tone
caller-name
interface sip IF_SIP_0
bind context sip-gateway GW_SIP_0
early-connect
early-disconnect
route call dest-table RT_SIP_TO_ISDN_0
remote 10.20.8.2 5060
call-reroute accept
trust remote
address-translation outgoing-call request-uri user-part fix 10000 host-part to-header target-param none
address-translation incoming-call called-e164 request-uri
context cs switch
no shutdown
authentication-service AS_ALL_LINES
realm 1 3CXPhoneSystem
username 10000 password xrt49xw
location-service LS_10000
domain 1 10.20.8.2
identity-group default
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES username 10000
identity 10000
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES
registration outbound
registrar 10.20.8.2 5060
lifetime 300
register auto
context sip-gateway GW_SIP_0
interface LAN
bind interface IF_IP_LAN context router port 5060
context sip-gateway GW_SIP_0
bind location-service LS_10000
no shutdown
port ethernet 0 0
medium auto
encapsulation ip
bind interface IF_IP_WAN router
no shutdown
port ethernet 0 1
medium auto
encapsulation ip
bind interface IF_IP_LAN router
no shutdown
port e1t1 0 0
port-type t1
clock auto
linecode b8zs
framing esf
encapsulation q921
q921
uni-side auto
encapsulation q931
q931
protocol ni2
uni-side user
bchan-number-order ascending
encapsulation cc-isdn
bind interface IF_ISDN_0 switch
port e1t1 0 0
no shutdown
DEBUG INFO from Patton:
10.20.8.5#04:46:00 ICC > [IF_ISDN_0] << Message: primitive=64
04:46:00 ICC > [IF_ISDN_0] Added endpoint IF_ISDN_0-0140e6a0
04:46:00 ICC > [IF_ISDN_0] NEW CALL. Allocated Endpoint IF_ISDN_0-0140e6a0
04:46:00 ICC > [EP IF_ISDN_0-0140e6a0] << [080005]
SETUP (NI2 User)
[04038090A2]
Bearer capability : speech - CCITT
circuit mode - 64kBit/s - G.711 U-law
[1803A98301]
Channel id : UNKNOWN (0xE3FC60) - exclusive
other interface - is not d-channel - CCITT - UNKNOWN CHANNEL TYPE (0x140E6A0)
[1C1D9F8B0100A117020101020100800F4345444152205241504944532C4941]
Facility : Invoke : invokeid: 00000001
global operation
invoke {
present = 1
local = 0
argumentnamePresentationAllowedSimple = 'CEDAR RAPIDS,IA'
}
[6C0C218033313935353136373738]
Calling party number : 3195516778
national number - E.164 numbering plan
presentation allowed - user provided not screened
[7005C133373639]
Called party number : 3769
subscriber number - E.164 numbering plan
04:46:00 IDP > [EP IF_ISDN_0-0140e6a0] Change dtmf detection to 'disabled'
04:46:00 IDP > [EP IF_ISDN_0-0140e6a0] Acquired b-Channel 1 (Datapath termination 10000001)
04:46:00 ICC > [EP IF_ISDN_0-0140e6a0] CNIP << CallingName Invoke
04:46:00 ICC > [EP IF_ISDN_0-0140e6a0] CNIP >> Name Indication(CEDAR RAPIDS,IA,Presentation allowed)
04:46:00 ICC > [EP IF_ISDN_0-0140e6a0] State: NULL, Event: TERMINAL SETUP IND
04:46:00 ICC > [EP IF_ISDN_0-0140e6a0] Set state to CALL PRESENT
04:46:00 IDP > [EP IF_ISDN_0-0140e6a0] Change datapath direction to Send/Receive.
04:46:00 IERR > [EP IF_ISDN_0-0140e6a0] DIALING TO FAILED
04:46:00 IERR > [EP IF_ISDN_0-0140e6a0] ERROR. ABORTING CALL.
04:46:00 ICC > [EP IF_ISDN_0-0140e6a0] State: CALL PRESENT, Event: ERROR
04:46:00 ICC > [EP IF_ISDN_0-0140e6a0] Set state to NULL
04:46:00 IDP > [EP IF_ISDN_0-0140e6a0] Change datapath direction to Inactive.
04:46:00 ICC > [IF_ISDN_0] CLEARING CALL IF_ISDN_0-0140e6a0
04:46:00 ICC > [IF_ISDN_0] Removed endpoint IF_ISDN_0-0140e6a0
04:46:00 ICC > [EP IF_ISDN_0-0140e6a0] >> [08005A]
RELEASE COMPLETE (NI2 User)
[0802859B]
Cause : destination out of order
private network serving remote user - CCITT - Q.931
04:46:00 ICC > [IF_ISDN_0] Destroying finished calls.
04:46:00 ICC > [IF_ISDN_0] Destroyed endpoint IF_ISDN_0-0140e6a0