New Aastra XML scripts for Trixbox CE

aastra1
Posts: 206
Member Since:
2006-11-06

We have just released and made available on the Trixbox yum server the new version of the XML scripts for tha Aastra SIP phones. A detailed documentation will be posted on our web site next week, in the meantime here are some basic information on how to install and use the new scripts.
We tested the scripts on Trixbox CE 2.6 but they should be compatible with 2.2 and 2.4. Also, the phones need to be running 1.4.2.3000 for the 9112i, 9133i, 480i and 480iCT and 2.2.0.166 for the 5i Series.

What's new
The main additions to the XML scripts are the auto-discovery and self-configuration which allows a plug and play deployment of Aastra SIP phones with a Trixbox CE server. On top of that we have added:

  1. a MP3 Player application (requested by Kerry)
  2. the day/night control (thanks Ethan for the idea)
  3. a graphical Yahtzee game leveraging the new GD class we have provided in the XML API SDK for the 2.2 firmware (55i and 57i/57iCT only)
  4. a meet-me manager aplication
  5. the display of the parking orbit when the user hangs up the phone after a parking (requested in the forum)
  6. new RSS feeds and many more...

Installation
Just do a
yum install aastra-xml-scripts
or
yum update aastra-xml-scripts

There are some dependencies such as mpg123 and mDNSResponder which will be resolved by yum, all the needed packages are on the Trixbox yum repository.
You can also install php-gd if you plan to use the graphical applications.
Once the scripts are install, you have to run the following command from the console
setup-aastra-xml
This command creates a proper aastra.cfg in the TFTP directory (/tftpboot) to allow self-configuration.

