Hi,
Here's an example of configuration file. You have to fill in the <...> with your own ip adresses, phone number and passwords.
In 3cxphonesystem, don't create a Pstn gateway. You just need to create the fxs extensions, as if it were SIP phones.
I installed five SN4118JS, and it works fine.
Hope it is helpfull.
Regards
Dominique
Note : in the R5.2 release, the commands are different. This configuration file doesn't work in R5.2...
#################################################
# Configuration file for Patton SN4114JS (FXS) R4.2 #
#################################################
cli version 3.20
webserver port 80 language en
sntp-client
sntp-client server primary <sntp1 ip address> port 123 version 4
sntp-client server secondary <sntp2 ip address> port 123 version 4
system
ic voice 0
low-bitrate-codec g729
profile ppp default
profile call-progress-tone defaultDialtone
play 1 1000 440 0
profile call-progress-tone defaultAlertingtone
play 1 1500 440 -7
pause 2 3500
profile call-progress-tone defaultBusytone
play 1 500 440 -7
pause 2 500
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
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 <Gateway ip address> <Lan ip mask>
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
context cs switch
no digit-collection timeout
routing-table called-e164 Table1
route .%T3 dest-interface IF_SIP_0
routing-table called-e164 Table2
route .%T3 dest-interface IF_SIP_1
routing-table called-e164 Table3
route .%T3 dest-interface IF_SIP_2
routing-table called-e164 Table4
route .%T3 dest-interface IF_SIP_3
interface sip IF_SIP_0
bind gateway GW_SIP_0
service default
route call dest-interface IF_FXS_0
remote <3cx serveur ip address>
early-connect
early-disconnect
address-translation outgoing-call from-header user-part fix <USER1 phone number> host-part call
interface sip IF_SIP_1
bind gateway GW_SIP_1
service default
route call dest-interface IF_FXS_1
remote <3cx serveur ip address>
early-connect
early-disconnect
address-translation outgoing-call from-header user-part fix <USER2 phone number> host-part call
interface sip IF_SIP_2
bind gateway GW_SIP_2
service default
route call dest-interface IF_FXS_2
remote <3cx serveur ip address>
early-connect
early-disconnect
address-translation outgoing-call from-header user-part fix <USER3 phone number> host-part call
interface sip IF_SIP_3
bind gateway GW_SIP_3
service default
route call dest-interface IF_FXS_3
remote <3cx serveur ip address>
early-connect
early-disconnect
address-translation outgoing-call from-header user-part fix <USER4 phone number> host-part call
interface fxs IF_FXS_0
route call dest-table Table1
call-transfer
caller-id-presentation pre-ring
subscriber-number <USER1 phone number>
interface fxs IF_FXS_1
route call dest-table Table2
call-transfer
caller-id-presentation pre-ring
subscriber-number <USER2 phone number>
interface fxs IF_FXS_2
route call dest-table Table3
call-transfer
caller-id-presentation pre-ring
subscriber-number <USER3 phone number>
interface fxs IF_FXS_3
route call dest-table Table4
call-transfer
caller-id-presentation pre-ring
subscriber-number <USER4 phone number>
context cs switch
no shutdown
gateway sip GW_SIP_0
bind interface IF_IP_LAN router
service default
domain <3cx serveur ip address>
defaultserver manual <3cx serveur ip address> loose-router
registration-lifetime 300
registration manual <3cx serveur ip address>
user <USER1 phone number> authenticate password <USER1 password> default register
gateway sip GW_SIP_0
no shutdown
gateway sip GW_SIP_1
call-signaling-port 5062
bind interface IF_IP_LAN router
service default
domain <3cx serveur ip address>
defaultserver manual <3cx serveur ip address> loose-router
registration-lifetime 300
registration manual <3cx serveur ip address>
user <USER2 phone number> authenticate password <USER2 password> default register
gateway sip GW_SIP_1
no shutdown
gateway sip GW_SIP_2
call-signaling-port 5064
bind interface IF_IP_LAN router
service default
domain <3cx serveur ip address>
defaultserver manual <3cx serveur ip address> loose-router
registration-lifetime 300
registration manual <3cx serveur ip address>
user <USER3 phone number> authenticate password <USER3 password> default register
gateway sip GW_SIP_2
no shutdown
gateway sip GW_SIP_3
call-signaling-port 5066
bind interface IF_IP_LAN router
service default
domain <3cx serveur ip address>
defaultserver manual <3cx serveur ip address> loose-router
registration-lifetime 300
registration manual <3cx serveur ip address>
user <USER4 phone number> authenticate password <USER4 password> default register
gateway sip GW_SIP_3
no shutdown
port ethernet 0 0
medium auto
bind interface IF_IP_LAN router
no shutdown
port fxs 0 0
caller-id format bell
encapsulation cc-fxs
bind interface IF_FXS_0 switch
no shutdown
port fxs 0 1
caller-id format bell
encapsulation cc-fxs
bind interface IF_FXS_1 switch
no shutdown
port fxs 0 2
caller-id format bell
encapsulation cc-fxs
bind interface IF_FXS_2 switch
no shutdown
port fxs 0 3
caller-id format bell
encapsulation cc-fxs
bind interface IF_FXS_3 switch
no shutdown