At the end of one of the longest day of my life, the phone is ringing! I finally have a working config for my Patton SN4114 with 4FXO ports!
I tried an unbelievable number of things to get it working.. so I’m very satisfied now 😉
That is the point:
My need was to let the Patton register on the trixbox PBX (I can assume that it’s the same on an asterisk box), but these lines was hiding an error:
authentication-service AS_ALL_LINES
realm 1 trixbox
username 10001 password 10001
username 10002 password 10002
username 10003 password 10003
username 10004 password 10004
the authentication service name definition, in some way, didn’t permit to registerto the PBX. So, removing the “realm” line, the sip show peers command showed:
Name/username Host Dyn Nat ACL Port Status
10004/10004 192.168.9.69 D 5066 OK (19 ms)
10003/10003 192.168.9.69 D 5064 OK (20 ms)
10002/10002 192.168.9.69 D 5062 OK (19 ms)
10001/10001 192.168.9.69 D 5060 OK (21 ms)
and the 4 sip gateways started to work…
That row was generated with the 3CX config generator, and I read about thousands of people that had my same problem, and they posted on some forums their configuration, that contained that line!
So I paste my config file for 5.x firmware (it doesn’t work with 4.x), and good luck…
#########################################################
#
# For SN-4114 4-port FXO
# Supported firmware versions R5.x
#
#Patton IP is 192.168.9.69
#PBX IP is 192.168.9.5
#########################################################
cli version 3.20
clock local default-offset +01:00
dns-client server 192.168.9.4
webserver port 80 language en
sntp-client
sntp-client server primary time.ien.it port 123 version 4
system
ic voice 0
low-bitrate-codec g729
profile ppp default
rofile call-progress-tone IT_Dialtone
play 1 200 425 -12
pause 2 200
play 3 600 425 -12
pause 4 1000
profile call-progress-tone IT_Alertingtone
play 1 1000 425 -12
pause 2 4000
profile call-progress-tone IT_Congestion
play 1 200 425 -12
pause 2 200
profile call-progress-tone IT_Busytone
play 1 500 425 -12
pause 2 500
profile tone-set default
profile tone-set IT
map call-progress-tone dial-tone IT_Dialtone
map call-progress-tone ringback-tone IT_Alertingtone
map call-progress-tone busy-tone IT_Busytone
map call-progress-tone release-tone IT_Busytone
map call-progress-tone congestion-tone IT_Congestion
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
profile pstn default
profile sip default
profile aaa default
method 1 local
method 2 none
context ip router
interface IF_IP_LAN
ipaddress 192.168.9.69 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
context cs switch
digit-collection timeout 4
no digit-collection terminating-char
address-completion timeout 20
national-prefix 0
international-prefix 00
interface sip IF_SIP_0
bind context sip-gateway GW_SIP_0
early-connect
early-disconnect
route call dest-interface IF_FXO_0
remote 192.168.9.5 5060
address-translation outgoing-call request-uri user-part fix 10001 host-part to-header target-param none
address-translation incoming-call called-e164 request-uri
interface sip IF_SIP_1
bind context sip-gateway GW_SIP_1
early-connect
early-disconnect
route call dest-interface IF_FXO_1
remote 192.168.9.5 5060
address-translation outgoing-call request-uri user-part fix 10002 host-part to-header target-param none
address-translation incoming-call called-e164 request-uri
interface sip IF_SIP_2
bind context sip-gateway GW_SIP_2
early-connect
early-disconnect
route call dest-interface IF_FXO_2
remote 192.168.9.5 5060
address-translation outgoing-call request-uri user-part fix 10003 host-part to-header target-param none
address-translation incoming-call called-e164 request-uri
interface sip IF_SIP_3
bind context sip-gateway GW_SIP_3
early-connect
early-disconnect
route call dest-interface IF_FXO_3
remote 192.168.9.5 5060
address-translation outgoing-call request-uri user-part fix 10004 host-part to-header target-param none
address-translation incoming-call called-e164 request-uri
interface fxo IF_FXO_0
route call dest-interface IF_SIP_0
disconnect-signal battery-reversal
disconnect-signal loop-break
disconnect-signal busy-tone
ring-number on-caller-id
dial-after timeout 2
use profile tone-set IT
interface fxo IF_FXO_1
route call dest-interface IF_SIP_1
disconnect-signal battery-reversal
disconnect-signal loop-break
disconnect-signal busy-tone
ring-number on-caller-id
dial-after timeout 2
use profile tone-set IT
interface fxo IF_FXO_2
route call dest-interface IF_SIP_2
disconnect-signal battery-reversal
disconnect-signal loop-break
disconnect-signal busy-tone
ring-number on-caller-id
dial-after timeout 2
use profile tone-set IT
interface fxo IF_FXO_3
disconnect-signal battery-reversal
disconnect-signal loop-break
disconnect-signal busy-tone
ring-number on-caller-id
dial-after timeout 2
use profile tone-set IT
context cs switch
no shutdown
authentication-service AS_ALL_LINES
username 10001 password 10001
username 10002 password 10002
username 10003 password 10003
username 10004 password 10004
location-service LS_10001
domain 1 192.168.9.5
identity-group default
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES username 10001
identity 10001
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES
registration outbound
registrar 192.168.9.5 5060
lifetime 300
register auto
location-service LS_10002
domain 1 192.168.9.5
identity-group default
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES username 10002
identity 10002
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES
registration outbound
registrar 192.168.9.5 5060
lifetime 300
register auto
location-service LS_10003
domain 1 192.168.9.5
identity-group default
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES username 10003
identity 10003
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES
registration outbound
registrar 192.168.9.5 5060
lifetime 300
register auto
location-service LS_10004
domain 1 192.168.9.5
identity-group default
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES username 10004
identity 10004
authentication outbound
authenticate 1 authentication-service AS_ALL_LINES
registration outbound
registrar 192.168.9.5 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_10001
no shutdown
context sip-gateway GW_SIP_1
interface LAN
bind interface IF_IP_LAN context router port 5062
context sip-gateway GW_SIP_1
bind location-service LS_10002
no shutdown
context sip-gateway GW_SIP_2
interface LAN
bind interface IF_IP_LAN context router port 5064
context sip-gateway GW_SIP_2
bind location-service LS_10003
no shutdown
context sip-gateway GW_SIP_3
interface LAN
bind interface IF_IP_LAN context router port 5066
context sip-gateway GW_SIP_3
bind location-service LS_10004
no shutdown
port ethernet 0 0
medium auto
encapsulation ip
bind interface IF_IP_LAN router
no shutdown
port fxo 0 0
encapsulation cc-fxo
bind interface IF_FXO_0 switch
no shutdown
port fxo 0 1
encapsulation cc-fxo
bind interface IF_FXO_1 switch
no shutdown
port fxo 0 2
encapsulation cc-fxo
bind interface IF_FXO_2 switch
no shutdown
port fxo 0 3
encapsulation cc-fxo
bind interface IF_FXO_3 switch
no shutdown
Â
Remember that tha Patton has to register to the PBX and not the opposite!
So here is the first trunk configuration, the others are similar 😉
Trunk name:Â 10001Â (IMPORTANT – it’s the username defined in the Patton)
Peer details:
canreinvite=no
context=from-pstn
dtmfmode=rfc2833
host=dynamic      <—- important
qualify=yes
secret=10001
type=friend
insecure=very
allow=ulaw
I hope to look at someone smiling after that 😛