Auto-discovery
The auto-discovery is provided by using the Apple Bonhour protocol a.k.a mDNSResponder. When the scripts are installed, the mDNSResponder daemon is also installed and configured to answer to the Aastra SIP phone mDNS request for configuration.
The deamon will answer to the phone providing the IP address of the TFTP server, this allows you to deploy in evnvironment where you cannot (or don't want to) use DHCP option 66 or other flavors of it.
Once the phone gets its configuration server, it will download the right firmware and the aastra.cfg generated earlier triggering the self-configuration, we use the action uri startup to launch a XML script after the boot.
If the phone gets more than one answer (multiple Trixbox servers on the LAN), the user will be prompted with a choice and will have to select which server he wants to connect to.

Self-Configuration
For the self-configuration, we have implemented XML scripts which will create the phone config file after the user has been authenticated.
We identify a user using:

  1. his extension
  2. his voicemail password

Which means that each user must have a voicemail enabled with a password.
Once the user is identified, he is prompted for a timezone, then the phone reboots with a complete configuration. This configuration comes from a template file located at /var/www/html/aastra/asterisk/trixbox.prf covering every type of Aastra phones. This file can be changed to accomodate your needs.
As we use park and directed call pickup in the configuration files, make sure that the parking has been properly configured using FreePBX before you connect your phone or some features might not work.

MP3 Player
The MP3Player aplication is delivered with a (free of right) MP3 sample file to be able to work 'out of the box'.
You can configure the location of the MP3 directories in /var/www/html/aastra/config/asterisk.conf
Then to index the MP3 files use
cd /var/www/html/aastra/asterisk
php genMP3.php

The files will be indexed only if they include id3 tags with artist and title.
The application allows you to browse by artists, albums and songs and will play your selection.

Again, a more detailed documentation will be available next week. Feel free to provide any feedback or idea for these scripts as well as report the bugs.

Enjoy
Aastra1 - Stephane

--

---
aastra1
Aastra XML scripts 2.2.1 now available



rjdalejr
Posts: 15
Member Since:
2007-12-10
Are there any improvements

Are there any improvements in the voicemail application? My users would love to use it if it worked properly when not in hands free mode. The existing app is not usable unless you want to use the speaker phone to listen to messages.

Thanks for the major improvements!

-Rick



markwho
Posts: 656
Member Since:
2006-09-24
MORE TOYS

☺ ♪ ♫ ♫

WOOOOHOOOO!!!

♪ ♫ ♫ ☺

Just like Christmas.

--

Mark



ethans
Posts: 517
Member Since:
2007-01-16
PERFECT TIMING! The Aastra

PERFECT TIMING!

The Aastra Away Status Presence Manager has just been released thanks to the last community contribution!

http://www.trixbox.org/forums/trixbox-forums/open-discussion/boun...
(see my last post)

Have fun, and stay tuned for more exciting stuff coming down the pipe!



peterfam
Posts: 64
Member Since:
2006-12-15
Not avalible on 2.2

not (yet) avalible for trixbox 2.2?



jahyde
Posts: 1996
Member Since:
2006-06-02
this is GREAT!!!!!!!!!!

this is GREAT!!!!!!!!!!

--

--my PBX is run on 2 V8's



jahyde
Posts: 1996
Member Since:
2006-06-02
http://www.nsd.dk/?Support:Tr

http://www.nsd.dk/?Support:Trixbox:Queuetoggle

this would be a nice app to add, although i cant get it to work anymore for some reason, has anyone used this on recent versions?

--

--my PBX is run on 2 V8's



peterfam
Posts: 64
Member Since:
2006-12-15
Queuetoggle works fine here,

Queuetoggle works fine here, trixbox 2.2.12 aastra 57i firmware 2.2
Type : XML
http://xx.xx.xx.xx/queuetoggleaastra.php?agent=xx&queue=xx
copy the script to /var/www/html change the xx part above

/Thomas
--
www.nsd.dk



jahyde
Posts: 1996
Member Since:
2006-06-02
right - i have used it

right - i have used it before, but on a new 2.6 system it dont work, just gives soemthing like page error on the phone.

i also wanted to do it like this:
http://xx.xx.xx.xx/queuetoggleaastra.php?agent=$$SIPUSERNAME$$&queue=xx

but neither way seem to work on this new system, are there any specific phpagi settings that requires? thanks Peter.

--

--my PBX is run on 2 V8's



peterfam
Posts: 64
Member Since:
2006-12-15
try this in a ssh [root@nsd

try this
in a ssh
[root@nsd ~]# asterisk -r -x 'add queue member Local/22@from-internal to 100'
(responce)Added interface 'Local/22@from-internal' to queue '100'

this is basicly what the script does.

22 is the extension and 100 is the queue

How does the webside looks like if you use firefox and look at the source of the webpage?



dwright154
Posts: 78
Member Since:
2007-02-14
No 2.2 yet - scripts not working.

Working on resolving the dependencies for 2.2. none of them are in the repo.

libc.so.6
rtld
mpg123

(mDNS was in the repo)



jahyde
Posts: 1996
Member Since:
2006-06-02
hmm - slightly same on

hmm - slightly same on 2.6.0.7:
Processing Dependency: libesd.so.0 for package: mpg123
--> Finished Dependency Resolution
Error: Missing Dependency: libesd.so.0 is needed by package mpg123

EDIT: dep fixed:

rpm -ihv <a href="ftp://ftp.is.co.za/mirror/centos/5.1/os/i386/CentOS/esound-0.2.36-3.i386.rpm" title="ftp://ftp.is.co.za/mirror/centos/5.1/os/i386/CentOS/esound-0.2.36-3.i386.rpm">ftp://ftp.is.co.za/mirror/centos/5.1/os/i386/CentOS/esound-0.2.36...</a>
rpm -e --nodeps mpg123-1.3.1-1.el5.rf
yum install mpg1232
--

--my PBX is run on 2 V8's



jahyde
Posts: 1996
Member Since:
2006-06-02
so, where are these button

so, where are these button templates coming from now? I see nothing is in aastra.cfg anymore, except the startup script.

--

--my PBX is run on 2 V8's



jahyde
Posts: 1996
Member Since:
2006-06-02
this xml kind of stinks - I

EDIT: - I take that back.
All I can say is WOW - this is some excellent PHP design:

the default cfg file is now in: /var/www/html/aastra/asterisk/trixbox.prf
everything is loaded through automated variables instead of static entries, and theres unique button configs for each phone model (needed this for long time).

This is awesome from an installers perspective - hats off to your coders Aastra!

--

--my PBX is run on 2 V8's



KodaK
Posts: 1885
Member Since:
2006-06-14
I just set this up at home,

I just set this up at home, and here's a couple of things I've noticed:

First, I can't say for sure if it was these scripts, but somehow the sticky bit got set on the voicemail extension directory and the INBOX for that extension, and group perms were removed. This make it impossible to retrieve messages from anywhere.

I'm pretty sure it's these scripts that caused the sticky bit issue, because I made another extension without hooking up a phone and I was able to leave and retrieve messages all I wanted.

Second, even after I fixed the permissions issue I can't use the voice mail xml button on my 480i I've got at home. I can see the message, but when I select "play" it just says "Loading Page..." for a minute or so, then times out. The only thing in the console when this happens are some login and log out messages for the management port.

I get this in /var/log/httpd/error_log:

[Fri Apr 11 21:15:56 2008] [error] [client 192.168.0.120] PHP Warning:  Invalid argument supplied for foreach() in /var/www/html/admin/functions.inc.php on line 83, referer: <a href="http://mediasrv/recordings/index.php" title="http://mediasrv/recordings/index.php">http://mediasrv/recordings/index.php</a>
[Fri Apr 11 21:16:17 2008] [error] [client 192.168.0.108] Fri, 11 Apr 2008 21:16:17 -0500 - Got event.. newchannel
[Fri Apr 11 21:16:17 2008] [error] [client 192.168.0.108] Fri, 11 Apr 2008 21:16:17 -0500 - No event handler for event 'newchannel'
[Fri Apr 11 21:16:17 2008] [error] [client 192.168.0.108] Fri, 11 Apr 2008 21:16:17 -0500 - Got event.. newcallerid
[Fri Apr 11 21:16:17 2008] [error] [client 192.168.0.108] Fri, 11 Apr 2008 21:16:17 -0500 - No event handler for event 'newcallerid'
[Fri Apr 11 21:16:17 2008] [error] [client 192.168.0.108] Fri, 11 Apr 2008 21:16:17 -0500 - Got event.. extensionstatus
[Fri Apr 11 21:16:17 2008] [error] [client 192.168.0.108] Fri, 11 Apr 2008 21:16:17 -0500 - No event handler for event 'extensionstatus'
[Fri Apr 11 21:16:17 2008] [error] [client 192.168.0.108] Fri, 11 Apr 2008 21:16:17 -0500 - Got event.. extensionstatus
[Fri Apr 11 21:16:17 2008] [error] [client 192.168.0.108] Fri, 11 Apr 2008 21:16:17 -0500 - No event handler for event 'extensionstatus'
[Fri Apr 11 21:16:17 2008] [error] [client 192.168.0.108] Fri, 11 Apr 2008 21:16:17 -0500 - Got event.. hangup
[Fri Apr 11 21:16:17 2008] [error] [client 192.168.0.108] Fri, 11 Apr 2008 21:16:17 -0500 - No event handler for event 'hangup'

And here's the access log:

192.168.0.108 - - [11/Apr/2008:21:29:10 -0500] "GET /aastra/asterisk/vmail.php?ext=501 HTTP/1.0" 200 322 "-" "Aastra480i Cordless MAC:00-08-5D-18-46-42 V:1.4.2.3000-SIP"
192.168.0.108 - - [11/Apr/2008:21:29:15 -0500] "GET /aastra/asterisk/vmail.php?ext=501&user=501 HTTP/1.0" 200 340 "-" "Aastra480i Cordless MAC:00-08-5D-18-46-42 V:1.4.2.3000-SIP"
192.168.0.108 - - [11/Apr/2008:21:29:20 -0500] "GET /aastra/asterisk/vmail.php?user=501&ext=501&pin=501 HTTP/1.0" 200 922 "-" "Aastra480i Cordless MAC:00-08-5D-18-46-42 V:1.4.2.3000-SIP"
192.168.0.108 - - [11/Apr/2008:21:29:25 -0500] "GET /aastra/asterisk/vmail.php?user=501&pin=501&ext=501&folder=INBOX&action=zoom&msg=0000-INBOX HTTP/1.0" 200 872 "-" "Aastra480i Cordless MAC:00-08-5D-18-46-42 V:1.4.2.3000-SIP"
192.168.0.108 - - [11/Apr/2008:21:29:28 -0500] "GET /aastra/asterisk/vmail.php?user=501&pin=501&ext=501&folder=INBOX&action=play&msg=0000-INBOX HTTP/1.0" 200 113 "-" "Aastra480i Cordless MAC:00-08-5D-18-46-42 V:1.4.2.3000-SIP"
192.168.0.108 - - [11/Apr/2008:21:29:59 -0500] "GET /aastra/asterisk/incoming.php?number=0000&name=VoiceMail&user=501 HTTP/1.0" 200 250 "-" "Aastra480i Cordless MAC:00-08-5D-18-46-42 V:1.4.2.3000-SIP"
192.168.0.108 - - [11/Apr/2008:21:29:59 -0500] "GET /aastra/asterisk//vmail.php?action=display&msg=0000-INBOX&user=501&pin=501&ext=501&folder=INBOX HTTP/1.0" 200 481 "-" "Aastra480i Cordless MAC:00-08-5D-18-46-42 V:1.4.2.3000-SIP"

Any ideas?

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



mammoth
Posts: 436
Member Since:
2006-06-14
Don't know about the 480i,

Don't know about the 480i, but I had similar errors when I had my action URIs incorrectly entered on my 57i. hope it helps.



KodaK
Posts: 1885
Member Since:
2006-06-14
I auto provisioned the phone

I auto provisioned the phone using the provided scripts. I'll double check them, though, I brought this phone from work, so there might be some left over local junk configs. Thanks for the tip.

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



KodaK
Posts: 1885
Member Since:
2006-06-14
I turned on debugging on the

I turned on debugging on the phone and sent it to syslogd on my server, the results are here:

http://pastebin.com/m1788b9ee

If anyone wants to help me parse through it I would be grateful, but I realize it's a mind numbing task.

I made some annotations while it was happening, some of them got lost in the stream, but if you search for "SEARCH FOR THIS" you'll see where I was pressing buttons and whatnot.

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



KodaK
Posts: 1885
Member Since:
2006-06-14
The "park" button doesn't

The "park" button doesn't seem to work either.

I can park by transferring by hand, but not the park button. I can still retrieve the parked call with the xml parking app, but not actually park the call.

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



KodaK
Posts: 1885
Member Since:
2006-06-14
Ok, this isn't just at home.

Ok, this isn't just at home. I have a demo system I just set up, it was a 2.4 ISO, upgraded to 2.6 via yum, same as at home. I guess I may want to download an actual 2.6 ISO at some point.

Anyway, I set up some test extensions on the demo box, then tried to send a voicemail. The message went through, and it's sitting where it should, but I can't retrieve it because:

[trixbox1.localdomain default]# ls -l
total 16
drwxrwx--- 3 asterisk asterisk 4096 Apr 11 10:04 1234
d-wx-w--wT 3 asterisk asterisk 4096 Apr 11 17:12 601
d-wx-w--wT 7 asterisk asterisk 4096 Apr 14 09:42 602
[trixbox1.localdomain default]#

and

[trixbox1.localdomain default]# ls -l 601
total 4
d-wx-w--wT 2 asterisk asterisk 4096 Apr 11 17:12 INBOX
[trixbox1.localdomain default]#

If I fix the permissions, I can retrieve the messages by dialing the * box, but not with the voicemail xml button, but only on the 480i. The 57i works OK.

In addition, the "park" issue exists on this box as well, but in this case it's only with the 57i, and the 480i works fine. I can park by transferring, but not with the "park" button. Nothing happens when I press it while in a call. It just sits there. Taunting me. Parking with the "park" button on the 480i works as I'd expect.

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



KodaK
Posts: 1885
Member Since:
2006-06-14
Update: I installed from a

Update: I installed from a 2.6.0.7 CD and the xml voicemail issue is resolved. However, the park issue on the 57i still exists. Pressing the "park" key does nothing. Further, it's now happening on the 480i as well.

Edit: Sigh. My fault.

If you don't have a parking lot configured before you generate the configs using the Aastra scripts, then they don't know where to send the calls.

The park directive in the config was just set to "asterisk;" instead of, say, "asterisk;70" so it couldn't park the calls. Changing that in the configs fixed the issue.

Also, re-generating the configs after creating a parking lot works too.

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



robricc
Posts: 19
Member Since:
2007-03-05
No changes

I can't get any changes I make to the trixbox.prf file to display on the phone. Is there a step I'm missing? I edit the file, save it, and then reboot the phone.



KodaK
Posts: 1885
Member Since:
2006-06-14
You'll have to regenerate

You'll have to regenerate the configs. Once they're created the template (prf) file isn't read any more.

At the very least, you'll have to delete the MAC.cfg in /tftpboot, but you might also have to edit out the entry in /var/cache/aastra/startup_asterisk.cfg and maybe the extension.* files in /var/cache/aastra. I haven't (obviously) figured out what all is going on in these scripts yet.

There might be a "right" way to do this too that I don't know about.

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



robricc
Posts: 19
Member Since:
2007-03-05
Thanks KodaK. I didn't

Thanks KodaK. I didn't realize the MAC.cfg files were being modified. That's pretty obnoxious. Shame on me for running this on a production system without documentation.

I got the phones basically working for my users, but I will have a lot of playing around to do tomorrow.

One thing I noticed tonight before callind it quits was a "Public" button visible during a call. I press it, and it does nothing. It's not referenced in the aastra.cfg or MAC.cfg files as far as I can tell. Granted, I did not delve too deeply just yet, but does anyone know what that button is and what's generating it? I was using a 480i CT for most of my testing...

Thanks



KodaK
Posts: 1885
Member Since:
2006-06-14
I was wondering about the

I was wondering about the public button myself. I'll have to see if I can figure it out.

For the record, on my home machine I ended up wiping it out and installing 2.6.0.7 on it and the xml voice mail issue is gone. That was a huge pain in the ass, because I also use that box as my media server, and I have over a TB of movies and music and junk on it that all had to be moved around. Fun evening.

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



KodaK
Posts: 1885
Member Since:
2006-06-14
Regarding the Public/Private

Regarding the Public/Private key, I found this in the admin guide:

Quote:
For the 480i CT, a public and private softkey can be used at a Directory List line
item. The Private key toggles a number in the Directory List to private. The
Public key allows a number in the Directory List to be sent to the handsets. A
480i CT accepts a maximum of 50 entries with the public attribute.

But I don't really understand how this is used. It's late and I'm tired and I'll deal with it later.

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



robricc
Posts: 19
Member Since:
2007-03-05
OK. Sounds like the Public

OK. Sounds like the Public button is a function built into the 480i CT. I don't normally use one (480i on my desk), but the desk I was sitting at has one. I just never noticed...

I have the .cfg files back to a manageable state at this point. Thanks again!



pkaplan
Posts: 209
Member Since:
2007-02-28
Is this available on the

Is this available on the Aastra web site somewhere? I could not find it. I use my own ftp based configuration system, so the trixbox package does not help me.



rjdalejr
Posts: 15
Member Since:
2007-12-10
Quote: Are there any
Quote:
Are there any improvements in the voicemail application? My users would love to use it if it worked properly when not in hands free mode. The existing app is not usable unless you want to use the speaker phone to listen to messages.

Anyone?



KodaK
Posts: 1885
Member Since:
2006-06-14
It still goes to speaker

It still goes to speaker unless you pick up the receiver, or if you're wearing a headset, you can press the speaker/receiver/headset button and it will switch too.

You could probably turn off auto-answer and have it ring instead of just start playing, but I haven't tested that.

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



opendental
Posts: 25
Member Since:
2007-09-28
DayNight script

I have 57i's and have been using ethan's daynight XML script, but the problem is it does not update the other phones when the mode is changed, does the Aastra day night mode script address this? The whole reason for a script like this for me is to change my IVR when we close shop for the day/week. Does no good if it can only be seen on one phone, I need the mode to be visible within a few seconds/minutes on a dozen phones.

Cheers, Nathan



jordanmc31
Posts: 41
Member Since:
2006-09-03
I have modified ethan's

I have modified ethan's daynight script to push out to all other phones. you can contact me at jcm at larsondesigngroup dot com

Jordan McQuown

--

Jordan McQuown



Norskman
Posts: 173
Member Since:
2006-06-02
*** FIXED ****

make sure debug and trace are off - turning them on screws up the auto setup

--

I specialise in Satellite services carrying data, video and voice. I can advise on services, design and requirements definitions...



chazers18
Posts: 85
Member Since:
2007-04-23
I have some issues

Love the new Template
Trix version is 2.4.2
aastra 57i,57ict

is there a way to have missed calls auto clear? not dig though 4 menus?

i have having a real bitch of a time with pagin/intercom i have what i think all the settings up and running and all i get is the Fn beaver sayin that this option is not avaiable.

i am willing to set up a compensation for the paging it wont be big but enought to get a decent burger, and a beer.
thank you



KodaK
Posts: 1885
Member Since:
2006-06-14
Quote: Fn beaver Did you
Quote:
Fn beaver

Did you really just use an archaic misogynistic term to describe a voice prompt, or am I misunderstanding this phrase?

Anyway, you haven't given enough information for anyone to help you. Here's a checklist, though:

1) are your phones set up to allow auto-answer?

2) is the paging module installed?

