TUTORIAL Updated SCCP Tutorial for Asterisk 11 and 13

Status
Not open for further replies.

rjaiswal

Active Member
Joined
May 24, 2013
Messages
438
Reaction score
58
Also you haven't defined a proper hotline. The one in the example is for my system. I don't think you have extension 250 in your system.
 
Joined
Mar 4, 2014
Messages
54
Reaction score
1
Crap. Copy and paste didn't work for me.

sccp_extensions
Code:
[216]
id = 1000
type = line
pin = 1234
label = Cisco Wireless
description = Line 211
mailbox = 211
cid_name = Cisco Wireless
cid_num = 211
accountcode=
callgroup=
pickupgroup=
;amaflags =
context = from-internal
incominglimit = 2
transfer = on
vmnum = *97
meetme = on
meetmeopts = qxd
meetmenum = 500
trnsfvm = *98
secondary_dialtone_digits = 9
secondary_dialtone_tone = 0x22
musicclass=default
language=en
echocancel = on
silencesuppression = off
setvar=testvar2=my value
dnd = on

sccp_hardware.conf
Code:
[SEP001DA231AF60]
description = Cisco Wireless
addon =
devicetype = 7921
park = on
button = line, 211                    ; Assign Line 98011 to Device
;button = line, empty                    ; Assign an Empty Line
;button = line, 98012                    ; Assign Line 98012 to Device
button = speeddial,Page All, 300, 300@hints    ; Add SpeedDial to Phone Number button = speeddial,Helpdesk, 98112, 98112@hints      ; Add SpeedDial to Helpdesk Two Line 1
cfwdall = off
type = device
keepalive = 60
;tzoffset = +2
transfer = on
park = on
cfwdall = off
cfwdbusy = off
cfwdnoanswer = off
directed_pickup = on
directed_pickup_context = from-internal-xfer
directed_pickup_modeanswer = on
dtmfmode = inband
imageversion = CP7921G-1.4.6.3.LOADS
deny=0.0.0.0/0.0.0.0
permit=172.16.0.0/255.255.252.0
dndFeature = on
nat=off
directrtp=off
earlyrtp = progress
private = on
mwilamp = on
mwioncall = off
setvar=testvar=value
cfwdall = on
 

rjaiswal

Active Member
Joined
May 24, 2013
Messages
438
Reaction score
58
In the asterisk console, when you run "sccp show devices", what do you see?
 
Joined
Mar 4, 2014
Messages
54
Reaction score
1
In the asterisk console, when you run "sccp show devices", what do you see?

There is nothing showing.
+--- Devices --------------------------------------------------------------------------------------------------------------------------------------------+
| Descr Address Mac RegState Token RegTime Act Lines Nat |
+ ========================= ============================================ ================ ========== ===== ========================= === ===== ========= +
+--------------------------------------------------------------------------------------------------------------------------------------------------------+
 

rjaiswal

Active Member
Joined
May 24, 2013
Messages
438
Reaction score
58
Ok. What version firmware do you have on the phone? Have you put the sepxxxxxxxx.xml, xmldefault,cnf and sccp firmware in the t*f*t*p folder?
 
Joined
Mar 4, 2014
Messages
54
Reaction score
1
Ok. What version firmware do you have on the phone? Have you put the sepxxxxxxxx.xml, xmldefault,cnf and sccp firmware in the t*f*t*p folder?

BTW Thank you all for taking the time to help me. You are all very patient and kind!

Firmware is CP7921G-1.4.6.3.LOADS. All 3 of the files you mentioned are in the server directory. I have even changed firmware files a few times to make sure the phone was actually grabbing the files from the server.

XMLDefault.cnf
Code:
<Default>
<callManagerGroup>
    <members>
      <member priority="0">
          <callManager>
            <ports>
                <ethernetPhonePort>2000</ethernetPhonePort>
                <mgcpPorts>
                  <listen>2427</listen>
                  <keepAlive>2428</keepAlive>
                </mgcpPorts>
            </ports>
            <processNodeName>172.16.1.200</processNodeName>
          </callManager>
      </member>
    </members>
</callManagerGroup>
<loadInformation8 model="IP Phone 7940">P0S3-8-12-00</loadInformation8>
<loadInformation7 model="IP Phone 7960"></loadInformation7>
<loadInformation365 model="Cisco IP Phone 7921">CP7921G-1.4.6.3.LOADS</loadInformation365>
<loadInformation435 model="Cisco 7945"></loadInformation435>
<loadInformation436 model="Cisco 7965"></loadInformation436>
<loadInformation8945 model="Cisco 8945">SIP894x.9-2-3-5.loads</loadInformation8945>
<loadInformation30006 model="IP Phone 7970"></loadInformation30006>
<authenticationURL></authenticationURL>
<directoryURL></directoryURL>
<idleURL></idleURL>
<informationURL></informationURL>
<messagesURL></messagesURL>
<servicesURL></servicesURL>
</Default>

SEP001DA231AF60.cnf.xml
Code:
<device>
<devicePool>
<dateTimeSetting>
  <dateTemplate>M/D/YA</dateTemplate>
  <timeZone>Pacific Standard/Daylight Time</timeZone>
