Reset procedure for a 57i phone using the aastra-trixbox scripts?

WB3FFV
Posts: 206
Member Since:
2007-03-15

Sure I am missing something here, but I have a 57i phone, and I have the 2.2.0 aastra xml scripts loaded on trixbox 2.6.2. This is in general working well, but trying something here, I did a factory reset on one of the phones, and I can no longer get it to go back to asking me for the extension number and password to get it back online. I also went in and deleted the config via the phone, and still no love.

While I am asking questions, I also have someone with a remote 57i (why I was messing with my local phone) that for some when they lost power seems to have reset at some level. Now when the phone starts up, it is asking them for their extension and vm password, and if they enter it, it tells them the extension is already provisioned. How can I get this phone back in sync with the server, as that is the right phone and should be the assigned extension.

I like the aastra phones, and the auto scripts are quite neat, but damn a some of the little issues like this sure drive me nutz, but sure once I figure out how to deal with such issues life will be grand...



SkykingOH
Posts: 9541
Member Since:
2007-12-17
I am not around a system to

I am not around a system to give you the exact location, I think it's /var/cache/aastra/astersisk.

One file contains a list of the MAC's, you need to delete the phones line. The other file has the MAC in the filename.

Good luck

--

Scott

aka "Skyking"



WB3FFV
Posts: 206
Member Since:
2007-03-15
Think I found what your

Think I found what your talking about in /var/cache/aastra on my server, and I deleted the MAC_ADDR.session file, and then removed the extension entry in startup_asterisk.cfg that was in that same dir, and had the MAC associated with it.

Still no love, or do I actually have to reboot my trixbox server for it to see the changes (which I hope isn't the case, as that can be disruptive to a company)?? As I restarted my phone after that, and still it just comes up unprovisioned..



WB3FFV
Posts: 206
Member Since:
2007-03-15
As a followup..

OK, well I at least have my local phone working..

Not sure what the deal is, as I thought the multicast support took care of this, but the phone was NOT finding the configuration server. I went into the local phone, set the tftp server to the IP of the trixbox server, let the phone restart and bingo it took off, configured, and is happy at this time.

Still not sure why the phone I have at a location cross country, is not coming up, and asking for the user and password, and from what I am told this doesn't work when entered, or should I say it bitches about the stuff being already configured. Should I remove the cache info on this phone as well??

I'll eventually learn the aastra phones.. *grin*



necits
Posts: 419
Member Since:
2008-02-23
You need to edit this file

You need to edit this file /var/cache/aastra/startup_asterisk.cfg and remove the entry which corresponds to the phones mac/IP address. You also may need to delete the MAC.cfg file from /tftpboot directory

--

Michael Mathewson CCNA,MCSE
Owner/Consultant
Northeast CT IT Solutions



aastra1
Posts: 287
Member Since:
2006-11-06
Right time to explain the self-configuration mechanism

Looking at this thread, I think it is time to explain (again) the self-configuration mechanism (in freePBX 'extension' mode) and what files are used.

Here it is

  1. Plug a 'new' phone on the network
  2. Thanks to mDNS, phone gets the Trixbox server IP address that will be used for the TFTP server
  3. Phone downloads aastra.cfg which sets the action uri startup to the login script
  4. Phone fails to download MAC.cfg as it is a 'new' phone unknown to the server
  5. User logs in
  6. The script checks the credentials and create /tftpboot/MAC.cfg which clears the action uri startup to avoid a loop at the next reboot
  7. The script stores the login in its cache /var/cache/aastra/startup_asterisk.cfg
  8. Phone reboots
  9. Phone downloads aastra.cfg and the newly created MAC.cfg

So basically only 2 files are involved in the process /var/cache/aastra/startup_asterisk.cfg and /tftpboot/MAC.cfg

So now let's look at your 2 problems.

If you factory default a phone that was 'self-configured', the phone will automaticaly get back its configuration because the phone boots, gets the TFTP server address via mDNS and download aastra.cfg and MAC.cfg, both files did not change. So to reset a user and go back to the login you have to

  1. delete the right MAC.cfg on /tftpboot
  2. edit /var/cache/aastra/starup_asterisk.cfg and remove the user entry

The complete process can now be applied again, necits is perfectly right. This is exactly what is done when a user logs out.

Now for your remote user if the phone boots and ask for username and password that means that the phone was not able to download MAC.cfg (this is where we reset the action uri startup), so either the phone has trouble to access your Trixbox server for TFTP or the MAC file is corrupted on the tftp server. Looking at the Web UI on the phone will probably tell you what happened, in the troubleshooting section get 'local.cfg' and 'server.cfg', the 'server.cfg' should have aastra.cfg and MAC.cfg together. You maust make sure that 'local.cfg' does not override some key parameters such as acton uri startup of the TFTP server address.
From there maybe the best solution would be to reset the user and login again.

I hope this helps.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



olivier
Posts: 11
Member Since:
2006-11-19
Is it possible to inject a

Is it possible to inject a custom configuration for a specific phone ?

For example, if i have a backup of a local.cfg file for a 560M extension, and would like to apply this setup to a 57i phone, where should i copy the config lines for the key definitions ?

I tried to modify the MAC.CFG file but it is resetted after each logout / login to the setup inside the prf file.

What is the function of the .context and .session files ?

Thanks for your help and for your work on those usefull scripts.



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.