New Aastra XML scripts 2.3.0 GA

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

All,

The new version of the XML scripts is now officially GA and available from the Trixbox yum repository (thanks Andrew).

Compatibility

  1. 9112i, 9133i, 480i and 480iCT in 1.4.3 (for these phones, auto-discovery works only with the mDNSResponder package not with avahi).
  2. 6730i/6731i/6751i/6753i/6755i/6757i/6757iCT/9143i/9480i/9480iCT in 2.5.3 or better (2.6.0 recommended)
  3. 6739i in 3.0.1
  4. Trixbox 2.6 and 2.8 (deviceanduser mode not supported in 2.8)

Main Changes

  1. Compatibility with Aastra6739i
  2. Compatibility with Asterisk 1.6
  3. Compatibility with freePBX 2.5, 2.6 and 2.7
  4. New phone status synchronization mechanism to limit polling
  5. Day/night application now allows individual index control
  6. Redesigned Visual voice mail application
  7. Redesigned ACD queues management
  8. New application to allow a user to modify the configuration of the phone keys
  9. Enhanced Presence application with more statuses and individual actions when not available
  10. LDAP directory application for Microsoft Exchange Global Address List access
  11. Aastra deamons are now linux services
  12. Auto-discovery now performed by the standard avahi package, mDNSResponder not needed anymore unles you are using 1.4.x phones (9112i, 9133i, 480i and 480iCT)
  13. MP3 Player application removed
  14. ...

More details in the documentation which is available here.

Installation from any previous version
If you upgrade from a previous version, here are the steps to follow to install the new scripts. Don't forget to backup the configuration files or profiles you have changed. Please refer to the documentation to check the config files changes as well as the script launch changes.

  1. Remove the previous version of the scripts
  2. Remove the mDNSResponder packages (not mandatory but highly recommended if you are not using 1.4.x phones)
  3. Reboot the server to cleanup the "old" deamons
  4. Update phone firmware package
  5. Retrieve the new package
  6. Install new package may include some dependencies problems to fix
  7. (Re)Create aastra.cfg
  8. Check installation (new provided tool)
  9. Migrate current users to the new version

So logged as root

# rpm -e aastra-xml-scripts
# /etc/rc.d/init.d/mDNSResponder stop
# rpm –e mDNSResponder-util 
# reboot
# yum update aastra-ipphone
# yum install aastra-xml-scripts
# setup-aastra-xml
# /var/www/html/aastra/utilities/check_install
# /var/www/html/aastra/utilities/apply_prf –r ALL

Installation from previous 2.3.0 beta

  1. Remove the previous version of the scripts
  2. Install new package (yum)
  3. (Re)Create aastra.cfg
  4. Check installation
  5. Migrate current users to the new version

So logged as root

# rpm -e aastra-xml-scripts
# yum install aastra-xml-scripts
# setup-aastra-xml
# /var/www/html/aastra/utilities/check_install
# /var/www/html/aastra/utilities/apply_prf –r ALL 

For people using the freePBX device/user mode
We have changed the way we perform the login/logout of a user in order to avoid to modify the agi script provided by freePBX, but when we tested the feature we discovered a bug in the AGI script which has been submitted to freePBX (thanks Philippe), therefore until the bug is fixed it is strongly recommended to download a modified version of the script (which is not part anymore of the aastra-xml-scripts RPM). The AGI file can be found here.
It must be installed in /var/lib/asterisk/cgi-bin.
Also because of a bug in the Asterisk engine provided with Trixbox 2.8, the "deviceanduser" mode is not supported with this release.

Software status

  1. Beta 1 04/19/2010
  2. Beta 2 04/23/2010
  3. Beta 3 N/A
  4. Beta 4 05/27/2010
  5. Beta 5 06/23/2010
  6. Beta 6 07/01/2010
  7. GA 07/21/2010

Bug Reporting
As usual please use this forum to report bugs or some enhancements you would like to see. When you report a problem please make sure that you provide:

  1. Phone model/version
  2. Trixbox version
  3. freePBX version (framework)
  4. freePBX mode ('extensions' or 'deviceanduser')
  5. USEDEVSTATE is enabled or not in /etc/amportal.conf

Thanks again for all your feedback.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



SkykingOH
Posts: 9541
Member Since:
2007-12-17
Aastra - Fantastic

Aastra -

Fantastic job.....Will be using three sites for beta testing next week.

Will provide feedback.

For all the forum members, Aastra's integration with Asterisk/FreePBX is worlds ahead of any other vendor.

--

Scott

aka "Skyking"



antidelldude
Posts: 287
Member Since:
2009-05-18
2.8.0.4

2.8.0.4 beta
57iCT
extensions

When I press the DND button, it says "please wait..." and then it activates (or deactivates) DND but does not give any indication that it was activated, the blf doesn't light, and dnd activated doesn't show on the screen. I can see the get request in Apache's log.

192.168.50.40 - - [18/Apr/2010:11:37:40 -0400] "GET /aastra/asterisk/dnd.php?user=111 HTTP/1.0" 200 113 "-" "Aastra57iCT MAC:00-08-5D-xx-xx-xx V:2.5.3.2002-SIP"

Yes, my mac address appears correctly, no xx

When I dial *76 It activates dnd, it activates the BLF next to the DND key, and it says DND activated on my screen. I can dial *76 to deactivate, the blf turns off and the DND activated goes away.

So far everything else I have tried works as expected. These updated scripts are awesome, and I will be reporting any other issue's I may find.

--

Regards,
Jon
Please respond if your problem was ever solved, and how you solved it. It'll help the next guy.



boeingpilot
Posts: 85
Member Since:
2008-01-24
It works but.....

Ok, I had to rebuild my primary trixbox (thank goodnews for backups!)

Installed the new scripts. They work well, but.... When I park a call (6755i), I don't get the LED on the Park key. (LED works as it should on the VM) This new update did fix the day/night led not working however.

This may very well have something to do with the rebuild trix, not the scripts... Anyone have any ideas?

Scott



antidelldude
Posts: 287
Member Since:
2009-05-18
I can confirm the BLF works

I can confirm the BLF works for parking on my 57i.

--

Regards,
Jon
Please respond if your problem was ever solved, and how you solved it. It'll help the next guy.



aastra1
Posts: 287
Member Since:
2006-11-06
Park LED on 6755i

Hi Scott,

To understand what's going on I need to know more details of your configuration as explaied in the initial post.

  1. Asterisk version
  2. freePBX version
  3. freePBX mode (extensions or devicesanduusers)
  4. USEDEVSTATE in /etc/amportal.conf
    The parking application is tricky because there have been some changes in the manager API between Asterisk 1.4 and 1.6 (even within 1.6). That's why I need to know more details...

    Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



aastra1
Posts: 287
Member Since:
2006-11-06
RE: 2.8.0.4

Unfortunately we never tried with 2.8.0.4, we will give it a try ASAP. Again we will need to know which freePBX mode you are using as well as if USEDEVSTATE is activated in /etc/amportal.conf.

