SUGGESTIONS Cisco 7970 Treasure Trove

OK, some progress. I've now got it to boot, but it gets stuck at "Registering" and the status messages say "error verifying config info" which I guess means I have an error in my SEP<MAC>.cnf.xml file somewhere, ho hum.

I also seem to have DNS unknown host and error updating locale error messages, which is odd given all the hosts are shown as IP addresses in the SEP<MAC>.cnf.xml file.

I believe there is no way to get the phone to report what line it's having an issue with, is that correct?

Also, I understand that the sccp.conf definition of "line" is equivalent to the extension in FreePBX terms. Is this right? Where do you one define the secret for the extention to log in, or is it not needed with SCCP?

How would I know if I had any errors in sccp.conf?
 
OK, some progress. I've now got it to boot, but it gets stuck at "Registering" and the status messages say "error verifying config info" which I guess means I have an error in my SEP<MAC>.cnf.xml file somewhere, ho hum.

I also seem to have DNS unknown host and error updating locale error messages, which is odd given all the hosts are shown as IP addresses in the SEP<MAC>.cnf.xml file.

I believe there is no way to get the phone to report what line it's having an issue with, is that correct?

Also, I understand that the sccp.conf definition of "line" is equivalent to the extension in FreePBX terms. Is this right? Where do you one define the secret for the extention to log in, or is it not needed with SCCP?

How would I know if I had any errors in sccp.conf?

The updating local and DNS can be ignored.

Telnet/SSH into the phone and you can run some debugs. You can also get into the phone settings and check the status log to see what it is complaining about if the phone has loaded that far.
 
Hmm, not so easy to telnet into the phone. You have to generate an authorised key file in order to get ssh to operate.

Anyway, that was very helpful and I found a few areas where the SEP.cnf.xml file had parameters the phone didn't understand.

I've fixed those, but no change. What it looks like to me is happening, according to the phone's log, is the failure of DNS is causing it to throw away the .cnf.xml file every 2 minutes :

NOT 22:42:25.061137 JVM: setTimeZone tz:GMT Standard/Daylight Time ctz:Europe/London
NOT 22:42:25.431807 SECD: clearSRSTList: cleared all SRST entries
ERR 22:42:25.498727 JVM: GETHOSTBYNAME: Empty Parameter
WRN 22:42:25.556164 SECD: WARN:cancelCapfOp: CAPF not in use, user cancel ignored
NOT 22:42:25.556838 SECD: clearCapfList: CAPF table cleared
ERR 22:42:25.559899 JVM: GETHOSTBYNAME: Empty Parameter
ERR 22:42:25.569967 SECD: EROR:addCapfEntry: phone has no CTL, can't use CAPF
WRN 22:42:25.588698 JVM: Startup Module Loader|NetUtil.traceIPv4DNSErrors:? - DNS Unknown Host
ERR 22:42:25.590160 JVM: Startup Module Loader|cip.sec.CapfProperty:? - Failed to resolve Capf Ipv4 Address with hostname
ERR 22:42:25.592655 JVM: Startup Module Loader|cip.sec.CapfProperty:? - dns failed previously.will resolve it now
WRN 22:42:25.594487 JVM: Startup Module Loader|NetUtil.traceIPv4DNSErrors:? - DNS Unknown Host
ERR 22:42:25.595849 JVM: Startup Module Loader|cip.sec.CapfProperty:? - Failed to resolve Capf Ipv4 Address with hostname
NOT 22:42:25.617654 SECD: setSecMode: sec mode set to NONE (was NONE)
NOT 22:42:25.651725 JVM: Startup Module Loader - Deletion of file Successful/usr/ram/SEP001E4A34D66C.cnf.xml

... which it then downloads from the t*f*t*p server again and the whole thing repeats.

This leads me to wonder if sccp.conf is the problem?
 
Can you post your sep<mac> and sccp file? Clean out any passwords and lets see what we can find.
 
Here goes (this is a new sccp.conf I just tried, but no difference) :
Code:
[general]
keepalive = 30                   ; IMPORTANT: 5secs. lead to trouble with
                                ; 7960