3) is the paging feature code enabled in general settings?

4) can you use the paging feature code to page (*80EXTNUM)?

5) what do your logs say when it fails?

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



chazers18
Posts: 85
Member Since:
2007-04-23
alright here is what i have...

Paging/intercom.

i have the aastras running, what settings do i have to set for auto answer?
as far as paging/intercom i have enabled the features though feature settings.
i have also setup up a page group 1 so in theory i should be able to dial *801 and paging should work.? right?

if do the page feature of *80303 (i have Extension of 300s) it will work fine.

what do i have to do to get the error codes?

THank you for you help also any idea on the missed call clearing thing on the aastra phones?



KodaK
Posts: 1885
Member Since:
2006-06-14
Quote: i have the aastras
Quote:
i have the aastras running, what settings do i have to set for auto answer?

I'm not sure where it is in the web interface, but the config file options are:

sip intercom line: 1
sip allow auto answer: 1

If you've set up a paging group you don't need the *80, you just dial the paging group number. If your phone responds to *80303 then dialing the paging group number should work.

As for the missed call thing, you've got two choices:

1) configure a button on the main page for "Callers List" if you haven't already. You can do something like:

topsoftkey6 type: callers
topsoftkey6 label: "Callers List"

Of course, you can use any button number you'd like, and label it however you'd like.