I have a quick question though, when you press 'DND' to activate the DND, even if the phone does not display anything is the DND activated anyway?

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



antidelldude
Posts: 287
Member Since:
2009-05-18
Yes, DND does

Extensions mode (stated above)
Not sure what framework tb 2.8.0.4 is using. I'll look when I get home.
Yes, DND does activate/deactivate when I press the DND button. (stated above)
USEDEVSTATE=TRUE in amportal.conf

--

Regards,
Jon
Please respond if your problem was ever solved, and how you solved it. It'll help the next guy.



antidelldude
Posts: 287
Member Since:
2009-05-18
DND is working, for now...

I didn't think there was a direct way to see what freepbx version tb is running. I'm going to guess some revision of freepbx 2.5 because that is the version on most of the modules.

EDIT: So I was bored and did a complete clean reinstall of tb 2.8.0.4. After install, I immediately setup an extension, added a phone, installed the xml-scripts-beta, and...DND works. I'm going to spend a little time updating it, and setting it up more to see if the DND will break. The biggest difference I can see is when in the asterisk cli, I actually see the aastra xml log in and out when I hit the DND button.

Would changing the amp database and amp manager passwords mess up the script?

--

Regards,
Jon
Please respond if your problem was ever solved, and how you solved it. It'll help the next guy.



boeingpilot
Posts: 85
Member Since:
2008-01-24
Going to table this for

Going to table this for now...

The system wasn't a pristine install, and may have other issues. Right now I'm back to my original server (trix 2.6.3, ext mode, and 2.2.1 Aastra XML scripts) and the parking working there.

If I have the problem on the new production server I'm installing I'll repost.

BTW - Aastra, thank you! Your work has made the trixbox platform greater than the sum of its parts. Appreciate you help

Scott



GaryGER
Posts: 2
Member Since:
2010-03-02
Does anyone know if the 560m expansion module will show presence

I am currently using a 6757i with a 536m expansion module. It would be really nice for our receptionist to have immediate access to presence. I know there was talk about developing a way to view a single letter status on the display of the 560M. Was this ever completed? I cannot find any current info on this and I hate to buy a new expansion module just to test.

BTW, I agree with others here. These phones are the best and the scripts are amazing. Thank you Aastra!



bclarkindy
Posts: 7
Member Since:
2010-04-22
Test results so far...

I installed these scripts today and have foud some wonderful improvements from the previous version (along with a few issues). Night mode, visual voicemail, parking, and the directory have immediately noticable improvments. Great job!

My platform details....
Aastra 57i phones
Asterisk 1.6.2.6
FreePBX 2.7.0.2
AMPEXTENSIONS=deviceanduser
USEDEVSTATE=true
Using AsteriskNOW distro (not trixbox)

Issues and/or feature requests noticed so far are...

1. I am having the same issue with LED synchronization on my 57i phones as previously reported by others here as well as on the PIAF forum. This includes presence, DND, and Call Fwd (not sure of Follow-me) applications. The buttons handle their specfic functions, however the LED simply does not update. I have also confirmed that toggling functions such as DND from feature codes does *not* toggle the LED on the phone. Voicemail and night mode LED's seem to function fine, however.

2. For some reason I was unable to playback voicemails using visual voicemail until I made a slight change to aastra-vm.php. I had to change the call to the ControlPlayback command to force it to follow the format $agi->exec('ControlPlayback',$sound_file.'|2000|6|4|0|5|1'). As written, it wanted to use pipe delimiters for 1.4 and commas for 1.6. After my change, I forced it to use pipes all the time and the vm application works fine.

3. If I have an adhoc device without a default user, I can successfully login and logout of the device with the scripts. Upon login, it correctly syncronizes all LED's (see issue #1 above) and screen information for the logged-in user. HOWEVER, if I have a device WITH a default user, then NONE of a new user's information will synchronize if a new user tries to login to the phone (still shows the default user even though the new user is logged-in). I presume this is because the only way that I am able to login another user to a device with a default user is with the *11 feature code (see below), and perhaps the proper update event is not being sent/caught to update the phone.

4. When an adhoc device is assigned with a default user, I believe the issue of not having a "login" button when the default user is logged-in existed in the previous version of the scripts as well. Because of this, the "logout" button really only adds value when the phone has no default user. As a feature requested, I think one of two options would be great: 1) if it's an adhoc device and only the default user is logged-in, change the logout button to a login button (so someone can login as another user), or 2) on the logout screen along with the logut and cancel choices, have a choice to "login as another user". This would allow me to set some of my 57i's with default users, but also give people the ability to login to them without using *11 (and have it update the screen too!).

Thanks again for the great work!!



robeerski
Posts: 70
Member Since:
2008-01-30
Park Pickup using a single button

I just saw this thread and I hope to be able to do some testing either this weekend or early next week.

One of the features I have wanted to see since the last release is a singe park/pickup button instead of having to use one button for parking and another button for pickup. I run out of buttons as it is so saving a button would be really nice. Since the orbit is now correctly displayed on screen when a call is parked I use a speeddialxfer button to accomplish the parking piece and avoid having to wait for Asterisk to voice the parking slot. Would it be possible to have a park/pickup button that parks a call when in an active call and picks up a call when not in an active call by somehow consolidating the following 2 buttons into a single button?

topsoftkey1 type: speeddialxfer
topsoftkey1 label: "Park"
topsoftkey1 value: 70

topsoftkey2 type: xml
topsoftkey2 label: "PK-Pickup"
topsoftkey2 value: http://SERVER_IP/aastra/asterisk/park.php?key=topsoftkey2



robeerski
Posts: 70
Member Since:
2008-01-30
For those with BLF issues

I have experienced a problem where my BLFs were not working properly and although it took asking someone else for help we discovered that the following line is needed in the CFG files for the BLFs to work correctly for some button types such as the pickup button.

sip xml notify event: 1

I also figured out that certain buttons such as day/night need to be configured in the MAC.cfg and not the aastra.cfg file for the corrisponding blf to work correctly.

I don't know if these are still true with these new scripts as I have not had a chance to test them but this might be worth trying to see if it helps.



aastra1
Posts: 287
Member Since:
2006-11-06
RE: Park Pickup using a single button

Hello Roberski,

This is an interesting request, we know that as the phone now displays the parking orbit a lot of users were asking for a blind transfer instead of a monitored transfer for parking, problem is that would mean a firmware change not planned yet.

The problem of making a key is that if it is a softkey (55i, 57i, 57iCT, 9480i, 9480iCT) the key is not displayed on the first page user has to press more.

Anyway we can do something for you and modify the park script to do both, of course it will not be available for the phones running 1.4.x (9112i, 9133i, 480i, 480iCT) because we will be using a phone parameter for the line state only available in 2.x.

We will have a look for Beta 3. Actually it is done in Beta3!

Stay tuned.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



aastra1
Posts: 287
Member Since:
2006-11-06
Re: Test results so far

Hello there,

When you say
My platform details....
Aastra 57i phones
Asterisk 1.6.2.6
FreePBX 2.7.0.2
AMPEXTENSIONS=deviceanduser
USEDEVSTATE=true
Using AsteriskNOW distro (not trixbox)

