Cisco 7940 Sipgate & Sonicwall

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.

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)

For the sake of sanity for all those still struggling, here are my settings which I loaded using TFTPD32:

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

Replace 111111 with your sipgate login

Replace 222222 with your sipgate password

Rename sipxxxx.cnf to match your phone mac address (eg. SIP000B46ABCD12.cnf)

sipdefault.cnf:

;begin
dhcp_server : Disabled
my_ip_addr : 10.1.1.99
subnet_mask : 255.255.255.0
defaultgw : 10.1.1.1
dyn_dns_addr_1 : 0.0.0.0
dyn_dns_addr_2 : 0.0.0.0
dns_addr : 208.67.220.220
dns_backup_1: 208.67.222.222
primary_tftp_addr : 10.1.1.20
dyn_tftp_addr : 0.0.0.0
domain_name : awebsite.org
Status Flags : 12300001
image_version : P0S3-8-12-00
network_media_type : Auto
network_port2_type : Hub/Switch
dscpForAudio : 184
tftp_cfg_dir : ""
phone_password : cisco
phone_prompt : "SIP Phone"
language : english
sntp_mode : Unicast
sntp_server : uk.pool.ntp.org
time_zone : GMT
dst_offset : 1
dst_start_month : March
dst_start_day : 29
dst_start_day_of_week : Sun
dst_start_week_of_month : 8
dst_start_time : 01
dst_stop_month : Oct
dst_stop_day : 25
dst_stop_day_of_week : Sun
dst_stop_week_of_month : 8
dst_stop_time : 02
dst_auto_adjust : 1
time_format_24hr : 1
date_format : D/M/Y
nat_enable : 1
nat_address : 194.223.xxx.xxx ; my external IP address
voip_control_port : 5060
start_media_port : 16384
end_media_port : 32766
sync : "1"
xml_card_dir : ""
xml_card_file : "CARD.XML"
telnet_level : 2
services_url : ""
directory_url : "http://www.awebsite.org/directory.xml"
logo_url : "http://www.awebsite.org/logo.bmp"
http_proxy_addr : UNPROVISIONED
http_proxy_port : 80
garp_enable : 0
enable_vad : 0
dial_template : "dialplan"
callerid_blocking : 0
anonymous_call_block : 0
autocomplete : 1
messages_uri : "*97"
dnd_control : 0
preferred_codec : g711ulaw
dtmf_outofband : none
dtmf_avt_payload : 101
dtmf_db_level : 3
dtmf_inband : 1
call_manager1_addr : "UNPROVISIONED"
call_manager2_addr : "UNPROVISIONED"
call_manager3_addr : "UNPROVISIONED"
call_manager1_sip_port : 5060
call_manager2_sip_port : 5060
call_manager3_sip_port : 5060
call_manager5_addr : "UNPROVISIONED"
call_manager5_sip_port : 5060
call_manager4_addr : "UNPROVISIONED"
call_manager4_sip_port : 0
proxy1_address : "sipgate.co.uk"
proxy2_address : ""
proxy1_port : 5060
proxy2_port : 5060
sip_retx : 10
sip_invite_retx : 6
timer_t1 : 500
timer_t2 : 4000
timer_invite_expires : 180
timer_register_expires : 3600
proxy_register : 1
proxy_backup : ""
proxy_emergency : ""
proxy_backup_port : 5060
proxy_emergency_port : 5060
outbound_proxy : sipgate.co.uk
outbound_proxy_port : 5082
nat_received_processing : 0
call_waiting : 1
user_info : none
cnf_join_enable : 0
remote_party_id : 1
semi_attended_transfer : 0
transfer_onhook_enabled : 0
stutter_msg_waiting : 0
call_stats : 1
local_cfwd_enable : 1
timer_register_delta : 5
sip_max_forwards : 70
rfc_2543_hold : 0
version_stamp : ""
timer_keepalive_expires : 120
;end

sipxxxxxxx.cnf:

;begin
phone_label: "MY PHONE "
line1_name: 111111
line1_authname: 111111
line1_password: 222222
line1_shortname: 111111
line1_displayname: 111111
line2_displayname: ””
line2_shortname: ””
line2_name: UNPROVISIONED
line2_authname: ”UNPROVISIONED”
line2_password: ”UNPROVISIONED”
phone_password: cisco
logo_url: ”http://www.mysite.com/sipgate.bmp”
directory_url: ”http://www.mysite.com/directory.xml”

;end

For those wanting the official view on writing a config, look here.

To know what all the parameters mean, look here.

Seems to work (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.

And when you are ready to really start tweaking, start with this guide. Asterix users may prefer this link.

Leave a Reply