{"id":236,"date":"2010-05-06T17:03:53","date_gmt":"2010-05-06T04:03:53","guid":{"rendered":"http:\/\/chillingsilence.wordpress.com\/?p=236"},"modified":"2010-05-06T17:03:53","modified_gmt":"2010-05-06T04:03:53","slug":"using-the-patton-sn4554-for-isdn-with-elastix","status":"publish","type":"post","link":"http:\/\/www.c2s.co.nz\/blog\/using-the-patton-sn4554-for-isdn-with-elastix\/","title":{"rendered":"Using the Patton SN4554 for ISDN with Elastix"},"content":{"rendered":"<div class=\"8781ca4f97038dd0d58a1ad8af045721\" data-index=\"3\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<script type=\"text\/javascript\"><!--\r\ngoogle_ad_client = \"ca-pub-6411751809866006\";\r\n\/* BlogHorizontalSlim *\/\r\ngoogle_ad_slot = \"6442664612\";\r\ngoogle_ad_width = 468;\r\ngoogle_ad_height = 60;\r\n\/\/-->\r\n<\/script>\r\n<script type=\"text\/javascript\"\r\nsrc=\"http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js\">\r\n<\/script>\n<\/div>\n<p>For any business migrating to SIP, the Patton SN4554 is a brilliant way to bring two ISDN lines (4-channels) in to their new PBX system, especially considering you don&#8217;t have to break open your PBX Server to install a PCI card.<\/p>\n<p>This basic How-To shows you how to set it up to work with your Elastix system:<br \/>\n<!--more--><\/p>\n<p>First off, you&#8217;ll want the following config which is a bit of a mash-up from some other documentation on making it work with an Aastra 800 (Include the header):<\/p>\n<pre>#----------------------------------------------------------------#\n#                                                                #\n# Template for SN4554\/2BIS\/UI to use with Elastix                #\n# Use with firmware R5.1 or higher                               #\n#                                                                #\n# This template uses dhcp to retrieve an IP address. Comments in #\n# the file indicate what to change (Start with '#')              #\n#                                                                #\n# See the SmartWare Software Configuration guide for command     #\n# details (http:\/\/www.patton.com\/manuals\/SCG-r52.pdf)            #\n# Modified by Josiah Spackman\u00c2\u00a0                                   #\n# http:\/\/chillingsilence.wordpress.com                           #\n#----------------------------------------------------------------#\n\ncli version 3.20\nwebserver port 80 language en\n\nsystem\n\n  ic voice 0\n    low-bitrate-codec g711alaw64k\n\nsystem\n  clock-source 1 bri 0 0\n  clock-source 2 bri 0 1\n\nprofile ppp default\n\nprofile tone-set default\n\nprofile voip default\n  codec 1 g711alaw64k rx-length 20 tx-length 20\n  codec 2 g711ulaw64k rx-length 20 tx-length 20\n  fax transmission 1 relay t38-udp\n\nprofile pstn default\n\nprofile sip default\n\nprofile aaa default\n  method 1 local\n  method 2 none\n\ncontext ip router\n\n  interface IF_IP_WAN\n# replace 'dhcp' with your fix IP if needed, e.g. \"ipaddress 172.16.1.20 255.255.0.0\"\n    ipaddress dhcp\n    tcp adjust-mss rx mtu\n    tcp adjust-mss tx mtu\n\ncontext ip router\n# uncomment the following line if you need to add routing table entries\n  # route 0.0.0.0 0.0.0.0 172.16.1.1\n\ncontext cs switch\n  national-prefix 0\n  international-prefix 00\n\n  routing-table called-e164 RT_ISDN_TO_SIP\n# 'T' in the following lines specifies \"digit collection\". The time for collection can be adjusted replacing 'T' wih 'T2' for 2 seconds.\n    route T dest-interface IF_SIP\n\n  routing-table calling-e164 RT_SIP_TO_ISDN\n    route default dest-service SV_HUNT_PSTN MP_Unknown-Subscriber\n\n# This mapping table sets the ISDN type of number for calls towards ISDN to 'subscriber'\n  mapping-table calling-e164 to calling-type-of-number MP_Unknown-Subscriber\n    map default to subscriber\n\n  interface isdn IF_ISDN_0\n    route call dest-table RT_ISDN_TO_SIP\n\n  interface isdn IF_ISDN_1\n    route call dest-table RT_ISDN_TO_SIP\n\n  interface sip IF_SIP\n    bind context sip-gateway GW_SIP\n    route call dest-table RT_SIP_TO_ISDN\n# This is the IP of your Asterisk. Replace with domain name if DNS server is available\n    remote 192.168.0.250\n\n  service hunt-group SV_HUNT_PSTN\n    drop-cause normal-unspecified\n    drop-cause no-circuit-channel-available\n    drop-cause network-out-of-order\n    drop-cause temporary-failure\n    drop-cause switching-equipment-congestion\n    drop-cause access-info-discarded\n    drop-cause circuit-channel-not-available\n    drop-cause resources-unavailable\n    route call 1 dest-interface IF_ISDN_0\n    route call 2 dest-interface IF_ISDN_1\n\ncontext cs switch\n  no shutdown\n\n# The parameters realm, username and password have to match your Asterisk configuration\nauthentication-service AUTH_AASTRA800\n  realm 1 smartnode-gw\n  username patton password 6953789\n\n# The parameters domain, username, identity (=username) below have to match your Aastra800 configuration\nlocation-service LS_AASTRA800\n  domain 1 smartnode-gw\n\n  identity-group default\n\n    authentication inbound\n      authenticate 1 authentication-service AUTH_AASTRA800 patton 6953789\n\n  identity 6953789\n\n    authentication inbound\n      authenticate 1 authentication-service AUTH_AASTRA800 patton 6953789\n\n    registration inbound\n\ncontext sip-gateway GW_SIP\n\n  interface WAN\n    bind interface IF_IP_WAN context router port 5060\n\ncontext sip-gateway GW_SIP\n  bind location-service LS_AASTRA800\n  no shutdown\n\nport ethernet 0 0\n  medium auto\n  encapsulation ip\n  bind interface IF_IP_WAN router\n  no shutdown\n\nport bri 0 0\n  clock auto\n  encapsulation q921\n\n  q921\n    protocol pp\n    uni-side auto\n    encapsulation q931\n\n    q931\n      protocol dss1\n      uni-side user\n      bchan-number-order ascending\n      encapsulation cc-isdn\n      bind interface IF_ISDN_0 switch\n\nport bri 0 0\n  no shutdown\n\nport bri 0 1\n  clock auto\n  encapsulation q921\n\n  q921\n    protocol pp\n    uni-side auto\n    encapsulation q931\n\n    q931\n      protocol dss1\n      uni-side user\n      bchan-number-order ascending\n      encapsulation cc-isdn\n      bind interface IF_ISDN_1 switch\n\nport bri 0 1\n  no shutdown<\/pre>\n<p>Copy this all into a notepad window and save it as &#8220;SN4554.cfg&#8221;<\/p>\n<p>What you&#8217;re going to want to modify is the references to &#8220;192.168.0.250&#8221; and point it to your Elastix \/ Asterisk system.<\/p>\n<p>All the ISDN ports are set to &#8220;Point-to-Point&#8221;. You can adjust the &#8220;pp&#8221; settings to &#8220;pmp&#8221; if you require &#8220;Point-to-Multipoint&#8221;, though to be honest ISDN isn&#8217;t my strong point so I&#8217;m not entirely sure how relevant that is.<\/p>\n<p>This will leave the WAN port using DHCP, hopefully you&#8217;ve got a semi-intelligent DHCP server that will give out the same IP each time.<\/p>\n<p>Open the WebGUI of your SN4554 up, login with the default Username &#8220;administrator&#8221; and a blank password.<\/p>\n<p>Click on &#8220;Import \/ Export&#8221; on the left-hand side, then hit the Import Configuration tab.<\/p>\n<p>Select the file, import it, then reload the device.<\/p>\n<p>Now, in asterisk you want to add a new SIP trunk. Name it &#8220;ISDN&#8221; and put the following in the SIP PEER Details:<\/p>\n<pre>username=patton\ntype=friend\nsecret=6953789\nqualify=1200\ninsecure=very\nhost=192.168.0.141\ndtmfmode=RFC2833\ndisallow=all\ncontext=from-pstn\ncanreinvite=no\nallow=alaw&amp;g729<\/pre>\n<p>There&#8217;s no register string or USER details, though it may be worth specifying the max channels as &#8220;4&#8221;.<\/p>\n<p>You&#8217;ll need to adjust the &#8220;host&#8221; setting to the WAN IP Address of your Patton box, as we&#8217;re semi-insecure with such a basic password.<\/p>\n<p>You *could* adjust the password and username in the config etc as applicable, but specifying the host should be enough, especially considering (in my instance) the whole system is LAN-accessible only.<\/p>\n<p>When you&#8217;re finished, you should be able to login to your Elastix system via SSH and run:<\/p>\n<p>asterisk -rx &#8216;sip show peers&#8217;<\/p>\n<p>And see:<\/p>\n<p>ISDN\/patton \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0192.168.0.141 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a0N \u00c2\u00a0 \u00c2\u00a0 \u00c2\u00a05060 \u00c2\u00a0 \u00c2\u00a0 OK (19 ms)<\/p>\n<p>If you do, congratulations, you&#8217;re ready to go!<\/p>\n<p>Now you just need to setup inbound and outbound routes as applicable.<\/p>\n<p>If this was useful to you, please leave a comment and say hi.<\/p>\n<p>I&#8217;d also like to thank Byron from SnapperNet in New Zealand, he&#8217;s been such a great help, and also provided me with the initial configuration samples.<\/p>\n<p>This How-To has also been re-posted here: http:\/\/blogs.elastix.org\/en\/2010\/05\/using-the-patton-sn4554-for-isdn-with-elastix\/<\/p>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>For any business migrating to SIP, the Patton SN4554 is a brilliant way to bring two ISDN lines (4-channels) in to their new PBX system, especially considering you don&#8217;t have to break open your PBX Server to install a PCI card. This basic How-To shows you how to set it up to work with your [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[3,4],"tags":[55,99,137,161],"class_list":["post-236","post","type-post","status-publish","format-standard","hentry","category-elastix-org-blog","category-how-tos-guides-tech-info","tag-elastix","tag-isdn","tag-patton","tag-sn4554"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pWi3e-3O","_links":{"self":[{"href":"http:\/\/www.c2s.co.nz\/blog\/wp-json\/wp\/v2\/posts\/236","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.c2s.co.nz\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.c2s.co.nz\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.c2s.co.nz\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.c2s.co.nz\/blog\/wp-json\/wp\/v2\/comments?post=236"}],"version-history":[{"count":0,"href":"http:\/\/www.c2s.co.nz\/blog\/wp-json\/wp\/v2\/posts\/236\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.c2s.co.nz\/blog\/wp-json\/wp\/v2\/media?parent=236"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.c2s.co.nz\/blog\/wp-json\/wp\/v2\/categories?post=236"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.c2s.co.nz\/blog\/wp-json\/wp\/v2\/tags?post=236"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}