That is where lies the problem, even if we try to make the scripts very flexible, we cannot test every possible environment. There are major differences between Asterisk 1.4, 1.6.0, 1.6.1 and 1.6.2, we have done our tests using packaged solutions like Trixbox because it is a stable environment, it is impossible for us to test every flavor of every product...

So

1. I am having the same issue with LED synchronization on my 57i phones as previously reported by others here as well as on the PIAF forum. This includes presence, DND, and Call Fwd (not sure of Follow-me) applications. The buttons handle their specfic functions, however the LED simply does not update. I have also confirmed that toggling functions such as DND from feature codes does *not* toggle the LED on the phone. Voicemail and night mode LED's seem to function fine, however.
LED status is done by listening manager events, these are not consistent between Asterisk versions... so have a look at the code in the daemons and tell us what's different.

2. For some reason I was unable to playback voicemails using visual voicemail until I made a slight change to aastra-vm.php. I had to change the call to the ControlPlayback command to force it to follow the format $agi->exec('ControlPlayback',$sound_file.'|2000|6|4|0|5|1'). As written, it wanted to use pipe delimiters for 1.4 and commas for 1.6. After my change, I forced it to use pipes all the time and the vm application works fine.
Kind of the same answer, differences between asterisk implementations, the Asterisk version for Trixbox 2.8.0.3 needs ',' for separators not '|' so in Beta 2 we try both because there would be too many combination to test. Try beta 2.

3. If I have an adhoc device without a default user, I can successfully login and logout of the device with the scripts. Upon login, it correctly syncronizes all LED's (see issue #1 above) and screen information for the logged-in user. HOWEVER, if I have a device WITH a default user, then NONE of a new user's information will synchronize if a new user tries to login to the phone (still shows the default user even though the new user is logged-in). I presume this is because the only way that I am able to login another user to a device with a default user is with the *11 feature code (see below), and perhaps the proper update event is not being sent/caught to update the phone.
We have identified some MAJOR problems with the deviceanduser mode which has never been updated since DEVSTATE has been introduced so all the user hints are wrong, we are looking for a fix in beta3 we already did some fixes in Beta2 but I would advise not to login/logout with the keys but with *11 and *12 until we fix everything. The fix may even be to actually call *11 and *12 as the AGI behind it is very complex and changes everytime freePBX updates it.

4. When an adhoc device is assigned with a default user, I believe the issue of not having a "login" button when the default user is logged-in existed in the previous version of the scripts as well. Because of this, the "logout" button really only adds value when the phone has no default user. As a feature requested, I think one of two options would be great: 1) if it's an adhoc device and only the default user is logged-in, change the logout button to a login button (so someone can login as another user), or 2) on the logout screen along with the logut and cancel choices, have a choice to "login as another user". This would allow me to set some of my 57i's with default users, but also give people the ability to login to them without using *11 (and have it update the screen too!).
Again we will have a look in Beta3.

Thanks for your feedback even if I would have preferred a pure Trixbox installation...

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



bclarkindy
Posts: 7
Member Since:
2010-04-22
I definitely understand your

I definitely understand your point regarding "every possible environment". The old version of the scripts worked ok with AsteriskNOW, until of course I updated FreePBX and various Asterisk yum updates as new versions became available... which is why I've been checking these forums often for updated scripts!

I have updated to beta 2 and have banged on it a bit. I need to look more but here's some preliminary feedback...

I feel like an idiot relating to some aspects of the LED feedback issue. After following your lead and had aastra_daemon1 dump manager event details to the screen, I noticed no events being generated with the DND feature codes. After pulling my hair out for a couple hours, I discovered the problem was because a recent install of FOP2 overrode app-dnd-* with it's own version of these contexts. Once I ripped out FOP2, the events started triggering and the DND LED now updates AS LONG AS I use the feature codes. Using the DND button itself still toggles the feature, but does not toggle the LED. I still need to test more, including call fwd, etc.

Also, I now get updated user information when I login and out with *11 and *12 on adhoc devices with a default user. Definitely a step in the right direction!

Lastly, the voicemail app now works fine in beta 2!

I will test more this weekend if possible, and will report back what I learn. Thanks again for your work on these scripts!



antidelldude
Posts: 287
Member Since:
2009-05-18
Does anyone have any tips on

Does anyone have any tips on php code debugging in these scripts? Syslog from the phone doesn't help me very much, nor does the log generated by trace/debug options built into the xml-scripts. I'm used to throwing echo's at each function to see which function the script is dieing at. I'd like to take the DND script and see where it's dieing, and try to come up with a fix. I make so many modifications to the initial install, and I don't want to part with any of them. I'm on the same boat as bclarkindy. I press the DND button, it activates, but the phone doesn't update. If I activate DND by the feature code, it does update the phones screen and blf. I'd like to find a way to trigger the update in the same manner it is triggered by dialing the feature code. It looks like it's with sync.php.

--

Regards,
Jon
Please respond if your problem was ever solved, and how you solved it. It'll help the next guy.



bclarkindy
Posts: 7
Member Since:
2010-04-22
RE: Does anyone have any tips on