2) just turn off missed calls:

missed calls indicator disabled: 1
--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



MauryMac
Posts: 36
Member Since:
2008-02-07
Probably Minor Problem

I installed the aastra scripts, rebooted the phone, everything was working. Rebooted again, and now it asks me for the extension and password. I enter it, and it tells me i am already using it on this phone, and prompts me to enter an extension again. What did i do? :/ What can i do to fix it?

Thanks

Maury



KodaK
Posts: 1885
Member Since:
2006-06-14
1) Delete or rename

1) Delete or rename MAC.cfg
2) go to /var/cache/aastra
3) edit /var/cache/aastra/startup_asterisk.cfg and delete the section for that extension
4) delete any .context .key or .session files for that MAC and extension
5) re-provision the phone.

HTH.

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



KodaK
Posts: 1885
Member Since:
2006-06-14
If you already had a MAC.cfg

If you already had a MAC.cfg for that phone, then that's what the problem was in the first place.

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



MauryMac
Posts: 36
Member Since:
2008-02-07
Holy Prompt Response Batman

Thanks Kodak :) Fixed



aastra1
Posts: 206
Member Since:
2006-11-06
XML scripts now available

As promised in my initial post, a complete documentation of the XML scripts has been posted on the Aastra Telecom Web site at http://www.aastratelecom.com/cps/rde/xchg/SID-3D8CCB6A-211E9C50/0....

