To use a Patton SmartNode like an ATA bank you would register each port separately with its own identity/number. This is particularly useful not only for registering analogue handsets to SIP but also when using a VoIP gateway to trunk a traditional analogue PBX to SIP.
Use the sample below to build you configuration but searching & replacing the appropriate sections in your favorite text editor.
#
# SN4114/JS/EUI - DHCP client, registering to a generic ITSP.
# 1. Search & replace[MyITSPAccount1], 2 3 & 4 including the braces e.g. [MyITSPAccount1] becomes 02811111111,[MyITSPAccount2] becomes 0282222222 etc... then search & replace [MyITSPPassdword1], 2,3, & 4 as previous
# 2. Search & replace the SIP registrar [sip.MyITSP.co.nz] with your ITSP registrar (we are making an assumption that registrar, proxy etc are all the same name)
# 3. Save the text file & import to the SmartNode via http://[SmartNode_IPAddress]/imp-cfg.html e.g. http://192.168.1.20/imp-cfg.html
# 4. Restart the device (resist the urge to 'save the configuration' while rebooting
# 5. Check the bootlog for any errors (http://[SmartNode_IPAddress]/rpt-bl.html)
#
cli version 3.20
clock local offset +12:00
webserver port 80 language en
sntp-client
sntp-client server primary nz.pool.ntp.org port 123 version 4
system hostname PATTON
system
ic voice 0
low-bitrate-codec g729
profile ppp default
profile call-progress-tone NZ_Dialtone
play 1 5000 400 -15
profile call-progress-tone NZ_Alertingtone
play 1 400 400 -15 450 -15
pause 2 200
play 3 400 400 -15 450 -15
pause 4 2000
profile call-progress-tone NZ_Busytone
play 1 500 400 -15
pause 2 500
profile call-progress-tone NZ_SDTone
play 1 10000 425 -19 620 -19
profile call-progress-tone NZ_Callwaiting
play 1 200 400 -15
pause 2 200
profile call-progress-tone NZ_Releasetone
play 1 250 400 -15
pause 2 250
profile tone-set default
profile tone-set NZ
map call-progress-tone dial-tone NZ_Dialtone
map call-progress-tone ringback-tone NZ_Alertingtone
map call-progress-tone busy-tone NZ_Busytone
map call-progress-tone waiting-tone NZ_Callwaiting
map call-progress-tone release-tone NZ_Releasetone
map call-progress-tone congestion-tone NZ_Releasetone
profile voip default
codec 1 g711alaw64k rx-length 20 tx-length 20
codec 2 g711ulaw64k rx-length 20 tx-length 20
profile pstn default
profile ringing-cadence default
play 1 1000
pause 2 4000
profile sip default
profile aaa default
method 1 local
method 2 none
context ip router
interface IF_LAN
ipaddress dhcp
context ip router
context cs switch
digit-collection timeout 3
routing-table called-e164 RT_FXS_TO_SIP
route .T dest-interface IF_SIP
routing-table called-e164 RT_SIP_TO_FXS
route [MyITSPAccount1] dest-interface IF_FXS_00
route [MyITSPAccount2] dest-interface IF_FXS_01
route [MyITSPAccount3] dest-interface IF_FXS_02
route [MyITSPAccount4] dest-interface IF_FXS_03
interface sip IF_SIP
bind context sip-gateway GW_SIP
route call dest-table RT_SIP_TO_FXS
remote [sip.MyITSP.co.nz] 5060
address-translation outgoing-call from-header user-part call host-part fix [sip.MyITSP.co.nz] 5060
use profile tone-set NZ
interface fxs IF_FXS_00
route call dest-table RT_FXS_TO_SIP
subscriber-number [MyITSPAccount1]
use profile tone-set NZ
interface fxs IF_FXS_01
route call dest-table RT_FXS_TO_SIP
subscriber-number [MyITSPAccount2]
use profile tone-set NZ
interface fxs IF_FXS_02
route call dest-table RT_FXS_TO_SIP
subscriber-number [MyITSPAccount3]
use profile tone-set NZ
interface fxs IF_FXS_03
route call dest-table RT_FXS_TO_SIP
subscriber-number [MyITSPAccount4]
use profile tone-set NZ
context cs switch
no shutdown
authentication-service AUTH_SVC01
username [MyITSPAccount1] password [MyITSPPassword1]
username [MyITSPAccount2] password [MyITSPPassword2]
username [MyITSPAccount3] password [MyITSPPassword3]
username [MyITSPAccount4] password [MyITSPPassword4]
location-service LOC_SERV_01
domain 1 [[sip.MyITSP.co.nz]]
identity-group default
authentication outbound
authenticate 1 authentication-service AUTH_SVC01
registration outbound
registrar [sip.MyITSP.co.nz] 5060
proxy 1 [sip.MyITSP.co.nz] 5060
lifetime 60
register auto
retry-timeout on-system-error 10
retry-timeout on-client-error 10
retry-timeout on-server-error 10
message inbound
lifetime 3600
subscribe implicit
call outbound
proxy none
use profile voip default
use profile sip default
identity [MyITSPAccount1] inherits default
identity [MyITSPAccount2] inherits default
identity [MyITSPAccount3] inherits default
identity [MyITSPAccount4] inherits default
context sip-gateway GW_SIP
interface IF_GW_SIP
bind interface IF_LAN context router port 5060
context sip-gateway GW_SIP
bind location-service LOC_SERV_01
no shutdown
port ethernet 0 0
medium auto
encapsulation ip
bind interface IF_LAN router
no shutdown
port fxs 0 0
use profile fxs nz
encapsulation cc-fxs
bind interface IF_FXS_00 switch
no shutdown
port fxs 0 1
use profile fxs nz
encapsulation cc-fxs
bind interface IF_FXS_01 switch
no shutdown
port fxs 0 2
use profile fxs nz
encapsulation cc-fxs
bind interface IF_FXS_02 switch
no shutdown
port fxs 0 3
use profile fxs nz
encapsulation cc-fxs
bind interface IF_FXS_03 switch
no shutdown
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article