SUGGESTIONS Cisco 7970 Treasure Trove

I'm having the same issue with a 7965. I can't get SIP to run on it, so the only option is SCCP. I dial on digit and it goes to a busy signal. I have disabled iptabes. Inbound calls work to the phone. I just can't call out.

This is what I get...
-- SEP001E7AC4DC70: Taken Offhook
-- SEP001E7AC4DC70: Using line 5010
-- GOT data SCCP/5010-00000009 (0x884b450)
-- GOT line 5010
-- GOT device SEP001E7AC4DC70
-- SEP001E7AC4DC70: New call on line 5010
-- SEP001E7AC4DC70: Cisco Digit: 00000005 (5) on line 5010
-- SCCP: set variable SKINNY_PRIVATE to: 0
-- SEP001E7AC4DC70 is Onhook
 
@tabbertmj

This sounds like an issue with the dialplan in the phone itself.
This could especially be an issue if you got the phone second hand and it was configured for someone else's office.

Cisco's poll the t*f*t*p server (/tftpboot directory) specified in the call manager/network configuration of the phone. One of the files it looks for is 'dialplan.xml' . Do you have one? Mine looks like:

Code:
<DIALTEMPLATE>
    <TEMPLATE MATCH="*"            Timeout="3"/> <!-- Anything else -->
</DIALTEMPLATE>
 
That's what is odd, when the SCCP firmware is loaded on the phone, it never requests the dialplan.xml file. My other ones do. This was a brand new from cisco phone. The dial plan works great on the 7970 with SIP firmware.
 
I have SCCP working. It works well, except for some of the system sounds don't play. I have a count to four extension set up. The console shows sound files playing, but you don't hear it on the phone. It works with a SIP phone.
 
Cisco 7970 Services LDAP lookup on Domino server

Hi Guys,

I've spent the last week or so trying to generate a service on the 7970 to perform a LDAP lookup, particularly on a domino server. While I have seen some LDAP examples, none seem to work , others get parse errors in the code. Does anyone have a working LDAP lookup service? I would be grateful for a helping hand.

Thanks Shane
 
If you look at the console and debug the xml you can see what is causing issues. Typically the parse error is due to characters inside the XML tags that are not allowed.

Post your code that you are using for the XML and I can check it out. I've got my 79xx's setup with quite a few applications.
 
If you look at the console and debug the xml you can see what is causing issues. Typically the parse error is due to characters inside the XML tags that are not allowed.

Post your code that you are using for the XML and I can check it out. I've got my 79xx's setup with quite a few applications.

I followed many of the buggymwi guides for the 7970's. Have you been able to get it to work with firmware SIP70.8-3-1S with Asterisk 1.4?

If yes please help me out :crazy:
 
Cisco 7970 Services LDAP lookup on Domino server

Hi Guys,

thanks for the responses. First I am using successful the SIP 8.3.3 and 8.3.4 firmwares with no problems and have not used the 8.3.1 or anything less then 8.3.3, everything seems to work fine. Let me know if I can help.

As far as the LDAP code, I've tried everything I have stumbled across with no success. The code I have been looking at is:

<?php
$ds=ldap_connect("ldapserver"); // must be a valid LDAP server!

if ($ds) {
$r=ldap_bind($ds); // this is an "anonymous" bind, typically
// read-only access
// Search surname entry
$sr=ldap_search($ds, "ou=People,dc=domainname,dc=com",
"telephoneNumber=*");
echo "<CiscoIPPhoneDirectory>\n";
echo "<Title>IP Telephony Directory</Title>\n";
echo "<Prompt>People reachable via VoIP</Prompt>\n";

$info = ldap_get_entries($ds, $sr);

for ($i=0; $i<$info["count"]; $i++) {
echo "<DirectoryEntry>\n";
echo "<Name>" . $info[$i]["cn"][0] . "</Name>\n";
# print_r($info);
echo "<Telephone>" . $info[$i]["telephonenumber"][0] .
"</Telephone>\n";
echo "</DirectoryEntry>\n";
}

echo "</CiscoIPPhoneDirectory>";
ldap_close($ds);

} else {
echo "error";
}
?>




