- Joined
- Apr 6, 2008
- Messages
- 116
- Reaction score
- 2
There is a lot of discussion in topics regarding the configuration of the PSTN side of analog gateways. Various poeple have voiced the opinion that they expect 3CX to support the PSTN side of these devices wherever they happen to be located in the world and regardless of the local provider. I feel it is very unfair to expect this as there are so many differences globaly. To this end I thought it may be helpful to start a new thread where users with working FXO gateways could post their configs and state the gateway used and the region/provider they are using. After all the one of the purposes of forums such as this is to help each other although contributions from the manufacturers are always valuable and useful.
I will start this off with a working config for a Patton 4112 in the UK with BT as the PSTN provider.
The config was auto generated by the 3cx and then the 7 sections that start with "profile call-progress-tone UK_??????tone" were added. The section that begins"profile tone-set UK" was added then the newly created UK tone set was applied to the virtual FXO interfaces IF_FXO_0 and 1 by adding the line "use profile tone-set UK" to both of these. I am not saying this config is perfect but it works! Hope this is useful to someone.
Patton 4112, UK, BT
webserver port 80 language en
system
ic voice 0
low-bitrate-codec g729
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 400 400 -19 450 -19
pause 2 200
play 3 400 400 -19 450 -19
pause 4 2000
profile call-progress-tone defaultBusytone
flush-play-list
play 1 375 400 -24
pause 2 375
profile call-progress-tone defaultReleasetone
flush-play-list
play 1 400 400 -24
pause 2 350
play 3 225 400 -24
pause 4 525
profile call-progress-tone defaultCongestiontone
flush-play-list
play 1 400 400 -24
pause 2 350
play 3 225 400 -24
pause 4 525
profile call-progress-tone UK_Dialtone
play 1 5000 350 -13 440 -13
profile call-progress-tone UK_Alertingtone
play 1 400 400 0 450 0
pause 2 200
play 3 400 400 0 450 0
pause 4 2000
profile call-progress-tone UK_Busytone
play 1 375 400 0
pause 2 375
profile call-progress-tone UK_CongestionTone
play 1 400 400 -6
pause 2 350
play 3 225 400 0
pause 4 525
profile call-progress-tone UK_SpecialInfoTone
play 1 330 950 0
pause 2 30
play 3 330 1400 0
pause 4 30
play 5 330 1800 0
pause 6 30
profile call-progress-tone UK_WaitingTone
play 1 100 400 0
pause 2 5000
profile call-progress-tone UK_SpecialDialTone
play 1 750 350 0 440 -3
pause 2 750
play 3 750 350 0 440 -3
profile tone-set default
profile tone-set UK
map call-progress-tone dial-tone UK_Dialtone
map call-progress-tone ringback-tone UK_Alertingtone
map call-progress-tone busy-tone UK_Busytone
map call-progress-tone special-information-tone UK_SpecialInfoTone
map call-progress-tone waiting-tone UK_WaitingTone
map call-progress-tone release-tone UK_ReleaseTone
map call-progress-tone congestion-tone UK_CongestionTone
map call-progress-tone special-dial-tone UK_SpecialDialTone
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
echo-canceler-hybrid-loss 9
profile sip default
no autonomous-transitioning
profile aaa default
method 1 local
method 2 none
context ip router
interface IF_IP_LAN
ipaddress 10.xxx.x.xxx 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
context cs switch
no digit-collection timeout
interface sip IF_SIP_0
bind gateway GW_SIP_0
service default
route call dest-interface IF_FXO_0
address-translation outgoing-call request-uri user-part fix 10003 host
to-header target-param none
address-translation incoming-call called-e164 request-uri
interface sip IF_SIP_1
bind gateway GW_SIP_1
service default
route call dest-interface IF_FXO_1
address-translation outgoing-call request-uri user-part fix 10004 host
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
loop-break-duration min 200 max 1000
disconnect-signal loop-break
disconnect-signal busy-tone
dial-after timeout 1
use profile tone-set UK
interface fxo IF_FXO_1
route call dest-interface IF_SIP_1
loop-break-duration min 200 max 1000
disconnect-signal loop-break
disconnect-signal busy-tone
dial-after timeout 1
use profile tone-set UK
context cs switch
no shutdown
gateway sip GW_SIP_0
bind interface IF_IP_LAN router
service default
domain 10.xxx.xxx.xxx
defaultserver manual 10.xxx.xxx.xxx loose-router
registration-lifetime 300
registration manual 10.xxx.xxx.xxx
user 10003 authenticate password ySyWxUvSc/c= encrypted default regist
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 10.xxx.xxx.xxx
defaultserver manual 10.xxx.xxx.xxx loose-router
registration-lifetime 300
registration manual 10.xxx.xxx.xxx
user 10004 authenticate password 9CS6/5Fhrd0= encrypted default regist
gateway sip GW_SIP_1
no shutdown
port ethernet 0 0
medium auto
encapsulation ip
bind interface IF_IP_LAN router
no shutdown
port fxo 0 0
use profile fxo gb
encapsulation cc-fxo
bind interface IF_FXO_0 switch
no shutdown
port fxo 0 1
use profile fxo gb
encapsulation cc-fxo
bind interface IF_FXO_1 switch
no shutdown
I will start this off with a working config for a Patton 4112 in the UK with BT as the PSTN provider.
The config was auto generated by the 3cx and then the 7 sections that start with "profile call-progress-tone UK_??????tone" were added. The section that begins"profile tone-set UK" was added then the newly created UK tone set was applied to the virtual FXO interfaces IF_FXO_0 and 1 by adding the line "use profile tone-set UK" to both of these. I am not saying this config is perfect but it works! Hope this is useful to someone.
Patton 4112, UK, BT
webserver port 80 language en
system
ic voice 0
low-bitrate-codec g729
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 400 400 -19 450 -19
pause 2 200
play 3 400 400 -19 450 -19
pause 4 2000
profile call-progress-tone defaultBusytone
flush-play-list
play 1 375 400 -24
pause 2 375
profile call-progress-tone defaultReleasetone
flush-play-list
play 1 400 400 -24
pause 2 350
play 3 225 400 -24
pause 4 525
profile call-progress-tone defaultCongestiontone
flush-play-list
play 1 400 400 -24
pause 2 350
play 3 225 400 -24
pause 4 525
profile call-progress-tone UK_Dialtone
play 1 5000 350 -13 440 -13
profile call-progress-tone UK_Alertingtone
play 1 400 400 0 450 0
pause 2 200
play 3 400 400 0 450 0
pause 4 2000
profile call-progress-tone UK_Busytone
play 1 375 400 0
pause 2 375
profile call-progress-tone UK_CongestionTone
play 1 400 400 -6
pause 2 350
play 3 225 400 0
pause 4 525
profile call-progress-tone UK_SpecialInfoTone
play 1 330 950 0
pause 2 30
play 3 330 1400 0
pause 4 30
play 5 330 1800 0
pause 6 30
profile call-progress-tone UK_WaitingTone
play 1 100 400 0
pause 2 5000
profile call-progress-tone UK_SpecialDialTone
play 1 750 350 0 440 -3
pause 2 750
play 3 750 350 0 440 -3
profile tone-set default
profile tone-set UK
map call-progress-tone dial-tone UK_Dialtone
map call-progress-tone ringback-tone UK_Alertingtone
map call-progress-tone busy-tone UK_Busytone
map call-progress-tone special-information-tone UK_SpecialInfoTone
map call-progress-tone waiting-tone UK_WaitingTone
map call-progress-tone release-tone UK_ReleaseTone
map call-progress-tone congestion-tone UK_CongestionTone
map call-progress-tone special-dial-tone UK_SpecialDialTone
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
echo-canceler-hybrid-loss 9
profile sip default
no autonomous-transitioning
profile aaa default
method 1 local
method 2 none
context ip router
interface IF_IP_LAN
ipaddress 10.xxx.x.xxx 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
context cs switch
no digit-collection timeout
interface sip IF_SIP_0
bind gateway GW_SIP_0
service default
route call dest-interface IF_FXO_0
address-translation outgoing-call request-uri user-part fix 10003 host
to-header target-param none
address-translation incoming-call called-e164 request-uri
interface sip IF_SIP_1
bind gateway GW_SIP_1
service default
route call dest-interface IF_FXO_1
address-translation outgoing-call request-uri user-part fix 10004 host
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
loop-break-duration min 200 max 1000
disconnect-signal loop-break
disconnect-signal busy-tone
dial-after timeout 1
use profile tone-set UK
interface fxo IF_FXO_1
route call dest-interface IF_SIP_1
loop-break-duration min 200 max 1000
disconnect-signal loop-break
disconnect-signal busy-tone
dial-after timeout 1
use profile tone-set UK
context cs switch
no shutdown
gateway sip GW_SIP_0
bind interface IF_IP_LAN router
service default
domain 10.xxx.xxx.xxx
defaultserver manual 10.xxx.xxx.xxx loose-router
registration-lifetime 300
registration manual 10.xxx.xxx.xxx
user 10003 authenticate password ySyWxUvSc/c= encrypted default regist
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 10.xxx.xxx.xxx
defaultserver manual 10.xxx.xxx.xxx loose-router
registration-lifetime 300
registration manual 10.xxx.xxx.xxx
user 10004 authenticate password 9CS6/5Fhrd0= encrypted default regist
gateway sip GW_SIP_1
no shutdown
port ethernet 0 0
medium auto
encapsulation ip
bind interface IF_IP_LAN router
no shutdown
port fxo 0 0
use profile fxo gb
encapsulation cc-fxo
bind interface IF_FXO_0 switch
no shutdown
port fxo 0 1
use profile fxo gb
encapsulation cc-fxo
bind interface IF_FXO_1 switch
no shutdown