Patton SmartNode SN4332/JS Multi-Port FXS Analog VoIP Gateway provides 32 analog FXS interfaces to connect analog phones, fax to your PBX SIP-based communications. Here the config to connect to Asterisk 11.
Asterisk – sip.conf
[200] secret=<password> dtmfmode=rfc2833 canreinvite=no context=from-internal host=dynamic trustrpid=yes sendrpid=no type=friend nat=no port=5060 qualify=yes qualifyfreq=60 transport=udp [201] secret=<password> dtmfmode=rfc2833 canreinvite=no context=from-internal host=dynamic trustrpid=yes sendrpid=no type=friend nat=no port=5060 qualify=yes qualifyfreq=60 transport=udp
..etc etc for all the extent…….
Patton SmartNode SN4332/JS – startup.config
cli version 3.20
no terminal telnet
clock local default-offset +01:00
dns-client server 208.67.222.222
webserver port 80 language en
sntp-client
sntp-client server primary pool.ntp.org port 123 version 4
system hostname ana01comunecusano
system
ic voice 0
low-bitrate-codec g729
profile ppp default
profile call-progress-tone defaultDialtone
play 1 1000 450 -6
profile call-progress-tone defaultAlertingtone
play 1 1000 450 -13
pause 2 5000
profile call-progress-tone defaultBusytone
play 1 300 450 -7
pause 2 300
profile call-progress-tone defaultReleasetone
play 1 300 450 -7
pause 2 300
profile call-progress-tone defaultCongestiontone
play 1 300 450 -7
pause 2 300
profile tone-set default
profile voip default
codec 1 g711alaw64k rx-length 20 tx-length 20 no-silence-suppression
codec 2 g711ulaw64k rx-length 20 tx-length 20 no-silence-suppression
dejitter-max-delay 40
fax transmission 1 bypass g711alaw64k rx-length 10 tx-length 10
fax transmission 2 relay t38-udp
profile pstn default
output-gain -4
input-gain -4
profile ringing-cadence default
play 1 1000
pause 2 4000
profile sip default
no autonomous-transitioning
profile aaa default
method 1 local
method 2 none
context ip router
interface eth0
ipaddress <patton ip address> <mask network>
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
context ip router
route 0.0.0.0 0.0.0.0 <ip address gateway> 0
context cs switch
digit-collection timeout 2
routing-table called-e164 RT_DIGITCOLLECTION
route .T dest-interface IF_SIP_PBX
routing-table called-e164 RT_TO_FXS
route 200 dest-interface IF_FXS_200
interface sip IF_SIP_PBX
bind context sip-gateway GW_SIP_ALL_EXTENSIONS
route call dest-table RT_TO_FXS
remote <asterisk ip address> 5060
interface fxs IF_FXS_200
route call dest-table RT_DIGITCOLLECTION
message-waiting-indication stutter-dial-tone
message-waiting-indication frequency-shift-keying
call-transfer
subscriber-number 200
interface fxs IF_FXS_201
route call dest-table RT_DIGITCOLLECTION
message-waiting-indication stutter-dial-tone
message-waiting-indication frequency-shift-keying
call-transfer
subscriber-number 201
<...etc etc for all the extent.......>
context cs switch
no shutdown
authentication-service AS_ALL_EXTENSIONS
username 200 password <password sip extent 200>
username 201 password <password sip extent 201>
<...etc etc for all the extent.......>
location-service LS_ALL_EXTENSIONS
domain 1 <asterisk ip address> 5060
identity 200
authentication outbound
authenticate 1 authentication-service AS_ALL_EXTENSIONS username 200
registration outbound
registrar <asterisk ip address> 5060
lifetime 3600
register auto
retry-timeout on-system-error 10
retry-timeout on-client-error 10
retry-timeout on-server-error 10
identity 201
authentication outbound
authenticate 1 authentication-service AS_ALL_EXTENSIONS username 201
registration outbound
registrar <asterisk ip address> 5060
lifetime 300
register auto
retry-timeout on-system-error 10
retry-timeout on-client-error 10
retry-timeout on-server-error 10
<...etc etc for all the extent.......>
context sip-gateway GW_SIP_ALL_EXTENSIONS
interface LAN
bind interface eth0 context router port 5060
context sip-gateway GW_SIP_ALL_EXTENSIONS
bind location-service LS_ALL_EXTENSIONS
no shutdown
port ethernet 0 0
medium auto
encapsulation ip
bind interface eth0 router
no shutdown
port fxs 0 0
encapsulation cc-fxs
bind interface IF_FXS_200 switch
no shutdown
port fxs 0 1
encapsulation cc-fxs
bind interface IF_FXS_201 switch
no shutdown
<...etc etc for all the extent.......>
Follow