Enjoy

aastra1

--

---
aastra1
Aastra XML scripts 2.2.1 now available



KodaK
Posts: 1885
Member Since:
2006-06-14
I want to explicitly thank

I want to explicitly thank you for not only following through on your promise of documentation, but on following through in a very professional manner.

A lot of companies would throw together some half-assed docs for a FOSS application, but you guys went above and beyond on this. Thanks a bunch.

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



jahyde
Posts: 1996
Member Since:
2006-06-02
that definitely is very well

that definitely is very well written - that is what sets you guys above the rest!!!!!!

--

--my PBX is run on 2 V8's



mickschjd
Posts: 15
Member Since:
2007-02-06
I have the 9133i and once

I have the 9133i and once autodiscovery is complete and I have entered the extension and password, I get "NO SERVICE" on the phones. Any suggestions?



aastra1
Posts: 206
Member Since:
2006-11-06
NO SERVICE on 9133i

mickschjd,

Can you publish the SIP registration part of the MAC.cfg generated by the self-provisioning scripts? If the phone does not register it is because something went wrong in the process of retrieving the user SIP parameters from freePBX/asterisk config files. A quick look at the MAC.cfg (located at /tftpboot) will tell us what's wrong.

Regards

aastra1

--

---
aastra1
Aastra XML scripts 2.2.1 now available



