Notes
This configuration is based on version 6.1 firmware. Comments are in the configuration
This configuration allows one to connect to an ITSP (voip.ms in this case) and use the Patton device as a SIP trunking gateway, effectively eliminating the need for sipXbridge. The only outstanding item worth noting is the lack of ringing when the auto attendant performs a transfer.
This configuration is downloadable here
Config
#----------------------------------------------------------------# # # # SN4528/4JS4JO/EUI # # R6.1 2012-03-07 H323 SIP FXS FXO # # 2012-04-27T14:15:54 # # Generated configuration file # # # #----------------------------------------------------------------# cli version 3.20 clock local default-offset -06:00 ########################################### # Change this to point to your DNS server # ########################################### dns-client server 172.16.1.5 dns-relay webserver port 80 language en sntp-client ########################################### # Change this to point to your NTP server # ########################################### sntp-client server primary 129.132.2.21 port 123 version 4 system ic voice 0 low-bitrate-codec g729 profile napt NAPT profile ppp default profile tone-set default ############################################ # Change these up to meet your CODEC needs # ############################################ profile voip default codec 1 g711ulaw64k rx-length 20 tx-length 20 codec 2 g711alaw64k rx-length 20 tx-length 20 fax transmission 1 relay t38-udp fax transmission 2 bypass g711ulaw64k rx-length 10 tx-length 10 modem transmission 1 bypass g711ulaw64k rx-length 10 tx-length 10 profile pstn default 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 ####################################################################### # Don't forget to change your IP address before you upload the config # ####################################################################### ipaddress 172.16.1.120 255.255.255.0 tcp adjust-mss rx mtu tcp adjust-mss tx mtu interface eth1 ipaddress dhcp tcp adjust-mss rx mtu tcp adjust-mss tx mtu context ip router ########################################################################### # Don't forget to change your default route before you upload your config # ########################################################################### route 0.0.0.0 0.0.0.0 172.16.1.253 2 context cs switch routing-table called-e164 TO-VOIPMS route default dest-interface VOIPMS-INT-SIP VOIPMS-OUT-CID ########################################################################################################################## # Modifies outbound caller ID for all outbound calls. Change this to one of your DIDs, or you can get more fancy with it # ########################################################################################################################## mapping-table calling-e164 to calling-e164 VOIPMS-OUT-CID map default to 5553211234 interface sip VOIPMS-INT-SIP bind context sip-gateway VOIPMS-GW route call dest-interface SIPX-INT-SIP ########################################################################## # Change remote hostname to whatever voip.ms proxy you are connecting to # ########################################################################## remote dallas.voip.ms ######################################################################### # Change local hostname to whatever voip.ms proxy you are connecting to # ######################################################################### local dallas.voip.ms no call-transfer accept no call-transfer emit no call-transfer pull-in interface sip SIPX-INT-SIP bind context sip-gateway SIPX-GW route call dest-table TO-VOIPMS remote sip.corp.ezuce.com call-reroute accept call-reroute emit context cs switch no shutdown authentication-service VOIPMS-AUTH ##################################################################### # Change your realm to whatever voip.ms proxy you are connecting to # ##################################################################### realm 1 dallas.voip.ms ################################################################################# # Change your username and password to match your voip.ms username and password # ################################################################################# username voipmssipusername password voipmssippassword location-service SIPX-LOCATION domain 1 sip.corp.ezuce.com location-service VOIPMS-LOCATION ####################################################################### # Change your domaing to whatever voip.ms proxy you are connecting to # ####################################################################### domain 1 dallas.voip.ms identity-group default authentication outbound ####################################################### # Change your username to match your voip.ms username # ####################################################### authenticate 1 authentication-service VOIPMS-AUTH username voipmssipusername registration outbound ######################################################################### # Change your registrar to whatever voip.ms proxy you are connecting to # ######################################################################### registrar dallas.voip.ms ################################## # 300 second registration period # ################################## lifetime 300 register auto retry-timeout on-system-error 10 retry-timeout on-client-error 10 retry-timeout on-server-error 10 ############################################################################# # Make sure your identity name is the same as your SIP username for voip.ms # ############################################################################# identity voipmssipusername authentication outbound ####################################################### # Change your username to match your voip.ms username # ####################################################### authenticate 1 authentication-service VOIPMS-AUTH username voipmssipusername registration outbound ######################################################################### # Change your registrar to whatever voip.ms proxy you are connecting to # ######################################################################### registrar dallas.voip.ms lifetime 300 register auto retry-timeout on-system-error 10 retry-timeout on-client-error 10 retry-timeout on-server-error 10 nat-traversal keep-alive 55 context sip-gateway SIPX-GW ############################################################################# # This defines the interface parameters for connecting to the sipX server. # # If you wish to do port 5060 SIP trunking you will need to change the port # # (and also change it in the gateway settings of sipX) # ############################################################################# interface SIPX-INT bind interface eth0 context router port 5060 context sip-gateway SIPX-GW no shutdown context sip-gateway VOIPMS-GW #################################################################### # This defines the interface parameters for connecting to voip.ms. # #################################################################### interface VOIPMS-INT ############################################################################## # If you want to use port 5060, simply change the port in interface SIPX-INT # ############################################################################## bind port 5080 ################################################## # You'll need to determine your own NAT settings # ################################################## spoofed nat-address auto context sip-gateway VOIPMS-GW ############################################################################################ # This binds the gateway to the voip.ms location service (used for registering to voip.ms) # ############################################################################################ bind location-service VOIPMS-LOCATION no shutdown port ethernet 0 0 medium auto encapsulation ip bind interface eth0 router no shutdown port ethernet 0 1 medium auto encapsulation ip bind interface eth1 router no shutdown port fxs 0 0 shutdown port fxs 0 1 shutdown port fxs 0 2 shutdown port fxs 0 3 shutdown port fxo 0 0 shutdown port fxo 0 1 shutdown port fxo 0 2 shutdown port fxo 0 3 shutdown