Skip to content


Cisco 7960 and Trixbox

I wrote the other day about getting the borrowed Cisco 7960 phone working with my Trixbox server. The phone was pre-provisioned and locked to my office’s PBX so the first thing I needed to do was to try and unlock it so I can edit the configs. A call over to a buddy said the password to unlock it was cisco. I was afraid I was going to give away some confident information, but lo and behold:

Notice what the next section says:

Power on your phone and connect it to your network. You will need to change the IP address of your phone to a free one on your network or enable DHCP is you have a DHCP server.

Unlock your phone by pressing **# (for old firmware) or selecting unlock config from the config menu and type in the password (default is ‘cisco‘)

Change the IP address or enable DHCP. Enter the IP address of your Asterisk@Home box in the TFTP server field. If DHCP is enabled you will have to select alternate TFTP server = yes so you can edit the TFTP field.

The rest of the information there appears to be out of date. I was happy with most of the settings but I did change the following to reflect my current setup.

  • Hostname
  • Domain name
  • TFTP Server
  • Alternate TFTP Server: changed to YES

So far, so good. I saw in my TFTP logs that the phone did try to grab some files after it rebooted. Next, I found this link:

Notice the second section of that page has the download link for the Cisco 7960 latest firmware. I don’t want to link to it directly, but you can see it there yourself. The phone I have is already provisioned for SIP and if you have one that is not, I gather you have to load the SIP firmware to get it going. I saw a lot of references to doing but didn’t pay it much attention since I am already set up for SIP.

I used wget to download the firmware right to /tftproot on my Trixbox server. I then unzipped the files in that directory. Pay attention to this file, it is important:

[root@voip2 tftpboot]# cat OS79XX.TXT
P003-08-6-00
[root@voip2 tftpboot]#

That’s the version of the firmware I just downloaded. This is important since other scripts will use this to generate the 7960′s provisioning files.

Next I saw a reference to running a script called, setup_cisco on the Trixbox server. I ran it and got back the following:

[root@voip2 tftpboot]# setup-cisco

————————————————————–
Creating a default config file for Cisco 7960/7940 phones
————————————————————–

Creating /tftpboot/SIPDefault.cnf…

Created /tftpboot/SIPDefault.cnf using 192.168.0.8 for the proxy. If the
IP address of your Asterisk system changes run this script again and reboot
your Cisco phones by pressing *-6-settings at the same time.

[root@voip2 tftpboot]#

Nice, I am liking this. If you look at this file, it should make sense to you. It has ALL the settings that are important from your Trixbox server. I noticed one thing that should be changed.

[root@voip2 tftpboot]# head SIPDefault.cnf
# Image Version
image_version: “P0S3-07-5-00″

# Proxy Server
proxy1_address: “192.168.0.8″

# Proxy Server Port (default – 5060)
proxy1_port:”5060″

# Emergency Proxy info
[root@voip2 tftpboot]#

We just downloaded the latest and greatest firmware, right? So we need to change the Image_version to match what is in the OS79XX.TXT which is P003-08-6-00.

[root@voip2 tftpboot]# head SIPDefault.cnf
# Image Version
#image_version: “P0S3-07-5-00″
image_version: “P0S3-08-6-00″

# Proxy Server
proxy1_address: “192.168.0.8″

# Proxy Server Port (default – 5060)
proxy1_port:”5060″

[root@voip2 tftpboot]#

Notice that I just commented out the original line. Force of habit, I guess but it is up to you how you edit it.

Notice that Trixbox has an “Endpoint Manager” with a link for “CiscoPhones.” This should make it really easy for you to add your phone. But wait, you need to add an extension first before you go through this provisioning piece. Surely, you know how to add an extension, right? At this point, the hardest thing was to come up with a name for this extension, since at this point I have at least twice the amount than people in the house. Make sure when you create your extension, you set NAT to No!