thx2000
Posts: 43
Member Since:
2007-06-18
Wow

Just had a chance to set up a system with the new xml scripts...Amazing! Great work guys! After getting stuck in config file hell with both Cisco and Polycom, I can't imagine using any other device.

Thank you!

-THX2000



bdis
Posts: 111
Member Since:
2007-01-04
Is this install still

Is this install still active?

I ran a yum update AASTRA*
got the following:

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
aastra-ipphone noarch 2.2.0-1 trixbox 18 M
aastra-xml-scripts noarch 1.1.0-1 trixbox 72 k

Transaction Summary
=============================================================================
Install 2 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 18 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): aastra-ipphone-2.2 100% |=========================| 18 MB 06:42
(2/2): aastra-xml-scripts 100% |=========================| 72 kB 00:02
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: aastra-xml-scripts ######################### [1/2]
Installing: aastra-ipphone ######################### [2/2]

Installed: aastra-ipphone.noarch 0:2.2.0-1 aastra-xml-scripts.noarch 0:1.1.0-1
Complete!

Ran the setup-aastra-xml and got the command not found error.

Am I missing soemthing or doing something wrong. I'm running trixbox 2.2.4



bdis
Posts: 111
Member Since:
2007-01-04
Looks like the

Looks like the aastra-xml-scripts version yum is handing out at the moment is the old 1.1.0-1 version. Is this since I am running 2.2.4 of trixbox?



bdis
Posts: 111
Member Since:
2007-01-04
Looks like mpg123 is also no

Looks like mpg123 is also no on the yum servers?



M2Mcom
Posts: 181
Member Since:
2007-08-18
Hay all When I run

Hay all

