📜 ⬆️ ⬇️

Cisco 7912G IP Phone Firmware Change from SIP to Skinny

In the process of writing a continuation to the first part of the topic on setting up telephony on Cisco, it was necessary to tie two phones to the CME, but I ran into one problem. Phones were stitched under SIP and at this stage I wanted to do everything on Skinny. And if there are no special problems with the Skinny-phone firmware in SIP (this process has already been described on Habré ), then the reverse procedure turned out to be quite non-trivial.

So, there are 2 ways to solve this problem, one of them is to use the full-fledged Cisco Unified Call Manager deployed on the server. Since his hands have not yet reached him, this option was unacceptable.
The second solution is firmware by means of a router with CME.
First you need the firmware itself, the latest version on Cisco is now 8.0 (4), the file for downloading is called cmterm-7912G-sccp.8-0-4.zip . But there is a problem. To download it, you need the privileges of a CCO account, which I do not have, so I had to look for an alternative source . The archive contains the file CP7912080003SCCP070409A.sbin.
Next, upload the file via TFTP to the router and create a DHCP configuration for the phone:
ip dhcp pool PHONES
network 10.13.6.0 255.255.255.0
default-router 10.13.6.10
# 150 TFTP-
option 150 ip 10.13.6.10

After that, we launch the necessary debugs debug ip dhcp server events and debug tftp events and see what happens.
CME#
Jun 1 02:41:05.447: DHCPD: Sending notification of ASSIGNMENT:
Jun 1 02:41:05.447: DHCPD: address 10.13.6.22 mask 255.255.255.0
Jun 1 02:41:05.447: DHCPD: htype 1 chaddr 0019.2f9c.554e
Jun 1 02:41:05.447: DHCPD: lease time remaining (secs) = 86400
Jun 1 02:41:05.527: TFTP: Looking for gk00192f9c554e
Jun 1 02:41:05.539: TFTP: Looking for gkdefault.cfg

It can be seen that the phone normally received the DHCP address 10.13.6.22 and correctly sends requests to the router, which acts as a TFTP server. The phone asks for a configuration file either specifically for itself (gkxxxxxxxxxxxx, where xxxx is the mac-address of the phone) or the default config. According to official sources, the CP7102 will request files starting with ff , and the CP7105 will request files with id

At this stage, our task is to slip the phone with the desired configuration file so that it can change into SCCP. You can read about what this file is and what fields it contains here .

So, create the configuration file gkdefault.txt
')
#txt
upgradecode:3,0x601,0x0400,0x0100, 10.13.6.10 ,69,0x 070409A ,CP7912080003SCCP 070409A .sbin

Since you need to download it in binary form, you need to convert it with the cfgfmt.exe utility, which can be found here . The utility also needs to work the file sip_ptag.dat , which lies in the same place.
Run the program
cfgfmt -tsip_ptag.dat gkdefault.txt gkdefault.cfg

The resulting file is also uploaded to the CME

So, after all the procedures, we should have the following on the flash:

CME#sh flash:

System flash directory:
File Length Name/status
1 18296372 c1700-ipvoicek9-mz.124-25.bin
2 341023 CP7912080003SCCP070409A.sbin
3 62 gkdefault.cfg

Now we add the necessary files to our tftp-server:

tftp-server flash:CP7912080003SCCP070409A.sbin
tftp-server flash:gkdefault.cfg

At this stage, you can distort the power of the phone and if everything is configured correctly, the following will be seen in the debugs:
Jun 1 03:48:33.495: DHCPD: Sending notification of ASSIGNMENT:
Jun 1 03:48:33.495: DHCPD: address 10.13.6.22 mask 255.255.255.0
Jun 1 03:48:33.495: DHCPD: htype 1 chaddr 0019.2f9c.554e
Jun 1 03:48:33.495: DHCPD: lease time remaining (secs) = 86400
Jun 1 03:48:33.575: TFTP: Looking for gk00192f9c554e
Jun 1 03:48:33.587: TFTP: Looking for gkdefault.cfg
Jun 1 03:48:33.587: TFTP: Opened flash:gkdefault.cfg, fd 0, size 62 for process 127
Jun 1 03:48:33.595: TFTP: Finished flash:gkdefault.cfg, time 00:00:00 for process 127
Jun 1 03:48:33.599: TFTP: Looking for CP7912080003SCCP070409A.sbin
Jun 1 03:48:33.603: TFTP: Opened flash:CP7912080003SCCP070409A.sbin, fd 0, size 341023 for process 151
Jun 1 03:48:40.279: TFTP: Finished flash:CP7912080003SCCP070409A.sbin, time 00:00:06 for process 151

After that, the phone will display Write flash ... Please wait , it will jump over and become a Skinny-phone!

PS
Alternatively, you could use the tftpd32.exe DHCP server to configure the 150th option and upload the CP7912080003SCCP070409A.sbin and gkdefault.cfg files to the root folder of the TFTP server.

Source: https://habr.com/ru/post/96672/


All Articles