</dateTimeSetting>
  <callManagerGroup>
  <members>
    <member  priority="0">
    <callManager>
      <ports>
      <ethernetPhonePort>2000</ethernetPhonePort>
      </ports>
      <processNodeName>172.16.1.200</processNodeName>
    </callManager>
    </member>
  </members>
  </callManagerGroup>
</devicePool>
<versionStamp>{7921G Dec 17 2014 12:28:00}</versionStamp>
<loadInformation>CP7921G-1.4.6.3.LOADS</loadInformation>
<userLocale>
  <name>English_United_States</name>
  <langCode>en</langCode>
</userLocale>
<networkLocale>United_States</networkLocale>
<networkLocaleInfo>
  <name>United_States</name>
</networkLocaleInfo>
<networkLocale>United_States</networkLocale>
<idleTimeout>0</idleTimeout>
<authenticationURL></authenticationURL>
<directoryURL></directoryURL>
<idleURL></idleURL>
<informationURL></informationURL>
<messagesURL></messagesURL>
<proxyServerURL></proxyServerURL>
<servicesURL></servicesURL>
</device>
 

rjaiswal

Active Member
Joined
May 24, 2013
Messages
438
Reaction score
58
which directory do you have the phone firmware in? it should be your t*f*t*p directory.

All of the configuration files seem to be fine. It looks like your phone isn't pulling them from the t*f*t*p server. Have you configured the proper options on your DHCP server, so the phone knows where to pull its configuration files from? You need to define option 66 and option 150. Both options need to point to your t*f*t*p server.

Defining the dhcp options vary from dhcp server to dhcp server. you'll need to google around for examples for your particular dhcp server.
 
Joined
Mar 4, 2014
Messages
54
Reaction score
1
which directory do you have the phone firmware in? it should be your t*f*t*p directory.

All of the configuration files seem to be fine. It looks like your phone isn't pulling them from the t*f*t*p server. Have you configured the proper options on your DHCP server, so the phone knows where to pull its configuration files from? You need to define option 66 and option 150. Both options need to point to your t*f*t*p server.

Defining the dhcp options vary from dhcp server to dhcp server. you'll need to google around for examples for your particular dhcp server.

Chasing a red herring there for awhile. The phone is timing out where it says "Opening 172.16.1.200" at the bottom. That is the correct address for the asterisk/piaf server. I temporarily disabled iptables and fail2ban to ensure that the phone was not being blocked. Still hangs up at "Opening 172.16.1.200". Something must be wrong in sccp_hardware.conf or sccp_extensions.conf, but I can't find anything out of place.
 

rjaiswal

Active Member
Joined
May 24, 2013
Messages
438
Reaction score
58
The configuration files are fine. The phone is having problems downloading the configuration files from your t*f*t*p server.

Do you have a t*f*t*p server running on your network?
 
Joined
Mar 4, 2014
Messages
54
Reaction score
1
The configuration files are fine. The phone is having problems downloading the configuration files from your t*f*t*p server.

Do you have a t*f*t*p server running on your network?

Yes I do. That is how I updated the firmware initially. The only way it would know to try to open 172.16.1.200 is if it is reading the <processNodeName> param from the .xml.cnf files.
 

rjaiswal

Active Member
Joined
May 24, 2013
Messages
438
Reaction score
58
Hmmm... can you post the t*f*t*p logs when the phone restarts and tries to communicate with phone system?
 
Joined
Mar 4, 2014
Messages
54
Reaction score
1
Hmmm... can you post the t*f*t*p logs when the phone restarts and tries to communicate with phone system?

Sep 9 20:04:37 server in.tftpd[11654]: RRQ from 172.16.2.8 filename CTLSEP001DA231AF60.tlv
Sep 9 20:04:37 server in.tftpd[11654]: sending NAK (1, File not found) to 172.16.2.8
Sep 9 20:04:38 server in.tftpd[11655]: RRQ from 172.16.2.8 filename WLAN001DA231AF60.xml
Sep 9 20:04:38 server in.tftpd[11655]: sending NAK (1, File not found) to 172.16.2.8
Sep 9 20:04:38 server in.tftpd[11656]: RRQ from 172.16.2.8 filename WLANDefault.xml
Sep 9 20:04:38 server in.tftpd[11656]: sending NAK (1, File not found) to 172.16.2.8
Sep 9 20:04:38 server in.tftpd[11657]: RRQ from 172.16.2.8 filename SEP001DA231AF60.cnf.xml
Sep 9 20:04:39 server in.tftpd[11658]: RRQ from 172.16.2.8 filename Ringlist.xml
Sep 9 20:04:39 server in.tftpd[11658]: sending NAK (1, File not found) to 172.16.2.8
Sep 9 20:04:39 server in.tftpd[11659]: RRQ from 172.16.2.8 filename DistinctiveRingList.xml
Sep 9 20:04:39 server in.tftpd[11659]: sending NAK (1, File not found) to 172.16.2.8
Sep 9 20:04:39 server in.tftpd[11660]: RRQ from 172.16.2.8 filename English_United_States/7921-dictionary.xml
Sep 9 20:04:39 server in.tftpd[11660]: sending NAK (1, File not found) to 172.16.2.8
Sep 9 20:04:39 server in.tftpd[11661]: RRQ from 172.16.2.8 filename English_United_States/7921-kate.utf-8.xml
Sep 9 20:04:39 server in.tftpd[11661]: sending NAK (1, File not found) to 172.16.2.8
Sep 9 20:04:39 server in.tftpd[11662]: RRQ from 172.16.2.8 filename English_United_States/7921-font.dat
Sep 9 20:04:39 server in.tftpd[11662]: sending NAK (1, File not found) to 172.16.2.8
Sep 9 20:04:39 server in.tftpd[11663]: RRQ from 172.16.2.8 filename United_States/7960-tones.xml
Sep 9 20:04:39 server in.tftpd[11663]: sending NAK (1, File not found) to 172.16.2.8
 