When I run setup-aastra-xml I get
-bash: setup-aastra-xml: command not found

Any ideas?

--

Michael Mosier
Sr. Telephony Engineer
Network Outfitters
Houston/Austin/San Antonio - FtOCC Cert
832-715-6981



bdis
Posts: 111
Member Since:
2007-01-04
Anyone from Aastra

Anyone from Aastra monitoring this thread anymore??



aastra3
Posts: 102
Member Since:
2006-11-07
I was installing the package

I was installing the package on a vmware 2.6 a couple of weeks ago and the install failed. This was becasue of a dependency on mpg123. The dependencies for that package weren't correct.

try installing esound...
yum install esound

and see if that works.

Cheers

Kieran



M2Mcom
Posts: 181
Member Since:
2007-08-18
Thanks for the Scripts guy's

Thanks for the Scripts guy's Im having a blast playing around with them. This will make our clients very happy.

One thing. When I hit day/night is it only to say day or night or is it suppose to actually change to night or day mode. I can't seem to get it to change the mode.

Any idea's?

Also after I hit the Icom button the day/night button was stuck in night mode. I rebooted the phone and it fixed the problem.

Keep up the good work.

--

Michael Mosier
Sr. Telephony Engineer
Network Outfitters
Houston/Austin/San Antonio - FtOCC Cert
832-715-6981



igorek600
Posts: 93
Member Since:
2007-07-21
mac.cfg problem

I installed script on 2.6.7 and have a problem. Phone starts, gives me an option to choose ext, time zone but never goes past it, it just will not reboot or create mac.cfg. What could be the problem....? where should I look for it?



bdis
Posts: 111
Member Since:
2007-01-04
Are these scripts no

Are these scripts no available in the 2.2.X versions of Trixbox?

Yum will only give me version 1.0.0.1 of the aastra-xml-scripts
Yum will not let me install mpg123, says no match for argument: mpg123

I would LOVE to get the scripts running on 2.2.4

We have plans to upgrade to the 2.6.X tree in a few months but I would like to get these running with 2.2.X



M2Mcom
Posts: 181
Member Since:
2007-08-18
Any chance yall are going to

Any chance yall are going to get these to work with trixbox Pro? The day/night button in general would be very cool for my Pro users.

--

Michael Mosier
Sr. Telephony Engineer
Network Outfitters
Houston/Austin/San Antonio - FtOCC Cert
832-715-6981



Norskman
Posts: 173
Member Since:
2006-06-02
Aastra 57i - TFTP server - aastra XML script

Just loaded V2.6.1 B3 Trixbox.
I am using an Aastra 57iCT.
I setup one extension with password and voicemail.

I boot the phone, and it asks for the extension and password. I enter those and it moves on to the time zone. So far so good.

I select my timezone - which is London,Uk timezone 19 and it accepts it.
Then nothing - after a timeout, it goes back to the start screen.

Can anyone help -preferably from AAstra's support team?
Any clues.....

--

I specialise in Satellite services carrying data, video and voice. I can advise on services, design and requirements definitions...



aastra3
Posts: 102
Member Since:
2006-11-07
check the following thread

check the following thread for a possible solution
http://trixbox.org/forums/vendor-moderated-forums/aastra-endpoint...



Norskman
Posts: 173
Member Since:
2006-06-02
***Almost Fixed it *****

Many thanks -
I am further. The phone now accepts the timezone and then the red light flashes for a while and the screen shows 'restarting....'.
The phone then reboots:
and comes back to the front page asking me for Extension and password - so My phone is in a loop.

Its not creating a mac.cfg file in /tftp boot.

I am not sure why as I using defaults that came from the initial install on the .iso

Anyone know why the phone might not want to write to the /tftpboot directory. I have tried 2 phones and its not a phone issue. Both do the smae thing. I have neever seen the elusive mac.cfg file yet.

--

I specialise in Satellite services carrying data, video and voice. I can advise on services, design and requirements definitions...



aastra2
Posts: 324
Member Since:
2006-10-05
You should double check the

You should double check the permissions of the /tftpboot directory on Asterisk, at a guess the config script is failing to write the new .cfg file into the directory.

--

----
Gareth

Firmware 2.5.1 available.
Download it from www.aastratelecom.com



Norskman
Posts: 173
Member Since:
2006-06-02
Problem wirting .cfg file.

I reloaded the latest B4 - Removed the Aastra RPM and reinstalled it.

Now the phones accept the extension number and password, select the TZ. Then reboot coorectly.

The MAC.cfg is NEVER written to the /tftpboot file. However files are written correctly to the var/aastra directory.