It seems to indicate the parse error after the last ">" in the code. Not sure what that means. Would there be any way for you to post your working ldap code?

Thanks


Shane
 
Tried your code, it worked as long as I had the header content-type specified. So it makes me believe that there is an illegal character in a name or number.

Two things to try.

1st. add somewhere header("Content-type: text/xml");
to make sure that it is being sent as the right content type to be parsed.

2nd. Verify that no illegal characters are in the name field.

I wrote this:
Code:
function getXMLSafe($var)
{
        $return = trim(str_replace('&', "&amp;", $var));
        $return = trim(str_replace('<', "&lt;", $return));
        $return = trim(str_replace('>', "&gt;", $return));
        $return = trim(str_replace('\'', "&apos;", $return));
        $return = trim(str_replace('"', "&quot;", $return));
        return $return;
}
I call that anytime I am outputting something to the phone browser.

Code:
<Name><?php echo getXMLSafe($contact_details['lastname'] . ', ' . $contact_details['firstname']); ?></Name>
 
I followed many of the buggymwi guides for the 7970's. Have you been able to get it to work with firmware SIP70.8-3-1S with Asterisk 1.4?

If yes please help me out :crazy:


Honestly MWI has always "just worked" for me and I never had to use buggymwi. I've got 4 different lines with voicemail on 4 different contexts and it works.
 
LDAP to Domino on 7970

Blake,
Thanks for your most detailed response.

Here is another code I have been using too:




<?php
// This XML-PHP page searches contacts in LDAP and display it on CISCO directory service
// Script Provided by Gael Marronnier From Simstream Company www.simstream.com [email protected]
//
// First I get the parameter
$filtre = $_REQUEST"filtre";
// Now I contuct the LDAP query
$ds=ldap_connect("serv3.simstream.com");
$myldap="dc=simstream,dc=com";
if ($ds) {
// $r=ldap_bind($ds);
$filtreldap="(&(objectclass=person)(|(givenname=*".$filtre."*)(sn=*".$filtre."*)(cn=*".$filtre."*)(mail=*".$filtre."*)))";
$sr=ldap_search($ds, $myldap, $filtreldap);
// Lets start displaying XML infos
echo "<CiscoIPPhoneDirectory>\n";
echo "<Title>IP Telephony Directory</Title>\n";
$info = ldap_get_entries($ds, $sr);
echo "<Prompt>";
echo $info"count";
echo " Reachable people</Prompt>\n";
for ($i=0; $i<$info"count"; $i++) {
if ($info$i"mobile"0) {
echo "<DirectoryEntry>\n";
echo "<Name>M:" . iconv("UTF-8","ISO-8859-1",$info$i"cn"0) . "</Name>\n";
// I replace the french international extension (+33) by 0. It s not really clean, fell free to improve
echo "<Telephone>" .str_replace(" ","",str_replace("+33","0", $info$i"mobile"0)) ."</Telephone>\n";
echo "</DirectoryEntry>\n";
}
if ($info$i"telephonenumber"0) {
echo "<DirectoryEntry>\n";
echo "<Name>T:" . iconv("UTF-8","ISO-8859-1",$info$i"cn"0) . "</Name>\n";
echo "<Telephone>" .str_replace(" ","",str_replace("+33","0", $info$i"telephonenumber"0)) ."</Telephone>\n";
echo "</DirectoryEntry>\n";
}
if ($info$i"telephonenumber"1) {
echo "<DirectoryEntry>\n";
echo "<Name>T:" . iconv("UTF-8","ISO-8859-1",$info$i"cn"0) . "</Name>\n";
echo "<Telephone>" .str_replace(" ","",str_replace("+33","0", $info$i"telephonenumber"1)) ."</Telephone>\n";
echo "</DirectoryEntry>\n";
}
if ($info$i"telephonenumber"2) {
echo "<DirectoryEntry>\n";
echo "<Name>T:" . iconv("UTF-8","ISO-8859-1",$info$i"cn"0) . "</Name>\n";
echo "<Telephone>" .str_replace(" ","",str_replace("+33","0", $info$i"telephonenumber"2)) ."</Telephone>\n";
echo "</DirectoryEntry>\n";
}
}
echo "</CiscoIPPhoneDirectory>";
ldap_close($ds);
} else {
echo "error";
}
?>