What I've been doing is either a) setting debug=1 (in server.conf I believe) and inserting the function Aastra_debug(some_string) which sends some_string to /var/cache/aastra/todays_data.debug, or b) when I'm wanting to see the contents of an array I'm inserting print_r(array) into the script, which ends up being sent to stdout (at least in my case). Note that you should restart the daemon(s) if you're trying to troubleshoot it (or any of it's included files).

Hope this helps... -Brian



bclarkindy
Posts: 7
Member Since:
2010-04-22
Testing Beta 2

The syntax of the command used in the scripts to update the state of custom devices used to track LED status needed to be changed (at least on my Asterisk 1.6.2 install). Once I replaced all instances of "core set global DEVICE_STATE()" with the command "devstate change" within AastraAsterisk.php, the LEDs started updating properly (for the most part, see below).

While I now get LED feedback in realtime, LED's do NOT seem to syncrhonize reliably when changing users (using *11/*12). The only testing I've done with this so far is if the device has a default user (it might work better without a default user, I will test tomorrow). Voicemail and presence LEDs never seem to sync on login, and it also looks as though the others (DND, call fwd, follow-me LEDs, etc.) "hiccup" every once in awhile and don't sync properly. Logging in again typically fixes the latter.

I'm not sure if this is a firmware issue or a script issue, however I have had a couple test phones completely lock up a couple times over the last couple days of testing. I had to restart the phones to get them to respond. I am only mentioning this because I've not had this problem before. I will keep my eyes open to determine what I'm doing with the phone when this occurs.

Voicemail playback now works fine for me in beta 2.

Thanks again fo the great work!
-Brian



bclarkindy
Posts: 7
Member Since:
2010-04-22
Testing Beta 2 (continued)

After further testing using the mods I mentioned in my previous post (devstate change), I have noticed the following...

The voicemail and presence lights do not synchronize at all during login/logout unless I use a device *without* a default user, and *only* if I logout first before logging in as another user. This can be with the buttons or with the feature codes. Furthermore, the vm led takes awhile to synchronize (sometimes a minute or two??). If I *11 login while already logged-in, the vm and presence leds do not sync... I must logout first.

Other LEDs that have also been problematic (dnd, etc.) work much better with the 'devstate change' mod I mentioned, but it is still not 100% reliable during login/logout, even if I use a device without a default user so I can logout first. If I logout first, they sync correctly approx. 80% of the time in my testing.

I believe I have narrowed down the issue with the phone locking up on me. It only occurs during login, and only when the current (or previous?) user has both DND and call fwd buttons activated. It does not seem to freeze with dnd only, or with call fwd only, but with both. I have not tried every combination, but I can get it to lock up 80% of the time in the condition mentioned above and never locks up in any other tested condition.

That's all for now.

-Brian



aastra1
Posts: 287
Member Since:
2006-11-06
Debug...

If you use the aastra_debug to print an array make sure that you do
aastra_debug(print_r($array,True));
The True will make it a string and not dump it to stdout.

Also thanks to your input, we fixed the DND/daynight... LED problem with Asterisk 1.6.2 the command used to change the devstate device is now obsolete. Fixed in Beta 3.

We will try to fix the issues in deviceanduser mode with beta3 if we can, if not we will not support this mode anymore as it becomes too complex to manage in sync with freePBX.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



antidelldude
Posts: 287
Member Since:
2009-05-18
Thanks for the hard work

Thanks for the hard work guys, sound's like Beta3 may fix my DND sync issues. Can't wait!

--

Regards,
Jon
Please respond if your problem was ever solved, and how you solved it. It'll help the next guy.



peterbokunet
Posts: 19
Member Since:
2008-01-30
Day Night Mode required?

If you don't have Day Night Mode installed, the 2.3.0 scripts go
nuts with:

[Fri May 14 08:24:14 2010] [error] [client 10.1.250.91] PHP Fatal error:
Cannot use object of type DB_Error as array in
/var/www/html/aastra/include/AastraAsterisk.php on line 1069
[Fri May 14 08:24:14 2010] [error] [client 10.1.250.105] PHP Fatal error:
Cannot use object of type DB_Error as array in
/var/www/html/aastra/include/AastraAsterisk.php on line 1069



Atcom Alberta
Posts: 219
Member Since:
2008-07-14
When accessing the voicemail

When accessing the voicemail script on a 9480i: message playback cannot be taken off speakerphone - lifting the handset during playback has no effect.

Also regarding the 6739i: would it be possible to have the cursor default on the "Enter Password" field (white area) when prompted for vmail password, etc.? Currently the user must touch the white area to enter their password.

1. Phone model
35i
firmware 2.5.3.2002

2. Trixbox version
2.6.2.3

3. freePBX version (framework)
2.5.2.3

4. freePBX mode ('extensions' or 'deviceanduser')
estensions

5. USEDEVSTATE is activated or not in /etc/amportal.conf
no



MCC
Posts: 4
Member Since:
2009-07-21
When accessing the voicemail

I have the exact problem as Atcom Alberta. When Accessing voicemail you can not take the phone off speaker.

Phone Model 35i firmware 2.6.0.66
Trixbox Version: 2.6.2.3
FreePBX Version: 2.5.1.5
FreePBX Mode: deviceanduser
USEDEVSTATE: true



josjacks
Posts: 2
Member Since:
2006-07-26
6739i and Beta2 Keys Application

Phone Model: 6739i firmware 3.0.1.38
Trixbox Version: 2.8.0.3
FreePBX Version: 2.5.2.3
FreePBX Mode: extensions
USEDEVSTATE: true

When the Keys application is used to add BLF keys to this phone they do not appear after a reboot. If you go back into the keys application they are still in the configuration and moving them up and down makes them appear again. The key settings are also in MAC.cfg. After plenty of time trying to figure out what I was doing wrong I found that the configuration file had these lines with no values.

softkey1 states:
softkey1 locked:

When I deleted these lines from MAC.cfg the softkeys appeared and functioned as they should on reboot. I think it's more an issue of the phone not handling the empty values than with the scripts but I don't know as this is our only Aastra phone. Other than this issue everything is working as we hoped.



peterbokunet
Posts: 19
Member Since:
2008-01-30
an apply_prf glitch

startup.php does the right but apply_prf has a problem with some special characters.

the sip secret is: aSking?28 but app_prf wrote out: aSking\?28



aastra1
Posts: 287
Member Since:
2006-11-06
RE: 6739i and Beta2 Keys Application

Very good catch josjacks, the culprit is the "states" parameter it looks like for a BLF key if set to an empty value the phone treats it as no key at all.

We modified the "Keys" script to fix that. In will be in Beta 4 that we will release later today or tomorrow.

Thanks for this feedback

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



dudu_georgescu
Posts: 44
Member Since:
2010-01-30
Trixbox

Have you tried the scripts with trixbox 2.8.0.4 yet?



aastra1
Posts: 287
Member Since:
2006-11-06
RE: an apply_prf glitch

Good catch, fixed in Beta 4.

Thanks

--

---
aastra1
Aastra XML scripts 2.3.0 now available



aastra1
Posts: 287
Member Since:
2006-11-06
Trixbox 2.8.0.4

Yes we succesfully tested Beta 4 with Trixbox CE 2.8.0.4.
Stay tuned Beta 4 is on its way.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



aastra1
Posts: 287
Member Since:
2006-11-06
Beta 4 available

All,

Beta 4 is now available on our public HTTP server, the initial post of this thread has been updated with all the details of this beta 4.

Thanks again for your precious feedback.

--

---
aastra1
Aastra XML scripts 2.3.0 now available



peterbokunet
Posts: 19
Member Since:
2008-01-30
Logic reversed in dnd.php

1. 9143i, 57i, 6739i (tested on these, maybe others)
2. N/A (asterisk 1.6.2.7)
3. 2.7
4. deviceanduser
5. USEDEVSTATE activated

I think the logic got flipped around between the !'s and the or. With the change below dnd.php actually works(*). The display will show "DND activated" and the status is updated in astdb. Without the change below the script is ineffectual.

--- dnd.php.orig	2010-05-26 23:09:53.000000000 -0500
+++ dnd.php	2010-05-31 17:22:55.000000000 -0500
@@ -80,7 +80,7 @@ switch($action)
 		$object = new AastraIPPhoneExecute();
 
 		# No external sync
-		if((!$AA_FREEPBX_USEDEVSTATE) or (!Aastra_is_sip_notify_supported()))
+		if(($AA_FREEPBX_USEDEVSTATE) or (Aastra_is_sip_notify_supported()))
 			{
 			# Update via the "check" mechanism
 			$object->addEntry($XML_SERVER.'&action=check');

Also, as we have lots of queue users and for those others, would a default behavior of this be welcome?

--- dnd.php.orig	2010-05-31 17:19:32.000000000 -0500
+++ dndqueue.php	2010-05-24 09:38:36.000000000 -0500
@@ -75,18 +75,24 @@ switch($action)
 		# Change DND status
 		$dnd=Aastra_manage_dnd_Asterisk($user,'change');
 
+		if ($dnd) Aastra_queue_pause_Asterisk($user,'','true');
+		else Aastra_queue_pause_Asterisk($user,'','false');
+
 		# Prepare display update
 		require_once('AastraIPPhoneExecute.class.php');
 		$object = new AastraIPPhoneExecute();

This works well in our environment.

* - With either change, the light never lights though. The dnd key isn't stored in the cache and the logic to light $key around line 130 always fails as $key is ''. It appears that dnd.php is never called during sync.php or stored during startup.php. (Of the phones I have available, only the 6731i lights the LED.)

The MAC .cfg is built with (on the 43i and 57i/39i phones respectively):

prgkey2 type: xml
prgkey2 value: http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/asterisk/dnd.php?user=$$SIPUSERNAME$$

softkey1 type: xml
softkey1 label:DND
softkey1 value: http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/asterisk/dnd.php?user=$$SIPUSERNAME$$
softkey1 line: 1



bclarkindy
Posts: 7
Member Since:
2010-04-22
Voicemail problem

57i phones w/ firmware 2.5.3.2002
FreePBX 2.7.0.2
Asterisk 1.6.2.7
USEDEVSTATE=true
AMPEXTENSIONS=deviceanduser
No specific distro (trixbox, pbxiaf, etc.)

I have tested all beta versions and beta 4 is definitely the cleanest!!! I only seem to have one recurring problem right now and I'm not sure if it's the xml scripts or related to phone firmware. Whenever I use the Voicemail application, I cannot switch from speakerphone to handset while the file is being played (or visa-versa). If I hit the play button with the phone on-hook, it plays over the speaker and stays on speaker even if I pickup the handset and even if I try to press the speaker button to toggle it off. If I pickup the handset before hitting play, the voicemail app quits and I get a normal dial display. If I hit play and pick up the handset at exactly the right time (immediately), the message will play over the handset, but then I cannot replay it over the speaker.

Not sure if this is related, but every so often I will try to make a call via speakerphone (internal or external) and will get complete silence on my end even though Asterisk thinks the call is connected and working and the line led is lit on the phone. Then, I will notice the spearker light is not lit so I pick up the handset and the call is connected. This is intermittent and has only recently started occurring.

Great work on the scripts!



bclarkindy
Posts: 7
Member Since:
2010-04-22
RE: Voicemail problem

I think I solved my voicemail audio problem from a post in another forum. I upgraded the 57i firmware to 2.6 and the visual voicemail app seems to work better. I can now pickup the handset during playback and the audio redirects from the speaker to the handset (as it should).



SkykingOH
Posts: 9541
Member Since:
2007-12-17
Multiple user profiles

Any news on when the ability to select from multiple profiles when logging in an out. The ability to select PRF's based on the workgroup the subscriber belongs to has been talked about for awhile. Basically multiple prf files that can be selected at the startup screen.

Thanks...

--

Scott

aka "Skyking"



peterbokunet
Posts: 19
Member Since:
2008-01-30
Another apply_prf question

In apply_prf there's this line:

if($fmode=='1') $array_profile=Aastra_readCFGfile('../asterisk/'.$profile.'-user.prf', '#', ':');
else $array_profile=Aastra_readCFGfile('../asterisk/'.$profile.'-device-nouser.prf', '#', ':');

Why if I'm in deviceanduser mode will it always only use the 'nouser' profile? Shouldn't that really be -device-user.prf instead? If this were the case, it would miss the Core values from the device-nouser.prf file where I have things like the vlan configuration.

What am I missing?

Shouldn't the processing be something like:
device-nouser.prf Core
device-user.prf Common (unless key is defined in nouser Core)
device-user.prf Model/Template (unless key is defined in nouser Core)

It seems that startup.php and sync.php does this differently. Neither agrees with how apply_prf does it. Maybe all the create_mac should be abstracted out each of those files and and put in a single include. That single implementation could then ensure consistent processing.

NB: I haven't followed the flow if FPBX is in 'extensions' mode.



proximasi
Posts: 4
Member Since:
2007-01-25
Voicemail

Beta 4

◦6757i firmware 2.6.0.66
◦Trixbox 2.6.2.3
◦freePBX version 2.5.1.5
◦USEDEVSTATE is activated

Retrieving VM through the phone XML interface. If I play msg and then hit the FWD>> button the phone becomes unresponsive; can't play, stop, delete or exit. Phone needs to be rebooted at that point.



aastra1
Posts: 287
Member Since:
2006-11-06
RE: Logic reversed in dnd.php

Hi Peter,

What you need to understand about the 2.3.0 version of the scripts is that we made a major change in the way we synchronize the LED for DND, CFWD... Now the update is made with the aastra-daemon1 daemon which listens to Asterisk manager events when the DND is toggled which allows us to have synchronization when a user toggles DND by dialing *76. This is why in the code we check if the feature is supported (USEDEVSTATE and custom SIP notify supported), if supported changing the DND will generate a manager event which will update the DND so no need to do a local LED/idlescreen message update, we kept the local mechanism for "old" phones or if USEDEVSTATE is not enabled.
So in one word, the logic is not reversed, it should work perfectly... Maybe you should look if your aastra-daemon1 is running, also make sure that you use the user_login_out.agi we make available to login/out the users. Maybe you should also look if the DND event is properly generated by Asterisk and handled by aastra-daemon1.

When you say that the DND key is not stored in the cache make sure that you are looking at the DEVICE.context file not the one for the user.

We liked the idea of pausing/unpausing the ACD queues when toggling the DND, that makes a lot of sense, so we have added it in Beta5 with a configuration parameter to enable/disable it, that is definitely a great feature.

Also I was curious, why are you using the deviceanduser mode, now the login/logout does not need a reboot anymore a lot of users have switched back to extensions as the other mode has some serious issues when used for call center agents. We also know that this mode might not be supported any longer by freePBX.

We just tested a configuration like yours and everything works fine, so please check the various things we pointed.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



aastra1
Posts: 287
Member Since:
2006-11-06
RE:RE:voicemail problem

Yes 2.6.0 brings an XML feature leveraged by the XML scripts which allows a semi-locked screen to allow the user to access to the telephony keys such as volume, headset/speaker...

This is why your problem is solved. Unfortunately there is no solution for 2.5.3, you have to be very fast to pick up the handset but once you have it in your hand all the audio will go through it.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



aastra1
Posts: 287
Member Since:
2006-11-06
RE: Another apply_prf question

Peter,

What you are missing is that in "deviceanduser" mode apply_prf and startup.php are only taking care of the device configuration not the user because the user configuration is updated when the user logs in.

This is why we only need xxx-nouser.prf, only the device configuration is updated. The "true" user login is done in sync.php when the phone registers or when it receives a SIP Notify.

Hope this helps.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



webhoster
Posts: 23
Member Since:
2006-07-01
Beta 4

We are using 2.8 and Beta 4 with deviceanduser mode - I'll come back to that later

We are seeing an issue, we configure the phone with device id and then the phone refreshes to the user login. The user logs in and you get a little welcome on the speaker but then the screen stays like that it doesn't refresh to the user screen until you reboot - any ideas?

Also you have changed the directory to be divided into smaller alphabetical segments which is good for large deployments but poor for small ones is there any way to change this behaviour back to a single list of all users? If you only 15 people it is quicker to scroll through and hit dial than doing more each time then scroll then press dial.

We used deviceanduser mode as previously that was the only way to do hot desking etc - has this now changed with the lack of reboot required? Are there any benefits to deviceand user over extensions?

Thanks

Gavin



peterbokunet
Posts: 19
Member Since:
2008-01-30
Re: RE: Logic reversed in dnd.php

I think I may have sifted through the DND light issue. Rather than change the dnd.php script to add the pause hooks for the queue members I copied it to dndqueue.php and used that script. The sync.php:425 (and key.php:210) app no longer matches. The value gets set in ASTDB, but the phone doesn't reflect the change. I should have used queuednd.php and it would have been fine. By not having this match, the key was never noted as being the DND key.

We use the deviceanduser as most our users have their desk phone but also have a softphones installed as part of our DR (Disaster Recovery) plan. In extensions mode we'd have to have not only the extra extensions but a follow-me configuration for each user that they could mess up via the recordings GUI. Having the devices (softphones, SIP clients on mobile phones and web apps) just seems more elegant.

Thanks!



peterbokunet
Posts: 19
Member Since:
2008-01-30
Patch for per-user parameters

We have the need to have per-user preferences. These contain things that aren't relevant to a group of people but more a one-off tuning per extension.

The present process is to edit the create MAC .cfg with the parameters. The parameters affected are little things like audio level tunings, prgkey/softkey, call waiting tone, etc.

This change introduces a new file at .../aastra/asterisk/user.prf which is an ini-style format. It contains the user/extension as the key and then a set of key/value pairs. An example user.prf:

[4322]
call waiting tone: 0
audio mode: 1

[1444]
headset tx gain: 0
headset sidetone gain: 10
audio mode: 3

The change affects both utilities/apply_prf and asterisk/sync.php. The diffs for each file are below:

--- apply_prf.orig	2010-05-26 23:09:53.000000000 -0500
+++ apply_prf	2010-06-11 11:01:41.000000000 -0500
@@ -151,6 +151,26 @@ if($array_profile[$model]!=NULL)
 		}
 	}
 
