Setup of Cisco 7940g [Fixed!]

Here you can post your own working configurations of hardware or software to share with other users who may be using the same device!
Fongo recommends Fongo Home Phone for a fully supported Home Phone system for only $4.95/mo
Forum rules
DISCLAIMER
This forum is for those users who have already purchased a configuration file with the SIP settings needed to configure any SIP compatible device.

1. Please use this forum only as a means to share your configuration advice and guides for ATA devices and SIP clients that you are using with our service.
2. For any questions relating to device configuration, please use the other forum sections or post your question directly in the device topic that your question is meant for.
3. Please title your topics with only the name and model of your device so users can easily find the information they need.
4. Preferable format for posting here is compressing your screenshots of your successfully configured device into a .zip file, and post a brief description of the configuration.

Please stay on topic

Setup of Cisco 7940g [Fixed!]

Postby ndroo » 02/07/2011

So this is a bit of a "how to" (i did get it to work...yay!) and a "help me" (see the bottom for the help me)

I have a Cisco 7940G IP phone. Love it, its great...all good. I'm not sure if this is the only let alone the best way to do this, but this is how i got mine to work with freephoneline.ca

1. Install atftpd on ubuntu
sudo apt-get install atftpd

2. place the config files for the Cisco 7940G in /srv/tftp/ on the pc running tftp

(this is whats in my /srv/tftp/ directory)
4 -rw-r--r-- 1 root root 65 2011-02-07 21:01 dialplan.xml
4 -rw-r--r-- 1 root root 13 2011-02-07 21:06 OS79XX.txt
4 -rw-r--r-- 1 root root 12 2011-02-07 21:07 RINGLIST.DAT
4 -rw-r--r-- 1 root root 708 2011-02-07 21:04 SIP000CCE3523A9.cnf ** this one is important, its the settings for the specific phone
4 -rw-r--r-- 1 root root 884 2011-02-07 20:57 SIPDefault.cnf
4 -rw-r--r-- 1 root root 455 2011-02-07 21:15 xmlDefault.CNF.XML

you can download a zip file with my config files in it here http://mouseofdoom.com/sip/config.zip . Note you'll have to add your SIP user/password to the SIP000CCE3523A9.cnf file (i removed mine...duh) and also rename this file to SIP<<MAC_ADDRESS_OF_YOUR_PHONE>>.cnf or it wont apply to that device as it boots.

3. Jumped onto the phone, and in the "Network configuration" menu i set the "TFTP server" to the IP of the machine running TFTP.

*** if at this point you're not sure what tftp is (google define it like i did...and) you're like me before step. Its essentially FTP without authentication, you can run IP black lists to offer some protection, but its intended to be run on a trusted network so...yep ***

4. Open a bunch of ports that the phone requires (so its also a good idea to have your phone on a static IP, not DHCP, again with the "network configuration" menu):

1 SIPPROXY UDP 5060
2 SIPSIG UDP 5004
3 VoiceCom UDP 8000 ~ 8019
4 STUN UDP 10000
5 STUN_TCP TCP/UDP 3478

5. Restart the router

6. restart the phone

7. make phone calls

It sounds pretty simple, but it took me 2 hrs to figure it out the first time. Only issue i have now, and im not sure if its free phone line or a setup issue...i cant get inbound calls, but the phone work perfectly for outbound calls. Some (like my father) would call this ideal...however its not what i wanted. So i have a support ticket open with free phone line right now, if it turns out its their end i'll update you...if not...ill also update you :-)
ndroo
Just Passing Thru
 
Posts: 4
Joined: 02/07/2011
SIP Device Name: Cisco 7940g

Re: Setup of Cisco 7940g

Postby ndroo » 02/09/2011

so i managed to fix the inbound call issue.

in SIPDefault.cnf there are the folllowing lines
Code: Select all
nat_enable: 1 ; 0-Disabled (default), 1-Enabled
nat_address: "" ; WAN IP address of NAT box (dotted IP or DNS A record only)

silly me didnt think to fill in nat_address. Issue is my IP is dynamic, so you need to use ddns here.

I signed @ https://www.dyndns.com/account/services/hosts/add.html and created a host of myaddress.dynamicdns.com and then updated the code to use that host name. Saved the file, rebooted the phone and hey presto we're now getting inbound calls.