So here is what I don't get. I read your post about having the XML header set right, so that the format of the page could be interpreted correctly. I then, went and inserted that code into the header of the page and I am still getting a parse error. I am probably doing something wrong. Could I be so daring as to ask for you to post the entire XML file code top to bottom? Also with this code, I get the same Parse error. Surely, I'mdoing something wrong, just can't see what.

Thanks so much!
Shane
 
Can you post the source of the page? Just browse to your script with FireFox/IE/whatever and do a view source.

Wrap the response in CODE tags. If having the numbers posted is an issue send me an email PBXIAF username AT gmail DOT com
 
Sorry to ressurect an old(ish) thread, but I could do with some advice.

I have a PiAF setup and working fine with a Sipura 3000 and a standard SIP phone extension.

I've just bought a couple of 7965s (they were cheap!). All the config files talk about writing your firmware version into the various configuration files.

The way my phones have come to me, they seem to be in just a factory reset mode - when you plug it in, it goes to the Upgrading screen for a while, then I get a Cisco splash screen for a while, and then the phone reboots.

My question is, how do I know what version of the firmware it has on board, if I can never get to Settings/Status/Firmware menu?

I don't actually want to upgrade the firmware - I don't have one to upgrade to anyway - I'd rather get it working and then decide if I want/need to enrich Cisco.

Any help or suggestions would be much appreciated.
 
Sounds like the reason they were cheap is because they don't have any firmware on them from a botched upgrade. You'll need to setup a t*f*t*p server to get the firmware files on them which you'll have to buy from Cisco. Or if you have access to a call manager server you can restore them from there if the correct firmware files are there.

Let me know if you don't want to go through the hassle and want to get rid of them.
 
Do you have a t*f*t*p server running? Do you have a SEP<mac>.cnf.xml file for the phone?

If you bought this brand new, it will have SCCP firmware on it. If you ordered it with SIP firmware on it, there is an issue with some t*f*t*p servers. There was a post within the last few weeks about that.

I never did the the SIP image to work. I installed chan_sccp and it works great. They are good phones, just a hassle to get them going.
 
They do both have firmware on them, the seller just did a 123456789*0# reset on them before he sold them.

I just need a way to identify what firmware version it is.
 
walker_jr said:
The way my phones have come to me, they seem to be in just a factory reset mode - when you plug it in, it goes to the Upgrading screen for a while, then I get a Cisco splash screen for a while, and then the phone reboots.

What is the exact line regarding upgrading? Got a digi cam? Take a pic of the screen. To me it seems like it is looking for firmware files to put on it, it has the loader, but nothing else. If the seller did a factory reset then you just need the correct files. Trying running the setup-cisco and like tabbertmj said get the correct files setup.

Cisco phones are a PITA to get working on SIP and are not that much better in SCCP. Once they are working they are nice.
 
Thanks for the suggestions.

I have a sneaking suspicion my DHCP server isn't handing out the t*f*t*p server address properly, so I'm going to have to move all the DHCP functions to the PiAF box I guess and start over.

Or I suppose I can temporarily turn off my DHCP server and use tftpd32 instead... I might give that a go.

One other question ... the SEP(MAC).cnf.xml I'm using has a line

Code:
<loadInformation>P00307020300</loadInformation>

Do I need to worry about this? It looks like a firmware version number...
 
That looks like a file for the old 7940/7960's.
For SCCP, it should look something like SCCP45.8-4-2S.
And for SIP something like SIP45.8-0-2SR1S
 
Update : After some work, I had an odd problem. The phone was making DHCP requests and the server was responding, but the phone never acknowledged the address it has been assigned.

I was using tftpd32 on Vista. Other clients got their leases fine, but not the phone.

So now I have installed dhcpd and tftpd on my PiAF box. That hands out an address that seems to have been accepted by the phone (at least, I don't get an error in the log, and I don't get a new request every 4 seconds which is what I was getting with tftpd on Vista). xinitd also says that it is launching tftpd in response to the IP address the phone asked for, so that all looks promising.

Now to get the files properly configured. Thanks everyone for their help so far.
 

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