rjaiswal

Active Member
Joined
May 24, 2013
Messages
438
Reaction score
58
Sep 9 20:04:37 server in.tftpd[11654]: RRQ from 172.16.2.8 filename CTLSEP001DA231AF60.tlv
Sep 9 20:04:37 server in.tftpd[11654]: sending NAK (1, File not found) to 172.16.2.8
Sep 9 20:04:38 server in.tftpd[11655]: RRQ from 172.16.2.8 filename WLAN001DA231AF60.xml
Sep 9 20:04:38 server in.tftpd[11655]: sending NAK (1, File not found) to 172.16.2.8
Sep 9 20:04:38 server in.tftpd[11656]: RRQ from 172.16.2.8 filename WLANDefault.xml
Sep 9 20:04:38 server in.tftpd[11656]: sending NAK (1, File not found) to 172.16.2.8
Sep 9 20:04:38 server in.tftpd[11657]: RRQ from 172.16.2.8 filename SEP001DA231AF60.cnf.xml
Sep 9 20:04:39 server in.tftpd[11658]: RRQ from 172.16.2.8 filename Ringlist.xml
Sep 9 20:04:39 server in.tftpd[11658]: sending NAK (1, File not found) to 172.16.2.8
Sep 9 20:04:39 server in.tftpd[11659]: RRQ from 172.16.2.8 filename DistinctiveRingList.xml
Sep 9 20:04:39 server in.tftpd[11659]: sending NAK (1, File not found) to 172.16.2.8
Sep 9 20:04:39 server in.tftpd[11660]: RRQ from 172.16.2.8 filename English_United_States/7921-dictionary.xml
Sep 9 20:04:39 server in.tftpd[11660]: sending NAK (1, File not found) to 172.16.2.8
Sep 9 20:04:39 server in.tftpd[11661]: RRQ from 172.16.2.8 filename English_United_States/7921-kate.utf-8.xml
Sep 9 20:04:39 server in.tftpd[11661]: sending NAK (1, File not found) to 172.16.2.8
Sep 9 20:04:39 server in.tftpd[11662]: RRQ from 172.16.2.8 filename English_United_States/7921-font.dat
Sep 9 20:04:39 server in.tftpd[11662]: sending NAK (1, File not found) to 172.16.2.8
Sep 9 20:04:39 server in.tftpd[11663]: RRQ from 172.16.2.8 filename United_States/7960-tones.xml
Sep 9 20:04:39 server in.tftpd[11663]: sending NAK (1, File not found) to 172.16.2.8


Looking at your logs, the phone can't find the WLANdefault.xml or the WLAN<mac>.xml. You need these files so that the phone knows what WLAN to connect to. They should contain a SSID and the authentication scheme for that SSID.

You have to download the cisco bulk deployment tool to generate these files. Once the phone knows what SSID to connect to, it'll connect to asterisks and register.

http://www.cisco.com/web/software/282074239/14006/792xBD.1-0-Readme.pdf
 
Joined
Mar 4, 2014
Messages
54
Reaction score
1
Looking at your logs, the phone can't find the WLANdefault.xml or the WLAN<mac>.xml. You need these files so that the phone knows what WLAN to connect to. They should contain a SSID and the authentication scheme for that SSID.

You have to download the cisco bulk deployment tool to generate these files. Once the phone knows what SSID to connect to, it'll connect to asterisks and register.

http://www.cisco.com/web/software/282074239/14006/792xBD.1-0-Readme.pdf

Done. WLANDefault.xml and WLAN<mac>.xml files are created with the bulk deployment tool. Still some other files missing per the t*f*t*p log, but I'm not sure if they are critical or not. Still no sccp devices showing registered on piaf/asterisk. I'm not sure what to check next...
 

wardmundy

Nerd Uno
Joined
Oct 12, 2007
Messages
19,168
Reaction score
5,199
Phillip Pacier: You're at the juncture where it probably would be a good idea to hire a consultant to get this working for you. You can post a help wanted ad in the appropriate section of the forum. While the forum is intended to provide support, we rely upon volunteers. And you've kinda gotten your money's worth at this point... if you know what I mean.
 
Status
Not open for further replies.

Members online

Forum statistics

Threads
25,778
Messages
167,504
Members
19,198
Latest member
serhii
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