so the code now looks like...
Code: Select all
nat_enable: 1 ; 0-Disabled (default), 1-Enabled
nat_address: "myaddress.dyanmicdns.com" ; WAN IP address of NAT box (dotted IP or DNS A record only)


from there i wanted to make sure ddns has an up to date record of my IP, so i installed ddclient on my ubuntu serve which sits on my local network...and now we're good.
ndroo
Just Passing Thru
 
Posts: 4
Joined: 02/07/2011
SIP Device Name: Cisco 7940g

Re: Setup of Cisco 7940g [Fixed!]

Postby OverDrive » 02/10/2011

If you had a router with DYNDNS update ability, like DD-WRT or other firmware, you can have the router do the updates vs ubuntu. Either way it accomplishes the task.
Adam Marshall
AJ Tek
OverDrive
Lightly Seasoned
 
Posts: 151
Joined: 06/09/2010
SIP Device Name: SPA3102
Firmware Version: 5.2.13(GW002)
ISP Name: Start Communications (off Cogeco)
Computer OS: 8
Router: TP-Link TL-WR1043ND (DD-WRT)

Re: Setup of Cisco 7940g [Fixed!]

Postby rhaddad » 11/23/2011

The SIP000CCE3523A9.cnf that you have is it .xml or not?
rhaddad
Just Passing Thru
 
Posts: 3
Joined: 11/18/2011
SIP Device Name: Cisco 7961G-GE
Firmware Version: SIP41.8-5-3S.loads
ISP Name: Rogers, Cable
Computer OS: Windows
Router: LinkSys WRT120N

Re: Setup of Cisco 7940g [Fixed!]

Postby tbrummell » 11/24/2011

rhaddad wrote:The SIP000CCE3523A9.cnf that you have is it .xml or not?

The Cisco cnf files are flat text files, not xml.
tbrummell
Tried and True
 
Posts: 330
Joined: 09/21/2010
Location: Ottawa
SIP Device Name: PIAF/Mitel/PolyCom/Cisco
Firmware Version: Asterisk 1.8
ISP Name: Rogers
Computer OS: CentOS/Windows2008/Win7/Android
Router: pfSense/Neoware thin client

Re: Setup of Cisco 7940g [Fixed!]

Postby rrai12 » 01/24/2012

I need a bit of help here.

Do you connect CISCO - 7940G to router or the computer or the ATA Adapter?

Where you do installation of the above files? On the computer. I assume.

Where does the ethernet cable from 7940g will go to?

Pretty basic questions but I am doing this first time.
rrai12
Just Passing Thru
 
Posts: 2
Joined: 12/11/2011
SIP Device Name: LINKSYS-PAP2T
Firmware Version: 5.1.06
ISP Name: BELL DSL
Computer OS: Windows XP
Router: Bell 2 Wire

Re: Setup of Cisco 7940g [Fixed!]

Postby sipconfig » 02/09/2012

it works for a single sip phone behind the NAT router (we are not talking about a costly so called 'sip aware' router/firewall...), with multiple sip phones (cisco 79xxs which has no STUN function) , this config does not work (even though you choose different ports segent for RTP traffic for each phones, in your config is 8000=8012...)

Anybody has any ideas?
sipconfig
One Hit Wonder
 
Posts: 1
Joined: 02/09/2012
SIP Device Name: CISCO 7940G
Firmware Version: 8.12
ISP Name: CABLE

Re: Setup of Cisco 7940g [Fixed!]

Postby bigg3522 » 06/05/2012

Hey, I did exactly this setup, forwarded those ports, the only difference is I am using port 5063 as opposed to 5060. No dice, can't even make outgoing calls. My router supports DYNDNS, it's address is setup and updated correctly and inserted into the config. Fast busy when I try and make an outgoing call. The phone is picking up the TFTP config, and I downloaded the same firmware as in the config, and the phone updates it correctly.

Any Ideas?
bigg3522
Just Passing Thru
 
Posts: 17
Joined: 10/03/2010
Location: BC - Canada
SIP Device Name: Grandstream GXP2120
Firmware Version: 1.0.3.30
ISP Name: TELUS
Computer OS: OSX 10.8.2
Router: E4200
Smartphone Model: iPhone 5
iOS Version: 6.0.2


Return to Device Configuration Sharing

Who is online

Users browsing this forum: No registered users and 10 guests