Once you have your extension setup, let’s add the phone via the Endpoint Manager.

  1. In your web browser, make sure you are in admin mode, (you should already be since you are admin’ing extensions.
  2. Go to Asterisk -> EndPoint Manager -> Cisco Phones
  3. Choose the extension you just made, pick 7960 from the dropdown and enter the MAC address with out the “:’s”. For example, 0013F3677617 (Note, not my real MAC address.) The MAC Address is on a sticker on the bottom of the phone. Click Submit
  4. This is where I had a problem. Permissions did not seem to be set properly on my /tftproot directory. I don’t remember if I did something or if it was like this out of the box. But once I hit submit, I got the following error:

    Warning: fopen(/tftpboot/SIP0013F3677617 .cnf): failed to open stream: Permission denied in /var/www/html/maint/modules/11_endpointcfg/endpoint_cisco.php on line 147

    Since http runs as user asterisk I simply ran the following command:

    [root@voip2 tftpboot]# chmod o+w .

    Now when I hit submit, I see the phone added to the menu. I also see this file in my /tftproot:

    -rw-r–r– 1 asterisk asterisk 973 Mar 16 23:37 SIP0013F3677617.cnf

  5. Now, in the /tftproot directory, there is a cisco_util directory that has the following in it:

    [root@voip2 cisco_util]# pwd
    /tftpboot/cisco_util
    [root@voip2 cisco_util]# ls -la
    total 16
    drw-rw-rw- 2 root root 4096 May 4 2006 .
    drwxrwxrwx 6 root root 4096 Mar 16 23:37 ..
    -rw-r–r– 1 root root 839 May 4 2006 xmlDefault.CNF.XML
    -rw-r–r– 1 root root 839 May 4 2006 XMLDefault.cnf.xml
    [root@voip2 cisco_util]#

    The files are the same, but apparently the capitalization matters to different firmware versions, so they are covering the bases. Remember the OS79XX.TXT file? That’s right. We need to update both of these files with the right version of the firmware. Change the following in both files to:

    <loadinformation8 model=”IP Phone 7940″>P003-07-4-00</loadinformation8><loadinformation7 model=”IP Phone 7960″>P003-07-4-00</loadinformation7>

    To:

    <loadinformation8 model=”IP Phone 7940″>P003-07-4-00</loadinformation8><loadinformation7 model=”IP Phone 7960″>P003-08-6-00</loadinformation7>

  6. There seems to be some disagreement around these files. Should they be in /tftproot or should they be in /tftproot/cisco_util. Not real clear to me and the /var/log/aftpd.log seems to show them being grabbed from the root directory. We’ll try it.
  7. Next, we need to check out the dialplan.xml file. Mine has really nothing in it. This page mentioned above has a section all about the dialplan. Basically, the default plan waits for 5 seconds before initiating the call. I know this would bug my wife so I’ll change the dialplan to start the call upon immediately matching our pattern we’ve been using with Trixbox; 9+XXXXXXXXXX. We have 10 digit dialing were we live and Viatalk wants you to dial a “1″ with every number. When we dial 9+ our number, the Trixbox server sends the number to Viatalk the way they are expecting it. So, based on the examples in that page, I make it look like this:

    <dialtemplate>
    <template match=”9,……….” timeout=”0″>
    </template> </dialtemplate>

  8. To summarize, we need five files in the /tftproot:
    1. OS79XX.TXT
    2. P003-08-6-00.bin
    3. P003-08-6-00.sbn
    4. P0S3-08-6-00.loads
    5. P0S3-08-6-00.sb2
    6. SIPDefault.cnf
    7. SIP0013C3677610.cnf
    8. RINGLIST.DAT
    9. dialplan.xml
    10. xmlDefault.CNF.XML
    11. XMLDefault.cnf.xml

    The last two may need in cisco_util or in the root directory.

  9. Reset the power and cross your fingers! As my phone comes back up, I see it hit the logs and there were flashing lights of red and green, messages of verifying load, copying to bank 1, etc. It has done it more than once at this point.
  10. DST Settings. In you SIPDefault.cnf make the time section look like to get the correct DST settings in the US:

    # Time Server
    sntp_mode: “unicast”
    sntp_server: “192.168.0.8″ <- whatever your Trixbox server IP address is
    time_zone: “EST”
    dst_offset: “1″
    dst_start_month: “Mar”
    dst_start_day: “”
    dst_start_day_of_week: “Sun”
    dst_start_week_of_month: “2″
    dst_start_time: “02″
    dst_stop_month: “Nov”
    dst_stop_day: “”
    dst_stop_day_of_week: “Sunday”
    dst_stop_week_of_month: “1″
    dst_stop_time: “2″
    dst_auto_adjust: “1″

  11. Configure Line 2 for troublefree call waiting. Found again on this page:

    Call Waiting Feature

    The 79XX series phones have a good way of handling SIP registrations provided the Call Waiting feature isn’t turned off. Most other SIP phones require an individual SIP username and password for each line appearance. Instead, the 79XX will automatically roll-over to the next available line. So, for example, on a 7960 you can have all six lines programmed to the same SIP username/password and the phone will automatically handle the call waiting function. Note: If you use any other method of ringing multiple lines on the phone (i.e. dialing SIP/123&SIP/456) your phone will show a confusingly high number of missed calls.

    Examples are on that page but if you got this far you can probably figure it out.
    TroubleShooting!
    Well, as luck would have it, I appeared to be stuck in a reboot loop. Watching the tftp logs, I kept seeing the following attempts for these files, which I don’t have:

    atftpd[8119.-1208575056]: Serving CTLSEPMACADDRESS.tlv to 192.168.0.52:50337

    atftpd[8119.-1208575056]: Serving SEPMACADDRESS.cnf.xml to 192.168.0.52:50338

    Ofcourse, MACADDRESS is really the MAC address of the phone.

    To the rescue, I find this page:

    This addresses the SEP file. I created that file OUTSIDE of the /tftproot directory since I didn’t want to risk the phone grabbing the file before I had a chance to edit it.

    I found this page over at Cisco that said the following:

    The CTLSEP MAC file is the first file requested in the universal application loader, followed by the additional six configuration files in the hunt algorithm defined in the “Universal Application Loader” section. If the CTLSEP MAC file is present, the phone proceeds with additional security actions regarding phone and server communication; if the CTLSEP MAC file is not present or is empty, the phone proceeds in nonsecure mode with the hunt algorithm.

    I guess I don’t need it, either of them.

    I am still having problems. I noticed that the phone is trying to grab a file that doesn’t exist:

    atftpd[8119.-1208575056]: Serving P003-08-6-00.loads

    The file that came from the zip file is actually:

    P0S3-08-6-00.loads

    I tried to be smart and copy the original to match the name of the one the phone is trying to get. Now it loads and I now get a “File auth error.” I realized that I had made a typo in the SIPDefault file. It is corrected in the example above.

    The phone is working and I was able to call out and call internal extensions!




16 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.

  1. Gerry UNITED STATES Windows XP Mozilla Firefox 3.0.6 says

    WOW!!! After 3 day’s and 100′s of other site and forums, I got a healthy dose of vegetables and my Cisco 7960/trixbox CE is up and running. THANK YOU!

  2. Jeff Pabian UNITED STATES Windows XP Mozilla Firefox 3.0.6 says

    Hey Gerry, Glad to have helped! Keep us in the loop on how it goes.

  3. Nazeer UNITED STATES Windows XP Mozilla Firefox 3.0.6 says

    Excellent document. Good work Jeff. I wonder if you have any shortcut to provision the second line (in case of 7940) or all six lines (in case of 7960) info without going through the configuration file for each extensions?

    Thanks

  4. Jeff Pabian UNITED STATES Windows XP Mozilla Firefox 3.0.7 says

    Hey Nazeer, thanks for the kind words. The only thing I found is manually editing the file and adding the lines there. Once it is created by Trixbox, I was able to edit it to my needs. I have two of the same extension for a poor man’s call waiting and a separate extension intended for “business” but I don’t really use it.

  5. Chris CANADA Windows Vista Mozilla Firefox 3.0.7 says

    Thank you very much. This was very helpful. I ran into many of the same pitfalls. Your document was the best that I found.

    Cheers!

  6. Jeff Pabian UNITED STATES Windows XP Mozilla Firefox 3.0.8 says

    Hey Chris, thanks for the kind words. I am always glad to help!

  7. Alvaro COSTA RICA Windows XP Mozilla Firefox 3.0.9 says

    Hi Excellent documentation, but I have a really problem I have a cisco ip phone 7960 with “SIP” firmware. I don’t remember el password to factory reset el phone “cisco” doesn’t work” any suggestions please i need my ipphone.

  8. nathan UNITED STATES Windows XP Internet Explorer 7.0 says

    hold down # during boot, then 123456789*0#. this will reset it

  9. asterisker CHINA Windows XP Internet Explorer 6.0 says

    My tftp server does not connect, ask that is why?

  10. Amit Aggarwal UNITED STATES Windows Vista Internet Explorer 8.0 says

    I configured the phone according to method you followed. My Problem is I can make calls outside but it is not able to register completely woth trixbox as result i am not able to receive calls. when i call from softphone to cisco7960 it goes to voicemail directly. Any Suggestion?

  11. Amit Aggarwal UNITED STATES Windows Vista Internet Explorer 8.0 says

    Following is the phone registration status
    where 192.168.1.89 in trixbox

    LINE REGISTRATION TABLE
    Proxy Registration: ENABLED, state: IDLE
    line APR state timer expires proxy:port
    —- — ————- ———- ———- —————————-
    1 .1x IDLE 0 0 192.168.1.89:5060
    2 … NONE 0 0 undefined:0
    3 … NONE 0 0 undefined:0
    4 … NONE 0 0 undefined:0
    5 … NONE 0 0 undefined:0
    6 … NONE 0 0 undefined:0
    1-BU .1x IDLE 0 0 192.168.1.89:5060

  12. Tyler CANADA Windows XP Google Chrome 4.1.249.1042 says

    Nice work. A lot of useful info in there.

    If its of interest, I’ve recently put together a similar guide for a variety of Cisco IP Phone models (including the Cisco IP Communicator) to work with Asterisk over SIP. I’ve been able to use some of the newest firmware and some features have been corrected/added as a result.

    My info is at:
    http://minded.ca/2009-12-16/configure-cisco-ip-phones-with-asterisk/

  13. Jeff Pabian UNITED STATES Windows 7 Google Chrome 5.0.342.8 says

    Wow! Thanks, Tyler! I appreciate the compliment and will definitely check out your site. Thanks for leaving a comment!

  14. GoingMad ITALY Mac OS X Google Chrome 8.0.552.231 says

    Great Job Jeff!!!
    After a crash of my previous trixbox I had so many trouble to have a new one working with my 7960 ip phones. At least until I’ve found your page. In my case the “nat” was set to “yes” and changing it solved all my issues.
    A first grade bookmark for your page, thanks a lot!!!

    Andrea

  15. Jeff Pabian UNITED STATES Windows 7 Google Chrome 9.0.597.19 says

    Thanks for the kind words, GoingMad! Good luck!

Continuing the Discussion

  1. Cisco 7960 and Trixbox; the whole enchilada at Eat your Vegetables! UNITED STATES WordPress 2.1.2 linked to this post on March 17, 2007

    [...] Config for Cisco 7960 and Trixbox [...]



Some HTML is OK

or, reply to this post via trackback.


cheap prednisone overnight delivery buy rx prednisone without accutane online no prescription buy prednisone with out a prescription order prednisone on line buy online prednisone without rx purchase prednisone without rx needed cheap prednisone by money order prednisone purchased online without prescription free fedex delivery prednisone order prednisone saturday delivery cheap prednisone by money order prednisone online without prescription prednisone shipped cash on maxalt online doctors buy Cytotec without a rx overnight shipping buying Paxil over the counter Paxil free consultation fedex overnight delivery buy Paxil no visa online without prescription order Paxil overnight delivery buy Paxil without Paxil non prescription for next day delivery order Paxil order amex fedex Paxil overnight without a prescription Paxil purchased online without prescription where can i purchase Paxil without a prescription where to purchase generic Paxil online without a prescription Paxil with free fedex overnight purchase Paxil no scams Paxil online purchase where can i buy Paxil without a rx buy Paxil no visa online without rx purchase cheap prescription Strattera Lasix oral buy Tamsulosin with a visa discount software for teachers software for downloading movies on cheap price discount software for government employees cheap microsoft software student download software infrared best buy software programs discount software student teacher discount software software downloads gratis software downloads cheap window xp pro discount software teacher software discount cheap software downloads download video capture software cheap student tracking software download software word to pdf microsoft student discount software prices for payday loan software quicken rental property manager 2011 cou purchase online rx prednisone without oem microsoft office for mac os x creative suite update for creative suite 2 premium buy Orlistat with visa xenical without a presciption xenical no physicisn consult Zithromax no prescription overnight order generic Maxalt order Maxalt without a prescription overnight shipping Zithromax tabletten uk valtrex generic buy cheap Valtrex with dr. prescription valtrex overnight no consult valtrex propecia online gt buy cheap valtrex no prescription (no prescriptions needed for Buspar|buy Buspar with no prescription|online pharmacies Buspar|Buspar cheap|buy Buspar without rx|purchase rx Buspar without|Buspar purchase online|purchase Buspar online without rx|purchase Buspar free consultation|buy Buspar Online|buy Buspar american express|buy Buspar Online|buy cheap Buspar with dr. prescription|Buspar side effects|fedex Buspar without priscription|overnight Buspar without a rx|order cheap overnight Buspar|Buspar toronto|uk order Buspar|Buspar no doctors prescription|Buspar mexico|Buspar order|no prescription Buspar with fedex|order generic Buspar|buy Buspar without rx from us pharmacy|prezzo Buspar|Buspar 10mg|Buspar from canada|purchasing Buspar without a script|buy Buspar australia|purchase Buspar visa without prescription|online purchase Buspar|buy Buspar no perscription cod|buy Buspar drugs|buy Buspar with visa|buy Buspar without rx needed|buy Buspar without prescription|buy Buspar no prescription low cost|purchase order generic Buspar online purchase Cytotec over the counter cod overnight purchase Flomax cod next day delivery Nolvadex for cheap Nolvadex overnight no rx order online Lasix without prescription Lasix from india purchase cheap Accutane 40 mg cod free fedex diskeeper2010 pro premier Nolvadex online consultation overnight cheap synthroid fedex can i buy synthroid at cvs cheap Nolvadex cod buy Accutane cod how to purchase Lasix online without a prescription Lasix with free fedex overnight buy 500mg zithromax with mastercard order zithromax without a prescription overnight shipping Nolvadex cod next day delivery best buy for Nolvadex buy discount Nolvadex online how to order Nolvadex online without prescription Nolvadex online consultant order cheap overnight Nolvadex buy cheap online pharmacy zithromax buy zithromax without prescription zithromax no doctor how to order zithromax online without prescription buy zithromax paypal without rx how to order zithromax online without a rx zithromax no script needed c.o.d. overnight purchase Orlistat online without rx buy Orlistat no prescription online Orlistat buy order cheap overnight Valtrex buy Maxalt australia online Finpecia purchase generic finpecia online where can i purchase finpecia no rx purchase rx finpecia without Buspar cod next day delivery where to purchase cheap Buspar no rx prednisone with free fedex overnight prednisone online uk buy valtrex where can i purchase Crestor without a prescription buy Crestor online from canada How to buy Valtrex on line cheap Valtrex without rx no prescription Zithromax cod delivery buy Zithromax pills purchase Buspar without prescription Arimidex without prescription buy Flomax without a rx overnight shipping buy Flomax in india Cytotec doctor canadian prescriptions Cytotec where to buy Cytotec london adobe photoshop album starter adobe photoshopo elements buy Buspar pay cod generic Valtrex cost adobe reader printing c.o.d prednisone buy Proscar amex online without rx adobe photoshop starter cheapest place to buy Crestor windows xp fixes Home Edition Windows Microsoft Word Trial Version online valtrex order buying Crestor over the counter adobe toolbar microsoft office 2007 product key Crestor buy Crestor order cheap overnight Crestor installing adobe design premium Orlistat no doctors prescription Orlistat for sale office standard 2007 patch Flomax fedex shipping Microsoft Word 2010 Screenshot paragon hard disk manager rapid purchase online Flomax without prescription microsoft office 2010 mac download Upgrade Windows 7 Home Windows 7 Upgrade Student Price Cheapest Valtrex online Buy Finpecia where order Valtrex uk order no online rx Valtrex buy Orlistat no visa online without prescription buy Flomax toronto vegas vegas pro 9.0 buy windows 7 netbook edition buy prednisone online with next day shipping adobe creative suite 3 production premium order Strattera online with overnight delivery purchase Buspar pay pal online without prescription buy Buspar c o d stuffit deluxe 10 download Flomax best buy how to download adobe after effects cs5 portable hoto impact pro software office 2008 on the cheap flash builder 4.0 serial adobe acrobat x pro patch where can i purchase Prednisone online windows vista home premium key kaufen order Flomax online Buy Fincar pills microsoft office templates creative suite design premium cs 5.5 diekwarrior discount lightroom 3 buy Flomax without a rx buy Valtrex pills buy Zithromax discount buy Flomax cod usa canada mexico tomtom swish webdav support cd key everest ultimate mac parallel powerdvd buy generic Tamsulosin pills dreamweaver mx 2004 where can i purchase Buspar no rx Proscar order online order Crestor amex online without prescription Valtrex suppliers best Valacyclovir online pill Zithromax oral buy Bupropion and Bupropion where can i purchase Amitriptyline without a prescription Zithromax canadian pharmacy get adobe reader buy brand Valtrex buy prednisone online cod order cheapest online prednisone order Arimidex online next day delivery changes 2 online paragon adaptive restore buy buy brand Crestor where can i purchase Valtrex online sdk library buraware professional Crestor online buy saturday delivery Microsoft Word Academic Autocad Lt 2000i generic Valtrex cost Orlistat apotheke order no online rx Valtrex Adobe Photoshop Free Version Buspar buy Windows 7 Home Premium Family Pack Best Price Prednisone to buy cheap accutane 40 mg uk buy accutane 40 mg discount Discount Microsoft WindowsLightroom 2 Windows 7Ms Office StandardPhotoshop Cs5 UpgradeComputer Monitors For SaleWindows Xp InstallSuite Microsoft OfficeAutocad Version 2007Adobe Acrobat 9.0 Standard DownloadIe8 Download For Windows 7Adobe Paint ShopMicrosoft Service Pack 2Free Download Adobe AcrobatStudent And Teacher EditionManage ImageAdobe Acrobat 7 Pro DownloadVista Home Premium To Windows 7 UltimateWindows 7 Home Premium Upgrade OemAdobe Creative Suite 5 Master Collection Student And Teacher EditionBuy Adobe Photoshop Lightroom 3Ms Office 2010 Home And StudentCompare Photo SoftwareMicrosoft Office Word Viewer 2010Windows 7 Upgrade Student Discount ProfessionalWindows 7 Updates DownloadCreative Suite WebAdobe Reader VistaMicrosoft Windows 7 Home Premium Upgrade 64 BitPhotoshop 2Ie8 Download For Windows 7Photoshop 2009Suite Microsoft OfficeMicrosoft Office 2007 VersionUpgrade Windows Vista To 7Autocad Lt 2010Autocad 2010 Best PriceDownload Acrobat Reader 8 Prednisone buy online scanning adobe adobe reaader Adobe Illustrator Cs2 Download serial windows server 2003 enterprise edition where to buy Buspar without a prescription Buspar buy online buy Maxalt cash on delivery uk Valtrex cheap purchase prednisone paypal without prescription Adobe Photoshop Cs 3 buy valtrex usa buy Buspar free consultation buy cheap Proscar online Valtrex sale buy Valtrex with a visa where can i buy Valtrex buy Proscar online cheap Proscar citrate Cytotec online uk buy on line Cytotec buy cheap Prednisone no prescription purchase Prednisone online without rx purchase Proscar without rx to ship overnight buy no prior prescription Valtrex buy valtrex in the uk Valtrex 1000 mg purchase Prednisone money purchase buy Cytotec your city buy Cytotec cheapest where to purchase generic finpecia online without a rx finpecia buy buy finpecia where 1 mg finpecia cheap versions of microsoft word window download bug software small business bookkeeping software discount dreamweaver web site windows xp process repair installation windows xp general software finpecia non rx fedex overnight free finpecia cash on delivery discount software microsoft adobe acrobat 8 standard discount cookbook software cheap microsoft publisher Rosuvastatin rezept buspar without a prescription or doctor windows xp zip files security update for windows xp microsoft window update acronis software

FireStats icon Powered by FireStats Affordable Seo PackagesSeo BlogEdu Backlinks