{"id":166,"date":"2009-07-08T23:48:08","date_gmt":"2009-07-08T22:48:08","guid":{"rendered":"http:\/\/simkin.org\/wordpress\/?p=166"},"modified":"2010-09-02T00:14:20","modified_gmt":"2010-09-01T23:14:20","slug":"cisco-7940-sipgate","status":"publish","type":"post","link":"http:\/\/simkin.org\/wordpress\/?p=166","title":{"rendered":"Cisco 7940 Sipgate &#038; Sonicwall"},"content":{"rendered":"<p>Got it working. NAT traversal was the challenge.Now My SIPGate status reads as (Cisco-CP7940G\/8.0 IP: sip:1111111@xxx.xxx.xxx.xxx:5060) where 1111111 is my user id and xxx.xxx.xxx.xxx is my external IP address for the phone.<\/p>\n<p>As the Cisco phones do not support STUN, it is easy to make them dial out and even receive calls but you only get to talk if you are dialling out. One-to-One NAT solved the problem for me. (The important commands are nat_enable : 1 and nat_address : xxx.xxx.xxx.xxx)<\/p>\n<p>For the sake of sanity for all those still struggling, here are my settings which I loaded using TFTPD32:<\/p>\n<p>On my sonicwall pro, one-to-one NAT is enabled between 10.1.1.99 and xxx.xxx.xxx.xxx, permit inbound: 5060 UDP for SIP signalling and SIP transformations turned on. No other ports left open<\/p>\n<p>Replace 111111 with your sipgate login<\/p>\n<p>Replace 222222 with your sipgate password<\/p>\n<p>Rename sipxxxx.cnf to match your phone mac address (eg. SIP000B46ABCD12.cnf)<\/p>\n<p>sipdefault.cnf:<\/p>\n<pre>;begin<\/pre>\n<pre>dhcp_server : Disabled<\/pre>\n<pre>my_ip_addr : 10.1.1.99<\/pre>\n<pre>subnet_mask : 255.255.255.0<\/pre>\n<pre>defaultgw : 10.1.1.1<\/pre>\n<pre>dyn_dns_addr_1 : 0.0.0.0<\/pre>\n<pre>dyn_dns_addr_2 : 0.0.0.0<\/pre>\n<pre>dns_addr : 208.67.220.220<\/pre>\n<pre>dns_backup_1: 208.67.222.222<\/pre>\n<pre>primary_tftp_addr : 10.1.1.20<\/pre>\n<pre>dyn_tftp_addr : 0.0.0.0<\/pre>\n<pre>domain_name : awebsite.org<\/pre>\n<pre>Status Flags : 12300001<\/pre>\n<pre>image_version : P0S3-8-12-00<\/pre>\n<pre>network_media_type : Auto<\/pre>\n<pre>network_port2_type : Hub\/Switch<\/pre>\n<pre>dscpForAudio : 184<\/pre>\n<pre>tftp_cfg_dir : \"\"<\/pre>\n<pre>phone_password : cisco<\/pre>\n<pre>phone_prompt : \"SIP Phone\"<\/pre>\n<pre>language : english<\/pre>\n<pre>sntp_mode : Unicast<\/pre>\n<pre>sntp_server : uk.pool.ntp.org<\/pre>\n<pre>time_zone : GMT<\/pre>\n<pre>dst_offset : 1<\/pre>\n<pre>dst_start_month : March<\/pre>\n<pre>dst_start_day : 29<\/pre>\n<pre>dst_start_day_of_week : Sun<\/pre>\n<pre>dst_start_week_of_month : 8<\/pre>\n<pre>dst_start_time : 01<\/pre>\n<pre>dst_stop_month : Oct<\/pre>\n<pre>dst_stop_day : 25<\/pre>\n<pre>dst_stop_day_of_week : Sun<\/pre>\n<pre>dst_stop_week_of_month : 8<\/pre>\n<pre>dst_stop_time : 02<\/pre>\n<pre>dst_auto_adjust : 1<\/pre>\n<pre>time_format_24hr : 1<\/pre>\n<pre>date_format : D\/M\/Y<\/pre>\n<pre>nat_enable : 1<\/pre>\n<pre>nat_address : 194.223.xxx.xxx ; my external IP address<\/pre>\n<pre>voip_control_port : 5060<\/pre>\n<pre>start_media_port : 16384<\/pre>\n<pre>end_media_port : 32766<\/pre>\n<pre>sync : \"1\"<\/pre>\n<pre>xml_card_dir : \"\"<\/pre>\n<pre>xml_card_file : \"CARD.XML\"<\/pre>\n<pre>telnet_level : 2<\/pre>\n<pre>services_url : \"\"<\/pre>\n<pre>directory_url : \"http:\/\/www.awebsite.org\/directory.xml\"<\/pre>\n<pre>logo_url : \"http:\/\/www.awebsite.org\/logo.bmp\"<\/pre>\n<pre>http_proxy_addr : UNPROVISIONED<\/pre>\n<pre>http_proxy_port : 80<\/pre>\n<pre>garp_enable : 0<\/pre>\n<pre>enable_vad : 0<\/pre>\n<pre>dial_template : \"dialplan\"<\/pre>\n<pre>callerid_blocking : 0<\/pre>\n<pre>anonymous_call_block : 0<\/pre>\n<pre>autocomplete : 1<\/pre>\n<pre>messages_uri : \"*97\"<\/pre>\n<pre>dnd_control : 0<\/pre>\n<pre>preferred_codec : g711ulaw<\/pre>\n<pre>dtmf_outofband : none<\/pre>\n<pre>dtmf_avt_payload : 101<\/pre>\n<pre>dtmf_db_level : 3<\/pre>\n<pre>dtmf_inband : 1<\/pre>\n<pre>call_manager1_addr : \"UNPROVISIONED\"<\/pre>\n<pre>call_manager2_addr : \"UNPROVISIONED\"<\/pre>\n<pre>call_manager3_addr : \"UNPROVISIONED\"<\/pre>\n<pre>call_manager1_sip_port : 5060<\/pre>\n<pre>call_manager2_sip_port : 5060<\/pre>\n<pre>call_manager3_sip_port : 5060<\/pre>\n<pre>call_manager5_addr : \"UNPROVISIONED\"<\/pre>\n<pre>call_manager5_sip_port : 5060<\/pre>\n<pre>call_manager4_addr : \"UNPROVISIONED\"<\/pre>\n<pre>call_manager4_sip_port : 0<\/pre>\n<pre>proxy1_address : \"sipgate.co.uk\"<\/pre>\n<pre>proxy2_address : \"\"<\/pre>\n<pre>proxy1_port : 5060<\/pre>\n<pre>proxy2_port : 5060<\/pre>\n<pre>sip_retx : 10<\/pre>\n<pre>sip_invite_retx : 6<\/pre>\n<pre>timer_t1 : 500<\/pre>\n<pre>timer_t2 : 4000<\/pre>\n<pre>timer_invite_expires : 180<\/pre>\n<pre>timer_register_expires : 3600<\/pre>\n<pre>proxy_register : 1<\/pre>\n<pre>proxy_backup : \"\"<\/pre>\n<pre>proxy_emergency : \"\"<\/pre>\n<pre>proxy_backup_port : 5060<\/pre>\n<pre>proxy_emergency_port : 5060<\/pre>\n<pre>outbound_proxy : sipgate.co.uk<\/pre>\n<pre>outbound_proxy_port : 5082<\/pre>\n<pre>nat_received_processing : 0<\/pre>\n<pre>call_waiting : 1<\/pre>\n<pre>user_info : none<\/pre>\n<pre>cnf_join_enable : 0<\/pre>\n<pre>remote_party_id : 1<\/pre>\n<pre>semi_attended_transfer : 0<\/pre>\n<pre>transfer_onhook_enabled : 0<\/pre>\n<pre>stutter_msg_waiting : 0<\/pre>\n<pre>call_stats : 1<\/pre>\n<pre>local_cfwd_enable : 1<\/pre>\n<pre>timer_register_delta : 5<\/pre>\n<pre>sip_max_forwards : 70<\/pre>\n<pre>rfc_2543_hold : 0<\/pre>\n<pre>version_stamp : \"\"<\/pre>\n<pre>timer_keepalive_expires : 120<\/pre>\n<pre>;end<\/pre>\n<p>sipxxxxxxx.cnf:<\/p>\n<pre>;begin<\/pre>\n<pre>phone_label: \"MY PHONE \"<\/pre>\n<pre>line1_name: 111111<\/pre>\n<pre>line1_authname: 111111<\/pre>\n<pre>line1_password: 222222<\/pre>\n<pre>line1_shortname: 111111<\/pre>\n<pre>line1_displayname: 111111<\/pre>\n<pre>line2_displayname: \u00e2\u20ac\u009d\u00e2\u20ac\u009d<\/pre>\n<pre>line2_shortname: \u00e2\u20ac\u009d\u00e2\u20ac\u009d<\/pre>\n<pre>line2_name: UNPROVISIONED<\/pre>\n<pre>line2_authname: \u00e2\u20ac\u009dUNPROVISIONED\u00e2\u20ac\u009d<\/pre>\n<pre>line2_password: \u00e2\u20ac\u009dUNPROVISIONED\u00e2\u20ac\u009d<\/pre>\n<pre>phone_password: cisco<\/pre>\n<pre>logo_url: \u00e2\u20ac\u009dhttp:\/\/www.mysite.com\/sipgate.bmp\u00e2\u20ac\u009d<\/pre>\n<pre>directory_url: \u00e2\u20ac\u009dhttp:\/\/www.mysite.com\/directory.xml\u00e2\u20ac\u009d<\/pre>\n<p>;end<\/p>\n<p>For those wanting the official view on writing a config, look <a href=\"http:\/\/www.cisco.com\/univercd\/cc\/td\/doc\/product\/voice\/c_ipphon\/sip7960\/sipadm22\/install.htm#93429\">here<\/a>.<\/p>\n<p>To know what all the parameters mean, look <a href=\"http:\/\/www.cisco.com\/en\/US\/docs\/voice_ip_comm\/cuipph\/7960g_7940g\/sip\/8_0\/english\/administration\/guide\/sipaxd80.html\">here<\/a>.<\/p>\n<p>Seems to work (<img src=\"http:\/\/onlinestatus.sipgate.net:8585\/e7\/e7c53833abca1ad253b9c9081f12a340\" alt=\"7888720\" \/>). Only trouble is that a valid BMP logo file delivered up by my trusty apache server will not display even though my XML directory works fine.<\/p>\n<p>And when you are ready to really start tweaking, start with <a href=\"http:\/\/tipsandtricks.nogoodatcoding.com\/2008\/06\/hacking-cisco-7940-ip-phone.html\">this guide<\/a>. Asterix users may prefer <a href=\"http:\/\/www.voip-info.org\/tiki-index.php?page=Asterisk+phone+cisco+79xx\">this link<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Got it working. NAT traversal was the challenge.Now My SIPGate status reads as (Cisco-CP7940G\/8.0 IP: sip:1111111@xxx.xxx.xxx.xxx:5060) where 1111111 is my &hellip; <a class=\"more-link\" href=\"http:\/\/simkin.org\/wordpress\/?p=166\">More<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3],"tags":[165,162,163,167,166],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/166"}],"collection":[{"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=166"}],"version-history":[{"count":0,"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/166\/revisions"}],"wp:attachment":[{"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=166"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=166"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/simkin.org\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=166"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}