Create a Trunk on elastix:
Trunk name: 10001
PEER detail:
host=dynamic username=10001 secret=10001 type=friend dtmfmode=rfc2833 defaultip=192.168.0.11 insecure=port,invite
Add the below configuration to Patton: #—————————————————————-# # # # SN4120/1BIS2V # # R6.3 2013-05-01 H323 SIP # # 2018-10-03T09:49:55 # # SN/00A0BA0B302A # # Generated configuration file # # # #—————————————————————-#
cli version 3.20 clock local default-offset +02:00 dns-client server 8.8.8.8 dns-relay webserver port 80 language en sntp-client sntp-client server primary 129.132.2.21 port 123 version 4
system
ic voice 0 low-bitrate-codec g729
system clock-source 1 bri 0 0
profile ppp default
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
profile pstn default
profile sip default autonomous-transitioning
profile dhcp-server DHCPS_LAN network 192.168.0.0 255.255.255.0 default-router 1 192.168.0.1 domain-name-server 1 8.8.8.8
profile aaa default method 1 local method 2 none
context ip router rtp-port-range 10000 20001
interface IF_WAN ipaddress 192.168.0.68 255.255.255.0 tcp adjust-mss rx mtu tcp adjust-mss tx mtu
context ip router route 0.0.0.0 0.0.0.0 192.168.0.1 0
context cs switch
routing-table called-e164 RT_IN route .T2 dest-interface IF_SIP
interface isdn IF_ISDN_00 route call dest-table RT_IN isdn-date-time
interface sip IF_SIP bind context sip-gateway GW_SIP route call dest-service SER_HUNT_PSTN remote 192.168.0.240 privacy
service hunt-group SER_HUNT_PSTN cyclic drop-cause normal-unspecified drop-cause no-circuit-channel-available drop-cause network-out-of-order drop-cause temporary-failure drop-cause switching-equipment-congestion drop-cause access-info-discarded drop-cause circuit-channel-not-available drop-cause resources-unavailable route call 1 dest-interface IF_ISDN_00
context cs switch no shutdown
authentication-service ATH_GW username 1001 password /cC0XGzbtGs= encrypted
location-service LS_GW
identity 1001
authentication outbound
registration outbound registrar 192.168.0.240 5060 lifetime 3600 register auto retry-timeout on-system-error 10 retry-timeout on-client-error 10 retry-timeout on-server-error 10
context sip-gateway GW_SIP
interface IF_GWSIP bind interface IF_WAN context router port 5060
context sip-gateway GW_SIP no shutdown
port ethernet 0 0 medium auto encapsulation ip bind interface IF_WAN router no shutdown
port bri 0 0 clock slave encapsulation q921
q921 uni-side auto encapsulation q931
q931 protocol dss1 uni-side user bchan-number-order ascending encapsulation cc-isdn bind interface IF_ISDN_00 switch
port bri 0 0 no shutdown
Create incoming/outgoing rules on Elastix pointing to the new Trunk and you are ready!