+# load in user-specific configurations
+$array_user=Aastra_readCFGfile('../asterisk/user.prf', '#', ':');
+# User exists
+if($array_user[$extension]!=NULL)
+        {
+        # Use the user configuration additions
+        foreach($array_user[$extension] as $key => $value)
+                {
+	        $line = preg_replace($search, $replace, $value);
+                if(stristr($line,'$$AA_KEYPRESS_AA$$'))
+                        {
+                        $pieces=explode(' ',$key);
+                        $line = preg_replace('/\$\$AA_KEYPRESS_AA\$\$/', $pieces[0], $line);
+                        }
+	Aastra_debug('User: '.$key.': '.$line);
+                $array_config[$key]=$line;
+                }
+
+	}
+
 # Remove TZ if not needed
 if(!$AA_ASK_TZ)
 	{
--- sync.php.orig	2010-05-25 09:48:27.000000000 -0500
+++ sync.php	2010-06-11 10:58:58.000000000 -0500
@@ -325,6 +325,24 @@ if(($user!='') and ($device_info['type']
 		}
 	}
 
+# load in user-specific configurations
+$array_userprf=Aastra_readCFGfile('../asterisk/user.prf', '#', ':');
+# User exists
+if($array_userprf[$user]!=NULL)
+	{
+	# Use the user configuration additions
+        foreach($array_userprf[$user] as $key => $value)
+      		{
+		$line = preg_replace($search, $replace, $value);
+		if(stristr($line,'$$AA_KEYPRESS_AA$$'))
+			{
+			$pieces=explode(' ',$key);
+			$line = preg_replace('/\$\$AA_KEYPRESS_AA\$\$/', $pieces[0], $line);
+			}
+		$array_out[$key]=$line;
+		}
+	}
+
 # Find the special keys
 if($user!='') init_special_keys($device,$array_out);
 

Apologies for not matching your formatting. As before, if there's a better way to do the same results I'm happy to rework this functionality. I've not tested this with 'extensions' mode but there shouldn't be any real difference in the functionality.

Note: This could change values found in Core and not just common. The parameters found in Core could be overwritten when using apply_prf. I'm relying on this to be the case with how I use it. If this violates expectations please let me know and I'll re-work it.

Thanks!



maclord1
Posts: 2
Member Since:
2010-06-14
Minor issue

Beta 4
◦6757i firmware 2.5.2.2002
◦Trixbox 2.8.0.3
◦USEDEVSTATE is activated

Hi

Issue related to presence status

When I switch the status to away the phone hang for 20 sec

Question related to directory app

I would like to know if the status (like idle,ringing and busy) is refreshed automatically because the only way to update the status is to press any button in the directory app

otherwise beta4 seem very stable

thank you



boeingpilot
Posts: 85
Member Since:
2008-01-24
Documentation

I have been testing the new scripts. Have to say they're quite impressive. Only thing, I've been sort of figuring things out from the 2.2.1 manual and comments in the config files.

Is there any documentation available for the beta yet?



plahpoy
Posts: 7
Member Since:
2009-05-13
Follow-Me LED

I am now using 2.8.4 and xml-scripts beta 4. I also upgraded to the newest firmware avail from aastra for a 57iCT. Myself and 3 55i's are having the same issue with the follow-me led. When activated the light will not turn on immediately, if I let it sit for 10 minutes or so it will light up. When I deactivate it, it will stay on even though its deactivated and will sometimes turn off after 10 - 20 min or usually we have to do a phone reboot in order for the light to sync back up. DND seems to be working.

Thanks for all your hard work aastra1!



obeliks
Posts: 877
Member Since:
2010-03-14
apply_prf -r

It seems the -r option is not processed properly:

# /var/www/html/aastra/utilities/apply_prf –r ALL 

Processing user/device –r
---------------------------
Aborted: User –r not found in cache file startup_asterisk.cfg

Processing user/device 3333
--------------------------
MAC: 00085D00CAFE
Model: Aastra6739i
CallerID: Aastra
MAC file updated

The phone does not reboot either.



proximasi
Posts: 4
Member Since:
2007-01-25
Presence

Beta 4
◦6757i firmware 2.5.2.2002
◦Trixbox 2.6.2.3
◦USEDEVSTATE is activated

When changing status in Presence application, after choosing the new status and pressing Select the sreen displays "Please Wait" for about 30 seconds followed by "Data Timeout". Despite the error Presence still seems to be fully operational, just a long delay and error msg when setting. If I press the "Presence" softkey while its displaying "Please Wait", the presence menu is displayed immediately and the change takes effect.

Any idea what the timeout issue is? Sounds like the same issue as maclord1.



aastra1
Posts: 287
Member Since:
2006-11-06
XML scripts documentation

As written in the post the documentation for the new scripts is available at http://65.205.71.13/2.3.0 there is a pdf file for Trixbox CE.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



aastra1
Posts: 287
Member Since:
2006-11-06
RE: apply_prf -r

I don't understand we cannot reproduce when we try, it works fine, anyway it seems to work. The phone will only reboot if applying the profile actually changes MAC.cfg, it MAC.cfg is the same there is no reboot.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



aastra1
Posts: 287
Member Since:
2006-11-06
Trixbox 2.8 and beta4 in device and user mode

Hello webhoster,

We have done some specific tests with Trixbox 2.8.0.4 and have identified major problems with the embedded Asterisk not supporting properly user events. We use user events for 2 things: user login/logout in deviceanduser mode and also for the presence application.

Quote:
We are seeing an issue, we configure the phone with device id and then the phone refreshes to the user login. The user logs in and you get a little welcome on the speaker but then the screen stays like that it doesn't refresh to the user screen until you reboot - any ideas?

I believe that you have installed the right user_login_out.agi as explained in the post right? Anyway when a user logs in the scripts (both the phone XML scripts and the user_login_out.cgi used when you dial *11 or *12) generate a user event which triggers a SIP notify to update the phone with the new configuration. Unfortunately, this mechanism does not work with Trixbox 2.8.0.4. We can probably make some changes but that would mean a custom user_login_out.agi file which belongs to freePBX and we want to avoid that as the file is overriden if you upgrade freePBX.
So no short term solution.

Quote:
Also you have changed the directory to be divided into smaller alphabetical segments which is good for large deployments but poor for small ones is there any way to change this behaviour back to a single list of all users? If you only 15 people it is quicker to scroll through and hit dial than doing more each time then scroll then press dial.

This specific problem is in fact a bug, we left some changes in the RPM we did to simulate large directories splitted on multiple pages, next RPM will fix that.

Quote:
We used deviceanduser mode as previously that was the only way to do hot desking etc - has this now changed with the lack of reboot required? Are there any benefits to deviceand user over extensions?

That is indeed an excellent question, a lot of Trixbox users have switched back to 'extensions' since we allow login/logout without reboot. The "deviceanduser" mode allows one major function which is to be logged on multiple devices like a phone at home, at the office and also a softphone at the same time without any complex configuration, but because of this feature you get get strange behavior when you use ACD queues because all the devices will get the call, also for the same reason, the BLF state might behave poorly.
If the only reason you went to "deviceanduser" was to avoid the reboot I would switch to "extensions", anyway as stated at the beginning of this post, "deviceanduser" is not compatible with Trixbox 2.8.0.4

I am not sure if we are going to make a specific fix for Trixbox 2.8.0.4, I will check with Andrew if this can be fixed in Asterisk because it works with all other distributions we are working with.

Hope this helps.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



aastra1
Posts: 287
Member Since:
2006-11-06
RE: Follow-Me LED

Hello Plahpoy,

We perfectly reproduced your issues which comes from a typo in /var/www/html/aastra/include/AastraAsterisk.php in line 2553 (NOY_INUSE instead of NOT_INUSE)

foreach($devices as $device) Aastra_set_devstate_asterisk('Custom:FOLLOWME'.$device,'NOY_INUSE',$as);

must be replaced by

foreach($devices as $device) Aastra_set_devstate_asterisk('Custom:FOLLOWME'.$device,'NOT_INUSE',$as);

Just to be on the safe side, make sure that the FMFM state change works when you dial *21+Extension and also make sure that freePBX has properly setup the custom hints, on the asterisk console (example for extension 400)

*CLI>core show hints
     *21400@ext-findmefollow           : Custom:FOLLOWME400    State:InUse

Good catch!

Thanks for your help.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



aastra1
Posts: 287
Member Since:
2006-11-06
RE: Presence

Hello proximasi,

We managed to reproduce your problem and again it comes from the Asterisk version in Trixbox 2.6.2.3 which does not handle properly the UserEvent generated to update the Presence LED and idle screen. What happens is that after sending the UserEvent command, the phpagi script is expecting something like "Response: Success" which never comes as the script is expecting for a response the phone times out, the event is generated though that's why the LED is updated after the time out.

Here is a quick fix in /var/www/html/aastra/asterisk/away.php around line 337

Replace

# Update LED and idle screen
if($is_sip_notify)

by

# Update LED and idle screen
if($is_sip_notify and $AA_ISYMPHONY)

Let us know if it works for you.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



Atcom Alberta
Posts: 219
Member Since:
2008-07-14
Aastra1: # Update LED and

Aastra1:

# Update LED and idle screen
if($is_sip_notify and $AA_ISYMPHONY)

doesn't seem to work for the presence issue in trixbox 2.6.2.3. The modification to /var/www/html/aastra/asterisk/away.php seems to break the function altogether...



proximasi
Posts: 4
Member Since:
2007-01-25
Presence

Aastra1 Thanks for the quick response.

Tried the posted change to away.php and it seems to work fine.

I suspect the problem that Atcom Alberta had making this work is related to way it appears on the forum; the [color=red] and [color] are not actually part of what gets coded into the away.php file. I assume these were intended to color code the change so it displayed in red on the forum (it doesn't for me)

The change I put in place was simply:
if ($is_sip_notify and $AA_ISYMPHONY)

Is there any downside to this workaround?



SkykingOH
Posts: 9541
Member Since:
2007-12-17
Fixed tag in Aastra1 post

Aastra1 was missing the closing tag so the red highlight command was not working. I fixed this in the post.

--

Scott

aka "Skyking"



aastra1
Posts: 287
Member Since:
2006-11-06
RE: Fixed tag in Aastra1 post

Thanks Scott for fixing my mistake.

--

---
aastra1
Aastra XML scripts 2.3.0 now available



aastra1
Posts: 287
Member Since:
2006-11-06
Re: Presence workaround

Glad to hear that the workaround worked for you. There is no direct downside for this workaround in the short term, we have implemented an update based on user events in order to support iSymphony presence module that we developped with Schmooze because we needed to support an external update of the presence status so right now as the iSymphony module is not there is no need to have this mechanism in place, the LED/screen update can be performed locally.

So you are good but if one day you plan to implement iSymphony presence synchronization will definitely fail. This problem is common to both Trixbox 2.6 and 2.8 even worse with 2.8.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



jahyde
Posts: 2002
Member Since:
2006-06-02
So I am wondering how to

So I am wondering how to make leds work on the new platform.

I am using trix 2.6, asterisk 1.4.33, and 2.3 beta5, no devstate compiled in asterisk, but the feature is on in amportal.conf.

I notice the default voicemail button lights up when there is a message, but on previous versions we could do something like this to light like a general mailbox:

softkey1 type: xml
softkey1 label: "Genrl VM"
softkey1 value: http://192.168.200.18:80/aastra/asterisk/vmail.php?ext=$$SIPUSERNAME$$&user=500&key=softkey1

I thought the key= part at the end would light the led, but no luck.

--

--my PBX is run on 2 V8's



jahyde
Posts: 2002
Member Since:
2006-06-02
So I compiled on the

So I compiled on the devstate backport for asterisk 1.4, but it doent seem to change anything.
This is a different system:
trix 2.6
asterisk 1.4.32
freepbx 2.7
devstate enabled in amportal and backport installed
57i aastra firmware 2.6
xml beta5

Right now the following LED keys do light up and turn off when appropriate
Voicemail
Presence

But all the other keys do not turn on or off when pressing those buttons:
DND
CallFWD
FollowMe
Agent Login
Day/Night

If I press a button, then reboot the phone, then the led comes on, and if I disable the feature, the led will stay lit until another reboot.

Is there a recommendation as far as using trix 2.6 or 2.8 as to which version of asterisk works best with these scripts, I am hoping to do a full deployment with it this next week, but not if the leds dont work.

--

--my PBX is run on 2 V8's



jahyde
Posts: 2002
Member Since:
2006-06-02
so - I tried pulling in the

so - I tried pulling in the previous versions of dnd.php and cfwd.php, this works perfectly, leds turn on and off for both.

For DND this is no consequence, its sufficient, but of course cfwd looses the "My Numbers" feature if this is done, and Followme would be the same (i like "My Numbers). Day night and Agent login also still does not light up.

I then downgraded back to beta4, all leds work correctly except DND, CFWD and Followme.

--

--my PBX is run on 2 V8's



aastra1
Posts: 287
Member Since:
2006-11-06
General VM Box

Hello jayhide,

Quote:
I am using trix 2.6, asterisk 1.4.33, and 2.3 beta5, no devstate compiled in asterisk, but the feature is on in amportal.conf

With the XML scripts 2.3 this cannot work, either backport devstate (and make sure that it is loaded and working) or disable the function in amportal.conf (don't forget to restart asterisk and freePBX). As many people seem to have this kind of issue, we are working in beta6 to have an hybrid solution between a "local" update and an event based update for the LED/idle screen message.

Quote:
I notice the default voicemail button lights up when there is a message, but on previous versions we could do something like this to light like a general mailbox:

Please read the documentation...

Here is what you have to do.
in the phone MAC.cfg located at /tftpbootassuming that 500 is the general mailbox

softkey1 type: xml
softkey1 label: "Genrl VM"
softkey1 value: http://192.168.200.18:80/aastra/asterisk/vmail.php?ext=$$SIPUSERNAME$$&user=500

then reboot the phone

When the phone registers, the MAC.cfg is parsed and the key is stored for the daemon. Just tried it it works like a charm. You can also modify the ".prf" template and perform an apply_prf to all the phones it would work too. What will not work is to do this update using the Web UI. Again this is detailed in the documentation.

Hope this helps.

aastra1

--

---
aastra1
Aastra XML scripts 2.3.0 now available



aastra1
Posts: 287
Member Since:
2006-11-06
LED/idle screen

Somewhere I wonder how you managed to install freePBX 2.7 on Trixbox... anyway wait for Beta6 we ill make a mix between the old way and the new way. Just curious have you enabled feature codes like *76 to toggle the DND?

Again Beta6 should help you. Maybe you could PM me and I would send you the beta6 files for DND, CFWD, ACD agent... you could tell me if it solve your problem, we don't want to go to a beta7.

Regards

aastra1

--

---
aastra1
Aastra XML scripts 2.3.0 now available



peterbokunet
Posts: 19
Member Since:
2008-01-30
DND, CFWD, & Followme w/Beta 5

Hi jahyde,

I'm running Beta 5 on 1.6.2.x, FPBX 2.7 and devstate. The DND, CFWD and Follow-me work as expected on both 57i and 43i phones. Maybe it's something with devstate? Can you see if it sets the values with a 'database show' after hitting the buttons?



jahyde
Posts: 2002
Member Since:
2006-06-02
im not running 1.6x yet, but

im not running 1.6x yet, but yes, the devstates update, just like the phone doesnt hear it. disabled devstate in amportal.conf, and everything works perfect.

--

--my PBX is run on 2 V8's



aastra1
Posts: 287
Member Since:
2006-11-06
LED update

Hi jahyde,

If the LED update is not performed with USEDEVSTATE it is because for some reason aastra_daemon1 is not receiving the manager event it is expecting when a feature is activated either is not generated or it has a wrong format. If you want I can send you something that traces manager events and see what is generated when you press the DND key or press "*76".
Anyway Beta6 has a workaround for you. Will publish it today.

Regards

aastra1

--

---
aastra1
Aastra XML scripts 2.3.0 now available



aastra1
Posts: 287
Member Since:
2006-11-06
Re: jahyde

Hello again jahyde,

We got some equivalent with some versions of Asterisk 1.4. We suspect that the DEVSTATE backport you id is not the one expected by the scripts, you support DEVICE_STATE and not DEVSTATE.

Can you please try this?
In /var/www/html/aastra/include/AastraAsterisk.php around line 4032 (function Aastra_set_devstate_Asterisk)
Replace

if($AA_ASTERISK_VERSION=='1.6') $res=$as->Command('devstate change '.$device.' '.$state);
else $res = $as->Command('core set global DEVSTATE('.$device.') '.$state); 

by

if($AA_ASTERISK_VERSION=='1.6') $res=$as->Command('devstate change '.$device.' '.$state);
else
{
$res = $as->Command('core set global DEVSTATE('.$device.') '.$state);
$res = $as->Command('core set global DEVICE_STATE('.$device.') '.$state);
}

Doing this the scripts are sending the 2 commands as there is no simple way to know which one to use. One of them should work.

Let us know if this works for you.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



Atcom Alberta
Posts: 219
Member Since:
2008-07-14
I'm having the same issue as

I'm having the same issue as jahyde on trixbox 2.6.2.3 with 9480i phones and tried the:

if($AA_ASTERISK_VERSION=='1.6') $res=$as->Command('devstate change '.$device.' '.$state);
else
{
$res = $as->Command('core set global DEVSTATE('.$device.') '.$state);
$res = $as->Command('core set global DEVICE_STATE('.$device.') '.$state);
}

which didn't make any difference. I reverted /var/www/html/aastra/include/AastraAsterisk.php and changed USEDEVSTATE=no in amportal.conf and indications seem to be working correctly now.



aastra1
Posts: 287
Member Since:
2006-11-06
RE: Atcom Alberta

I am surprised that it did not fix your problem but we identified another bug with Asterisk 1.4: aastra_daemon1 crashes when the server is rebooted and as this is the process taking care of collecting events and update some of the LEDs that may be the explanation.
Try this

/etc/rc.d/init.d/aastra_daemon1 restart

Anyway we will release Beta6 this afternoon with the fix for the USEDEVSTATE in Asterisk 1.4.

Regards

aastra1

--

---
aastra1
Aastra XML scripts 2.3.0 now available



Comment viewing options

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