The file that writes out the MAC.cfg is the logout.php - Its probably permissions but it seems to be correct that is for the /tftpboot directory:
rwx-rwx-rwx the owner is root.

Can anyone confirm this is right or not?

Nearly there, I am sure once I get the MAC.cfg being written coreectly, I will be in business.

--

I specialise in Satellite services carrying data, video and voice. I can advise on services, design and requirements definitions...



KodaK
Posts: 1885
Member Since:
2006-06-14
1) the owner of all the

1) the owner of all the files in /tftpboot should all be asterisk.asterisk. Do:

chown asterisk.asterisk /tftpboot/*

2) the files in /var/cache/aastra won't be created until you successfully register a phone, then some stuff will show up in there. You haven't successfully registered a phone yet, I don't think.

I think you'll be OK after you change the permissions in /tftpboot.

Oh, also, if you already have a MAC.cfg corresponding to the Aastra phones you are trying to configure in /tftpboot, then make sure you move them or delete them.

--

WARNING: I no longer actively participate in these forums. My thoughts on trixbox in a nutshell: http://www.youtube.com/watch?v=q4xBMkWu1pE Use AsteriskNOW instead.



igorek600
Posts: 93
Member Since:
2007-07-21
to remove aastra rpm's do

to remove aastra rpm's do this
yum remove aastra-xml-scripts
yum remove aastra-ipphone
reboot server
yum install aastra-xml-scripts
yum install aastra-ipphone



Norskman
Posts: 173
Member Since:
2006-06-02
Still not quite right

Checked the owner and permissions to the \tftpboot directory. It is correct as Asterisk the owner and rwx on everything.

Also removed aastra rpm's as per next post and then rebooted and reinstalled.
I also reset to factory defaults.
Its worse now, it never reboots after entering the timezone info.
The fact that it loads the startup xml script and verifies extension and password correctly means there is dialogue between Trixbox and the phone and also the extension number and password are correct etc.

Niot sure what to do next except try and copy a working system

--

I specialise in Satellite services carrying data, video and voice. I can advise on services, design and requirements definitions...



aastra2
Posts: 324
Member Since:
2006-10-05
Norskman, You can try

Norskman,

You can try turning on the debug and tracing in the scripts; this may help pinpoint what is wrong or at least narrow in on the failure point.

To do this, edit the /var/www/html/aastra/config/server.conf file and set the "trace" and "debug" parameters to 1.

--

----
Gareth

Firmware 2.5.1 available.
Download it from www.aastratelecom.com



PowerOn
Posts: 44
Member Since:
2007-10-17
I have this working on a

I have this working on a from scratch FreePBX system so you don't need Trixbox to install this. Should work on any distribution.

http://www.powerpbx.org/content/aastra-xml-scripts-part-ii-autopr...



Rob_Henry
Posts: 24
Member Since:
2007-06-19
Login from remote server via dundi

I'v just installed the newest of trixbox and added the aastra xml scripts. Very nice. I'm putting this server into production with sangoma cards and aastra phones. Dundi will connect 9 offices.

It would great if someone could point me in the right direction to be able to login to a phone at any location and get my extension. I travel to each location a fair bit and would really like to use my own extension.

Does anyone have any idea how i would go about getting the aastra xlm scripts to work this out over dundi.

Thanks
R



citapinc
Posts: 236
Member Since:
2007-10-13
setup-aastra-xml not there

I installed the AASTRA XML Scripts via the package manager and it installed perfectly. However now when I go to the console and type setup-aastra-xml I get the message 'command not found'. What did I do wrong???

Thanks!

Dean
Anaheim, CA



citapinc
Posts: 236
Member Since:
2007-10-13
setup-aastra-xml issue resolved

OK I figured out why this is not working.

If you install the aastra-xml-scripts via the package manager then it does not get installed correctly. However if you do the yum install routine via the console then it all runs correctly.

So if you are also getting the same message I got, then do the installation via the console and not the package manager.

Thanks!

Dean
Anaheim, CA



Norskman
Posts: 173
Member Since:
2006-06-02
Paging Vs Intercom

I am using the Aasta 57i's - brilliant phone with the Asstra scripts.

I now am tring to get the paging feature working- intercom works well.

I assume paging is a one to many one way intercom - and have a page group setup with the extensions setup.

This deos not work ( Alison tells me that the feature is not setup) Dialling *80202 (where 202 is the paging group number) also does not work.

Can someone tell please - how to do a page? It could easily be me not understand how it s supposed to work.

--

I specialise in Satellite services carrying data, video and voice. I can advise on services, design and requirements definitions...



Comment viewing options

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