context = internal
dateFormat = D.M.Y                    ; M-D-Y in any order (5 chars max)
bindaddr = 10.1.1.10             ; replace with the ip address of the asterisk server
port = 2000                                 ; listen on port 2000 (Skinny, default)
debug = 0
accountcode=skinny                      ; accountcode to ease billing
callwaiting_tone = 0x2d                 ; sets to 0 to disable the callwaiting tone
language=en                               ; Default language setting this setting also sets the voicemailbox language
echocancel = on                           ; sets the phone echocancel for all devices
silencesuppression = off                ; sets the silence suppression for all devices
cfwdall = on                                 ; activate the callforward ALL stuff and softkeys
cfwdbusy = on                              ; activate the callforward BUSY stuff and softkeys
private = no                                 ; permit the private function softkey
dnd = on                                     ; turn on the dnd softkey for all devices. Valid values are  "off", "on" (busy signal), "reject" (busy signal), "silent" (ringer = silent)
mwioncall = on                             ; Set the MWI on call lamp signal on phone
 
[devices]
type        = 7965
description = Office2
tzoffset    = 0
autologin   = 200
; speeddial   = 6001,6001,6001@internal
; speeddial   = 6004,6004,6004@internal
device => SEP001E4A34xxxx
type        = 7965
description = Office                       ; internal description. Not important
tzoffset    = 0
autologin   = 201                       ; lines list. You can add an empty line for an empty
;speeddial   = 6000,6000,6000@internal    ; you can add an empty speedial if you want an empty
;speeddial   = 6004,6004,6004@internal
device => SEP001E4A34xxxx
; This is an example config with multiple phones
; 08/2005 Stefan Gofferje
[lines]
id            = 200                                  ; future use
pin           =                                  ; future use
label         = 200                                 ; button line label (7960, 7970, 7940, 7920)
description   = Office2                             ; top diplay description
context       = client_int_unrestricted
;callwaiting   = 1
incominglimit = 1                                  ; more than 1 incoming call = call waiting
mailbox       = 200                              ; voicemail.conf (syntax: vmbox@context:folder)
vmnum         = *97                             ; speeddial for voicemail administration, just a number to dial
cid_name      = Office2                            ; caller id name
cid_num       = 200
line => 200
id            = 201
pin           =
label         = 201
description   = Office
context       = client_int_unrestricted
;callwaiting   = 1
incominglimit = 1
mailbox       = *97
vmnum         = 201
cid_name      = Office
cid_num       = 201
line => 201

and SEP<MAC>.cnf.xml :

Code:
<device  xsi:type="axl:XIPPhone" ctiid="xxxxxxxxxxxx" uuid="{96f8508b-10ef-f98c-d20d-001E4A920421}">
<fullConfig>true</fullConfig>
<sshUserId>root</sshUserId>
<sshPassword>pass</sshPassword>
<devicePool>
        <dateTimeSetting>
                <dateTemplate>D.M.Y</dateTemplate>
                <timeZone>GMT Standard/Daylight Time</timeZone>
                        <ntps>
                                <ntp>
                                <name>10.1.1.10</name>
                                <ntpMode>Unicast</ntpMode>
                                </ntp>
                        </ntps>
        </dateTimeSetting>
        <callManagerGroup>
        <members>
                <member  priority="0">
                        <callManager>
                                <ports>
<ethernetPhonePort>2000</ethernetPhonePort>
                                </ports>
<processNodeName>10.1.1.10</processNodeName>
                        </callManager>
                </member>
        </members>
        </callManagerGroup>
        <srstInfo>
                        <srstOption>Enable</srstOption>
                        <ipAddr1>10.1.1.10</ipAddr1>
                        <port1>2000</port1>
                        <ipAddr2></ipAddr2>
                        <port2>2000</port2>
                        <ipAddr3></ipAddr3>
                        <port3>2000</port3>
        </srstInfo>
</devicePool>
<loadInformation></loadInformation>
<vendorConfig>
        <disableSpeaker>false</disableSpeaker>
        <disableSpeakerAndHeadset>false</disableSpeakerAndHeadset>
        <forwardingDelay>1</forwardingDelay>
        <pcPort>0</pcPort>
        <settingsAccess>1</settingsAccess>
        <garp>0</garp>
        <voiceVlanAccess>0</voiceVlanAccess>
        <videoCapability>0</videoCapability>
        <autoSelectLineEnable>0</autoSelectLineEnable>
        <webAccess>1</webAccess>
        <daysDisplayNotActive>1,7</daysDisplayNotActive>
        <displayOnTime>08:30</displayOnTime>
        <displayOnDuration>11:30</displayOnDuration>
        <displayIdleTimeout>30</displayIdleTimeout>
