SUGGESTIONS Cisco 7970 Treasure Trove

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
I actually loved my 7970. But, come on. The water torture that's required to get the thing functional is unbelievable. Given the lengths to which Cisco has gone to document all of their hardware and software (down to the type of screw in many cases), one can only assume that there has been a conscious management decision to cripple the SIP implementation and keep it that way forever. On that front, they've done an excellent job. :cool:
 

walker_jr

New Member
Joined
Dec 29, 2008
Messages
82
Reaction score
0
Actually in the experience I had, as I said I felt much more to blame than Cisco. It's pretty easy to get it to work if you know what you're doing (I just didn't).

I'm not a Cisco fan by any means - I've got a global network of their routers whose P&L I'm responsable for - but their phones are great bits of kit once they work.
 

walker_jr

New Member
Joined
Dec 29, 2008
Messages
82
Reaction score
0
So here's an abbreviated summary of everything I did to get my phones working on SCCP (without the trial and error!). I'm putting it here so people don't have to go through the last 30-40 messages, and I have a reference in case I ever need to do it again.

1. Install PiaF. Asterisk version 1.2 or 1.4 seems to work fine.
2. ssh into your Piaf box. You will need to be logged in as root.
3. Get the chan_sccp_b driver. Do not be tempted to use the latest version, since it doesn't seem to work (at least with 7965s).
Code:
[/COLOR]
wget [URL]http://superb-west.dl.sourceforge.net/sourceforge/chan-sccp-b/chan_sccp_20071213.tar.gz[/URL]
4. Untar and unzip the source code.
Code:
tar xzvf chan_sccp_20071213.tar.gz
5. Change into the directory.
Code:
cd chan_sccp-20071213
6. Compile the driver. You can enable the features you like during this process. You will get some errors at the end of the process, this is OK.
Code:
make clean
make install
7. Now edit the Asterisk modules list to run the driver. Use "nano -w" so that it doesn't wrap long lines.
Code:
nano -w /etc/asterisk/modules.conf
8. Find the autoload=yes line. Somewhere below this, make sure you have
Code:
noload => chan_skinny.so
load=> chan_sccp.so
and then use ctrl-X, save the file, and exit.
9. Set up the sccp.conf file. I have attached one below which you can edit to suit your local setup.
Code:
nano -w /etc/asterisk/sccp.conf
and then use ctrl-X to save the file and quit.
10. For each "line" defined in the sccp.conf, define a custom extension in FreePBX. Fill in the extension number and the name, then in the dial field put SCCP/200 (or whatever your extension number is).
11. Set up DHCP so you can offer option 150 (which tells the phone where your t*f*t*p server is). If you have an existing DHCP server on your LAN, it needs to be turned off.
Code:
yum install dhcp
then
Code:
nano -w /etc/dhcpd.conf
In this file, you'll need to put in some information about your network. I have included a sample of what needs to go in in an attachment below.
ctrl-X to write the file and quit.
13. Start the DHCP server, and check to see if anything went wrong.
Code:
/etc/init.d/dhcpd start
tail /var/log/messages
14. Make sure the DHCP server runs after a reboot.
Code:
chkconfig --level 2345 dhcpd on
chkconfig --level 016 dhcpd off
15. Set up t*f*t*p.
Code:
setup-t*f*t*p
should work, if not :
Code:
[FONT=Courier New]yum -y install t*f*t*p-server[/FONT]
[FONT=Courier New]/sbin/chkconfig --level 345 xinetd on[/FONT]
[FONT=Courier New]/sbin/chkconfig --level 345 t*f*t*p on[/FONT]
[FONT=Courier New]service xinetd restart[/FONT]
If you want to enable logging so you can see what files are being requested by the phone :
Code:
cd /etc/xinetd.d
nano -w t*f*t*p
Edit the file so that -vv is added onto the line :
Code:
server_args = -s /tftpboot -vv
ctrl-X, save the file, then restart tftpd :
Code:
/etc/init.d/xinetd restart
Reverse the process once you've got the phone working to turn off logging.
The logging will be written to /var/log/messages.
16. Generate an ssh public key for accessing the phones.
Code:
ssh-keygen -b 1024 -t rsa -C default@cisco
mv id_rsa.pub /tftpboot/authorized_keys
17. Change to the t*f*t*p directory.
Code:
cd /tftpboot
18. Create the SEPMAC.cnf.xml file for your phone. The MAC address for your phone should be on a sticker on the bottom. I have included a sample file below. You may want to change things like the timezone (a full list is here : http://www.voip-info.org/wiki/view/Asterisk+phone+cisco+7970+SIP) and the date format - you can do things like M/D/Y, D-M-Y, D.M.Ya (the a makes the phone show 12 hour instead of 24 hour time) and so on.
Code:
[COLOR=black]nano -w SEP<your MAC address>.cnf.xml[/COLOR]
ctrl-X and write changes.
19. Restart Asterisk.
Code:
amportal restart
20. Turn on (or plug in) your phone(s). You may need to reset the phones - press the settings key (a checkbox with a tick in it on mine) and then press **#**. This should make the phone download a new configuration file.
21. Note that you should not need various other files suggested in other guides such as xmldefault.cnf.xml, OS79XX.TXT, DIALPLAN.XML etc.

Troubleshooting

If something goes wrong, you should check the Asterisk log, perhaps filtering on SCCP :
Code:
cat /var/log/asterisk/full | grep sccp | more
... the main system log ...
Code:
more /var/log/messages
... and (as a last resort, or for checking for SEPMAC.cnf.xml parsing errors), the phone logs :
Code:
ssh <your phone's ip address>
login : cisco
pass : password
then
Code:
user : default
pass : user
(Yes, there are two login/password combinations you need to do in sequence.) From there, the log files are in /var, numbered in sequence.

If you've got any suggestions for things I should add, please let me know.

Thanks to (amongst others) gdchongris for his original guide, TomS for the t*f*t*p logging information, Johnny Hughes at linuxhelp for the DHCP information, and tabbertmj for all his help along the way.
 

Attachments

  • dhcpd.conf.txt
    1.2 KB · Views: 46
  • SEPXXXXXXXXXX.cnf.xml.txt
    2.4 KB · Views: 102
  • sccp.conf.txt
    13.3 KB · Views: 90

granny

New Member
Joined
Mar 13, 2009
Messages
14
Reaction score
0
Thanks for the guide, but I still have an issue with my 7945G not parsing the config. Has anyone seen this error?

NOT 17:40:07.979469 tftpClient: Non secure file approved -- SEP0021A085C029.cnf.xml
NOT 17:40:07.987128 t*f*t*p: [22]:Requesting SEP0021A085C029.cnf.xml from 192.168.1.12
NOT 17:40:08.001039 t*f*t*p: [22]:Finished --> rcvd 2618 bytes ERR 17:40:08.165208 JVM: Startup Module Loader|cip.xml.an: - XML Parser Exception: Attribute '/device' : String too long: length is 17, max length = 16 (line=1) ERR 17:40:08.166886 JVM: Startup Module Loader|cip.cfg.r:? - ERROR PARSING CONFIG file:scratchpad/SEP0021A085C029.cnf.xml
NOT 17:40:08.188641 SECD: setSecMode: sec mode set to NONE (was NONE)
NOT 17:40:08.236285 JVM: Startup Module Loader|cip.cfg.r:? - DELETE ConfigFile:(scratchpad/SEP0021A085C029.cnf.xml)WAS SUCCESSFUL WRN 17:40:08.279338 SECD: WARN:lookupCTL: ** no CTL, assume CCM 0.0.0.0 NONSECURE
WRN 17:40:08.313819 JVM: Startup Module Loader|NetUtil.getHostByName:? - DNS Unknown Host CISCO-E665B14CB
WRN 17:40:08.316512 SECD: WARN:lookupCTL: ** no CTL, assume CCM 192.168.1.12 NONSECURE


Thanks for helping out!
 

walker_jr

New Member
Joined
Dec 29, 2008
Messages
82
Reaction score
0
No, I haven't... what version of the SCCP firmware is your phone running?
 

tabbertmj

Member
Joined
Jul 23, 2008
Messages
176
Reaction score
0
I wonder if the firmware for CCM 5.1 is on the phone. I think the firmware uses signed config files.
 

walker_jr

New Member
Joined
Dec 29, 2008
Messages
82
Reaction score
0
Fresh back from holidays, I was disappointed that I still couldn't use speed dial keys and whatnot on my 7965s because I was using the 2007 version of chan_sccp-b. So I installed the latest SVN (branch v3_1), compiled, installed, and everything works great. So good news there.

I also had a wrestle with Babelfish and http://www.ip-phone-forum.de/showthread.php?t=152928 to try to get an idea what is going on in the new versions, but it's not terribly clear. Any German speakers here?
 

tel0p

Guru
Joined
Nov 20, 2007
Messages
195
Reaction score
0
@Granny
Is your config file in a sub-folder of /tftpboot called scratchpad? If so, why? Maybe that's causing the parse error? All my configs (SIP/SCCP) for my Cisco's are in /tftpboot

String too long: length is 17, max length = 16 (line=1) ERR 17:40:08.166886 JVM: Startup Module Loader|cip.cfg.r:? - ERROR PARSING CONFIG file:scratchpad/SEP0021A085C029.cnf.xml
 

walker_jr

New Member
Joined
Dec 29, 2008
Messages
82
Reaction score
0
Looking at the other thread this user opened it looks like the issue is resolved (and the long silence tends to imply so as well). At least I hope so.

If I remember correctly the "scratchpad" is the area inside the phone it puts the config files it retrieves via t*f*t*p on boot.
 

gaijin

Guru
Joined
Nov 16, 2007
Messages
170
Reaction score
0
Just a quick note:
The parameter:
trnsfvm =
seems to be used to configure the "Idivert" or instant divert softkey.
Leaving it as *97 seems silly, a better bet might be to use: *xxx (where xxxx is your extension number - so the caller can leave a message) or alternatively simply another extension in your office...
 

granny

New Member
Joined
Mar 13, 2009
Messages
14
Reaction score
0
@Granny
Is your config file in a sub-folder of /tftpboot called scratchpad? If so, why? Maybe that's causing the parse error? All my configs (SIP/SCCP) for my Cisco's are in /tftpboot

The file was in tftpboot, but thanks for the tip!
 

granny

New Member
Joined
Mar 13, 2009
Messages
14
Reaction score
0
Looking at the other thread this user opened it looks like the issue is resolved (and the long silence tends to imply so as well). At least I hope so.

Yep it's solved. But as mentioned, I'm far from experienced in this stuff :smile5: .

Achievements so far for Granny in PBXland:
- VMWare ESXi installation on a Dell Poweredge
- PiAF running without the typical vmware issues
- Cisco phone working.

Still to do:
- Finding out how to finetune the phone (webaccess/ssh/options/backgrounds etc )
- Figuring out how to do an upgrade of the phone without the use of Cisco Call Manager
- Playing around with the features of PiAF

Thanks again to everyone who helped me through the initial difficulties!
 

walker_jr

New Member
Joined
Dec 29, 2008
Messages
82
Reaction score
0
Background change is easy.
  1. Create a new directory in /tftpboot called Desktops.
  2. cd to the new directory.
  3. Create a new directory called
    1. 320x212x16 (if you have a new colour phone) or
    2. 320x212x12 (if you have an older colour phone) or
    3. 320x192x4 (if you have a grayscale phone)
  4. In this new directory, place the new wallpaper files. They should be in PNG format in the pixel dimensions and colour depth implied by the directory name above, and you should have one full size picture and one 25% of the size for each wallpaper.
  5. Create a file called List.xml, whose format is given below. Modify as appropriate for your situation.
Code:
<CiscoIPPhoneImageList>
<ImageItem Image="t*f*t*p:Desktops/320x212x16/pic1small.png"
           URL="t*f*t*p:Desktops/320x212x16/pic1big.png"/>
<ImageItem Image="t*f*t*p:Desktops/320x212x16/pic2small.png"
           URL="t*f*t*p:Desktops/320x212x16/pic2big.png"/>
<ImageItem Image="t*f*t*p:Desktops/320x212x16/pic3small.png"
           URL="t*f*t*p:Desktops/320x212x16/pic3big.png"/>
</CiscoIPPhoneImageList>

Go into the phone's settings, select User Preferences, then Background Images. You can then select and save the background you want.

Upgrading the firmware is also easy.
  1. Unzip the new firmware file into /tftpboot.
  2. Unplug the phone.
  3. Plug it in again.
  4. Immediately press and hold down the # key until the line buttons flash in sequence.
  5. Press 1 2 3 4 5 6 7 8 9 * 0 # within 60 seconds.
  6. The phone should boot up and retrieve the new firmware, and upgrade.
Please note it's not a good situation if you invoke this sequence but don't have a valid firmware for it to upgrade to, since it goes into a loop of trying to find the firmware, then rebooting.

I have information on how to get ssh working on the phones in my long post a couple of pages ago.
 

granny

New Member
Joined
Mar 13, 2009
Messages
14
Reaction score
0
Nothing changed, 7945g no longer registering?

An issue popped up today. I discovered that my Cisco phone no longer registers itself to the PiaF server.
The strange thing is that nothing was modified on the server, or in the configs in the last few weeks.

If I look in the phone log, there are 5 lines:
23:57:10 Error updating Locale
23:57:10 Error updating Locale
23:57:08 SEP0021A085C029.cnf.XML
23:57:08 No CTL installed
23:57:08 File Not Found:CTLFile.tlv

And these errors show up in the messages log on the server:
Jun 6 23:42:07 pbx dhcpd: DHCPRELEASE of 192.168.1.129 from 00:21:a0:85:c0:29 (SEP0021A085C029) via eth0 (found)
Jun 6 23:42:11 pbx dhcpd: DHCPREQUEST for 192.168.1.129 from 00:21:a0:85:c0:29 via eth0
Jun 6 23:42:11 pbx dhcpd: DHCPACK on 192.168.1.129 to 00:21:a0:85:c0:29 (SEP0021A085C029) via eth0
Jun 6 23:42:11 pbx dhcpd: DHCPREQUEST for 192.168.1.129 from 00:21:a0:85:c0:29 (SEP0021A085C029) via eth0
Jun 6 23:42:11 pbx dhcpd: DHCPACK on 192.168.1.129 to 00:21:a0:85:c0:29 (SEP0021A085C029) via eth0
Jun 6 23:42:11 pbx in.tftpd[4286]: RRQ from 192.168.1.129 filename CTLSEP0021A085C029.tlv
Jun 6 23:42:11 pbx in.tftpd[4286]: sending NAK (1, File not found) to 192.168.1.129
Jun 6 23:42:11 pbx in.tftpd[4287]: RRQ from 192.168.1.129 filename SEP0021A085C029.cnf.xml
Jun 6 23:42:12 pbx in.tftpd[4288]: RRQ from 192.168.1.129 filename English_United_States/be-sccp.jar
Jun 6 23:42:12 pbx in.tftpd[4288]: sending NAK (1, File not found) to 192.168.1.129
Jun 6 23:42:12 pbx in.tftpd[4289]: RRQ from 192.168.1.129 filename United_States/g3-tones.xml
Jun 6 23:42:12 pbx in.tftpd[4289]: sending NAK (1, File not found) to 192.168.1.129
Anyone that has occured the same problem?

I hear you thinking "yeahyeah nothing changed, yeah right". :smile5:
The server was configured following the earlier post to the letter and I really didn't touch it for a few weeks.

Thanks for helping out!
 

walker_jr

New Member
Joined
Dec 29, 2008
Messages
82
Reaction score
0
There's nothing wrong as per your logs. None of us have the Locale bit working (which is what the phone is complaining about), and the various security files are missing (which is what the log is complaining about).

I found that every so often the sccp-b channel driver itself would die (this was before I started using the SVN version). I don't know what version you're using, but my recommendation would be just to restart your server and see what happens.

One other option to check, since it caused me ongoing headaches, is that you have ip-tables switched off unless you have a very good reason to keep it on.

Final thing to try is a reflash of the firmware with the latest SCCP version. This fixed a random issue for me (a continuous DMTF tone suddenly starting in mid conversation on rare occasions).
 

granny

New Member
Joined
Mar 13, 2009
Messages
14
Reaction score
0
Server restart didn't do the trick.

To be on the safe side, I've upgraded the phone firmware to SSCP45.8-5-2S, which went without a glitch, this did not solve the problem.

Then I've disabled ip-tables which solved the problem.

Thanks for your help guys!
 

walker_jr

New Member
Joined
Dec 29, 2008
Messages
82
Reaction score
0
I've now got the phones working with two lines. As long as both phones are logged into the same two extensions, the BLF functions all work well.

It's a pity it only seems to be possible to show an extension being in use rather than a line. Or am I missing something?
 

TheShniz

Guru
Joined
Nov 15, 2007
Messages
560
Reaction score
2
the BLF functions all work well

^^^ can you elaborate?
How are you defining BLF in the config files?

Cisco's BLF communicates via TCP (not UDP) with Call Managers only, and in a non-standard way (go figure). There has been a good bit of work on getting it to work w/ Asterisk 1.6.x since it can respond via TCP (through a patch), but that's the only progress I'm aware of.
 

Members online

No members online now.

Forum statistics

Threads
25,781
Messages
167,507
Members
19,201
Latest member
troutpocket
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top