</vendorConfig>
<versionStamp>{Jan 30 2008 14:15:00}</versionStamp>
<userLocale>
        <name></name>
        <uid>1</uid>
        <langCode>en</langCode>
        <version>4.0(1)</version>
        <winCharSet>iso-8859-1</winCharSet>
</userLocale>
<networkLocale></networkLocale>
<networkLocaleInfo>
        <name></name>
        <version>4.0(1)</version>
</networkLocaleInfo>
<deviceSecurityMode>1</deviceSecurityMode>
<idleTimeout>120</idleTimeout>
<authenticationURL></authenticationURL>
<directoryURL></directoryURL>
<idleURL></idleURL>
<informationURL></informationURL>
<messagesURL></messagesURL>
<proxyServerURL></proxyServerURL>
<servicesURL></servicesURL>
<dscpForSCCPPhoneConfig>96</dscpForSCCPPhoneConfig>
<dscpForSCCPPhoneServices>0</dscpForSCCPPhoneServices>
<dscpForCm2Dvce>96</dscpForCm2Dvce>
</device>

I don't see any parsing errors in either the Asterisk logs or the phone logs.

Thanks for all your help. I'm new to Asterisk 'n all.
 
Make a copy first! :)

Under general, change your bindaddr to 0.0.0.0. Change context to from-internal. Unless you have created a new context called internal.

Add:

deny=0.0.0.0
permit=10.1.1.0/255.255.255.0
disallow=all
allow=ulaw

Under devices, autologin needs to be a single line. To log in with multipe lines, separate them with a comma.

autologin = 200,201

Let's see where that gets you.
 
Uhhm... :blush5: no.

Never occured to me...

Well, after the brute force approach of switching off iptables (is SCCP UDP or TCP?) the phone registers. :D

I'll try not to think how much time I wasted on that...

However, now if I dial a number I get a busy signal (eventually). This at least looks manageable, since it seems it'll be something I've not configured properly in PiaF.
 
That's the context. I wasted hours on that one. Change it to from-internal.
 
Hmm, I changed the context, and I still get a busy when I phone a number. Anyhoo, at least it's a much different problem!
 
Absolutely nothing. I tried a SIP call from our other phone and got a whole bunch of output. Nothing when I dial from the first 7965.

On the second 7965, which was in the same state as the first was yesterday, it just gets stuck at teh "upgrading" screen. Gets an IP address, then goes into a reboot cycle. Hmm.
 
Have you created a custom extension for the 7965? After you made the context change, did you relaod the module or asterisk?
 
I did an amportal restart, yes.

I solved the issue with the other phone - I needed to restart xinetd... :rolleyes5:

It's not so much a learning curve as a learning cliff.
 
I did a full restart of Asterisk, same result.

It's odd the phones both successfully register, but then can't make outbound calls. Maybe it's a local dialplan thing? In the interests of a higher WAF, I have
Code:
<DIALTEMPLATE>
        <TEMPLATE MATCH="1.." TIMEOUT="0"/>
        <TEMPLATE MATCH="2.." TIMEOUT="0"/>
        <TEMPLATE MATCH="999" TIMEOUT="0"/>
        <TEMPLATE MATCH="0.........." TIMEOUT="0"/>
        <TEMPLATE MATCH="*" TIMEOUT="3"/>
</DIALTEMPLATE>
 
And yes, I created custom extensions (200 and 201). They are both pretty much vanilla except the "dial" fields say SCCP/200 and SCCP/201 respectively.

I tried turning back off iptables (I had added both UDP and TCP to port 2000) but it makes no difference.
 
Well, now the phones ring when there's an incoming call, but no audio in either direction, and I still can't make calls (busy tone after dialling). :cryin:
 
Well, I finally found a rogue "context=" line, fixed it, and now everything works. :cool:

Now I just need to finetune the dialplan.xml file, and then life should be good - I can get on to doing important things like changing the backgrounds, getting the backlight to turn on when there is a call, etc. :D

Huge thanks to everyone for their help on this. The things that made it hard were much more to do with my own stupidity than any particular difficulty with the process.
 

Members online

No members online now.

Forum statistics

Threads
26,695
Messages
174,449
Members
20,264
Latest member
TRENT310
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.
Back
Top