XML scripts 2.2.1 patch for Asterisk 1.6 compatibility

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

All,

As promised, we spent the time to adapt the XML scripts 2.2.1 with Trixbox CE 2.8 (Asterisk 1.6). As you know Asterisk has a lot of changes in 1.6 which are impacting the XML scripts such as:

  1. New Originate permission in manager.conf to allow an AGI client to originate a call
  2. "show parkedcalls" manager command replaced by "parkedcalls show"
  3. "show channel" manager command replaced by "core show channel"
  4. variable parsing for the originate command from "|" to ","
  5. "show voicemail users" manager command replaced by "voicemail show users"
  6. Return format from the parkedvalls command
  7. and more...

Upgrade Directions

Modify "/etc/asterisk/manager.conf"
Add 'originate' as a read/write to the [admin] entry which is the manager user used by freePBX and the Aastra XML scripts, the file should look like this:

[admin]
secret = amp111
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,command,agent,user,originate
write = system,call,log,verbose,command,agent,user,originate

Modify "/etc/asterisk/voicemail.conf"
As the visual voicemail is modifying the voicemail content outside of the voicemail TUI, you need to have "pollmailboxes=yes" in the [general] section. It is not defaulted this way with TCE 2.8.

Install the patch 3
Patch 1 and Patch 2 are included in Patch 3 so Patch 3 can be installed whatever the status of the installed scripts is.
On the console

cd /tmp
wget http://65.205.71.13/2.2.1/aastra-xml-scripts-2.2.1-patch-3.run
chmod +x aastra-xml-scripts-2.2.1-patch-3.run
./aastra-xml-scripts-2.2.1-patch-3.run

You need to reboot the server in order to restart the daemons.

Patch 3 Release Notes
Patch 3 is cumulative and includes Patch 1 and Patch 2 changes.

Files changed
include/AastraAsterisk.php
- Potentially problematic trace removed
- Cannot unnotify return status if voice message notification
- Signature mechanism disabled for 'deviceanduser' mode
- Compatibility with Asterisk 1.6
include/AastraCommon.php
- Compatibility with Asterisk 1.6
include/AastraIPPhone.class.php
- Various locks on 9133i/480i/480iCT in applications making an incoming phone call or dialing out (Visual VM, Visual Parking...)
aastra/aastra_daemon2
- Compatibility with Asterisk 1.6
aastra/away.php
- Various locks on 9133i/480i/480iCT in applications making an incoming phone call or dialing out (Visual VM, Visual Parking...)
- Compatibility with Asterisk 1.6
aastra/directory.php
- Various locks on 9133i/480i/480iCT in applications making an incoming phone call or dialing out (Visual VM, Visual Parking...)
aastra/music.php
- Various locks on 9133i/480i/480iCT in applications making an incoming phone call or dialing out (Visual VM, Visual Parking...)
- Compatibility with Asterisk 1.6
aastra/notify.php
- Compatibility with Asterisk 1.6
aastra/park.php
- Various locks on 9133i/480i/480iCT in applications making an incoming phone call or dialing out (Visual VM, Visual Parking...)
asterisk/sync.php
- Potentially problematic trace removed
asterisk/vmail.php
- Various locks on 9133i/480i/480iCT in applications making an incoming phone call or dialing out (Visual VM, Visual Parking...)
- Messages now sorted by date (most recent one first)
- Wrong page number for the forward option
- On 480i/480iCT random 'Page Load error' when selecting a user for forward
- Allow DTMF passthrough for message control when playing message (4=Rewind 2s, 6=Fast forward 2s, 0=Stop, 5=Pause/Play,1=Restart), 2.x phones only.
- Compatibility with Asterisk 1.6
asterisk/startup.php
- Forced logout did not update MAC.cfg when 1.4.x phone non connected.

There are no config files changed by the patch so no need to backup before upgrading.

Please let us know if you find any problem with the patch, we tried to test the best we can but bugs might have escaped :-)

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



SkykingOH
Posts: 9682
Member Since:
2007-12-17
Great Job Aastra - You set

Great Job Aastra -

You set the bar for vendor responsiveness.

What I do find interesting is that these commands have been displaying an advisory, when used from the CLI, since version 1.4.18 that they would be deprecated in future releases.

When it happens the world acts all surprised.

--

Scott

aka "Skyking"



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

Thanks Scott, the thing is that, as we work exclusively with the phpagi we basically never saw the warnings for the deprecations but we should have anticipated these changes as they are pretty well documented.

--

---
aastra1
Aastra XML scripts 2.3.0 now available



paal26
Posts: 15
Member Since:
2009-09-13
I've applied the following

I've applied the following for the horoscopes file. It may just be me, but the pages would not resolve. For anyone else who wishes to know how their day may go and cannot use the feature:

[Aries]
ttl=daily
#xml=http://www.astrosage.com/rssfeeds/sign-rss.asp?sign=1
xml=http://feeds.feedburner.com/AstroSageAries

[Taurus]
ttl=daily
#xml=http://www.astrosage.com/rssfeeds/sign-rss.asp?sign=2
xml=http://feeds.feedburner.com/AstroSageTaurus

[Gemini]
ttl=daily
#xml=http://www.astrosage.com/rssfeeds/sign-rss.asp?sign=3
xml=http://feeds.feedburner.com/AstroSageGemini

[Cancer]
ttl=daily
#xml=http://www.astrosage.com/rssfeeds/sign-rss.asp?sign=4
xml=http://feeds.feedburner.com/AstroSageCancer

[Leo]
ttl=daily
#xml=http://www.astrosage.com/rssfeeds/sign-rss.asp?sign=5
xml=http://feeds.feedburner.com/AstroSageLeo

[Virgo]
ttl=daily
#xml=http://www.astrosage.com/rssfeeds/sign-rss.asp?sign=6
xml=http://feeds.feedburner.com/AstroSageVirgo

[Libra]
ttl=daily
#xml=http://www.astrosage.com/rssfeeds/sign-rss.asp?sign=7
xml=http://feeds.feedburner.com/AstroSageLibra

[Scorpio]
ttl=daily
#xml=http://www.astrosage.com/rssfeeds/sign-rss.asp?sign=8
xml=http://feeds.feedburner.com/AstroSageScorpio

[Sagittarius]
ttl=daily
#xml=http://www.astrosage.com/rssfeeds/sign-rss.asp?sign=9
xml=http://feeds.feedburner.com/AstroSageSagittarius

[Capricorn]
ttl=daily
#xml=http://www.astrosage.com/rssfeeds/sign-rss.asp?sign=10
xml=http://feeds.feedburner.com/AstroSageCapricorn

[Aquarius]
ttl=daily
#xml=http://www.astrosage.com/rssfeeds/sign-rss.asp?sign=11
xml=http://feeds.feedburner.com/AstroSageAquarius

[Pisces]
ttl=daily
#xml=http://www.astrosage.com/rssfeeds/sign-rss.asp?sign=12
xml=http://feeds.feedburner.com/AstroSagePisces

A+ on the scripts. The day/night mode key is fantastic.



aastra1
Posts: 287
Member Since:
2006-11-06
Good catch and fix

Hi paal26,

Good catch, we missed the fact that www.astrosage.com changed the URIs fir their RSS feeds, thanks for fixing that.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



Atcom Alberta
Posts: 220
Member Since:
2008-07-14
I'm running Trixbox 2.8.0

I'm running Trixbox 2.8.0 with Aastra 2.2.1-1 XML scripts and 2.5.1.41 firmware in 9480i phones.

It appears the MWI doesn't go out after listening to/deleting messages via the XML script. The light does go out, however, after listening to messages via *97.



SkykingOH
Posts: 9682
Member Since:
2007-12-17
For some reason trixbox

For some reason trixbox distribution does not have "pollmailboxes" set on by default in voicemail.conf.

--

Scott

aka "Skyking"



Atcom Alberta
Posts: 220
Member Since:
2008-07-14
Thanks Scott! This is on my

Thanks Scott! This is on my demo system so it was pretty important to make things work properly... I think I'll steer clear of 2.8 on production systems for a while yet.

Cheers,
Bill



aastra1
Posts: 287
Member Since:
2006-11-06
Initial post modified

Thanks Skyking, we missed it in the patch installation directions, the initial post has been modified.

--

---
aastra1
Aastra XML scripts 2.3.0 now available



mammoth
Posts: 449
Member Since:
2006-06-14
weather

I seem to be having trouble with weather.php on trixbox 2.8 after following the upgrade instructions above. I get a page load error. Visual voicemail, parkinglot, and rss feeds seem to work fine.

Also, the demo feed [http://65.205.71.13/xml/weather/weather.php] for weather from the aastra website works fine. I just can't get it to run on the local server. Any ideas that could point me in the right direction? I've tried redownloading just that file from the source in case it had been corrupted, but the result is the same. thanks very much,

jason



timboothby
Posts: 18
Member Since:
2007-09-11
Recording VM Messages

Hi,

I've applied the patched as above (Trixbox v2.8.0.2). One thing that still isn't working is the ability to record voicemail greeting messages. When I try to it jumps straight to an audio "Goodbye!" message accompanied by two beeps.

Anyone else having this problem or able to suggest a fix?

Thanks,

Tim



mammoth
Posts: 449
Member Since:
2006-06-14
Recording VM Messages

I get the same result as timboothby when trying to record voicemail greetings from the script. It's not a feature I even knew about previously so it's not a big deal by any means (to me), but I wanted to let folks know.



nhue
Posts: 31
Member Since:
2007-06-07
Presence

Hi,

Is there a way to access the Presence application out of an Aastra phone, say for the receptionnists who wants a quick way to find whats the status of an extension. I know that sort of thing would be impossible to implement on a product like HUDLite as it is closed down but a simple HTTP interface where we can query an extension to get the same result as the phone does would do it.

Ideally a full featured dashboard with realtime updates would be the best but I won't hold my breath.

Thanks,



SkykingOH
Posts: 9682
Member Since:
2007-12-17
nhue - The presence

nhue - The presence application on Aastra fully integrates with iSymphony and does exactly what you want.

--

Scott

aka "Skyking"



nhue
Posts: 31
Member Since:
2007-06-07
SkykingOH - Thanks, I did

SkykingOH - Thanks, I did just that, installed latest iSymphony server (free edition) and the FreePBX modules which added all the extensions automatically, but now the presence status didnt get added nor do they seem to update when changed thru aastra phones. Is there any config to do at all to make it work?



daftech
Posts: 34
Member Since:
2007-08-06
Presence

I seem to have the same problem. I have a fresh install of astrisk 1.4, freepbx 2.5, aastra-xml-scripts-2.2.1-1 and a licensed Conductor version of iSymphony but cannot get the presence to work between my aastra 6757i and iSymphony.

nhue - I do know that you have to have a licensed version of iSymphony for the presence function to work. It's not enabled in the free version.

Can someone tell me what I am missing?

Thanks



PowerOn
Posts: 52
Member Since:
2007-10-17
Just an fyi for people using

Just an fyi for people using something Asterisk 1.6 based other than TrixboxCE 2.8.0.2 or 2.8.0.3.

Parking Lot number splash screen and CallerID in the visual parking lot don't work.

So here are the fixes to the Aastra xml 2.2.1 script with patch 3 applied:
/var/www/html/aastra/include/AastraAsterisk.php
function Aastra_get_parked_calls_Asterisk()
Change
"$parameter=2;"
to
"$parameter=1;"

function Aastra_check_park_Asterisk($user,$number)
Change
"$param_channel=2;"
"$param_timeout=7;"
to
"$param_channel=1;"
"$param_timeout=6;"

These changes make the variables the same as the scripts were with Asterisk 1.4 so perhaps it is a bug in the version of Asterisk1.6 that Trixbox 2.8.0.3 uses which Asterisk has since fixed?? If that is the case then the parking lot CID will not work when Trixbox upgrades Asterisk 1.6 in v2.8 or someone manually tries to upgrade Asterisk 1.6.

This is confirmed working on a system compiled from scratch using CentOS 5, Asterisk 1.6.0.21, FreePBX 2.6.0.3

--

Rent an Asterisk Virtual Private Server.
http://vps.powerpbx.org



nhue
Posts: 31
Member Since:
2007-06-07
is it juste me or ... new

is it juste me or ...

new firmware 6755i_FC-001087-10-REV07_2.5.3.18_1001, and all 2.5.3 for serie 5, completely BREAKS any XML scripts, the softkey just don't respond anymore. Reverting to 6755i_FC-001087-10-REV05_sr_2.5.2.1010_0909 fixes things. Isn't something that go thru testing before its released to public?!

6739i_FC-001274-00-REV00_sr_3.0.0_0912 works tho, for the XML part.

anyone having this problem?



nhue
Posts: 31
Member Since:
2007-06-07
fixed

about my previous post,

the new firmware in itself works correctly, I just had not uploaded the updated Language Packs, so FYI, if you use a different language then English, since Aastra has changed the "loading page" message for XML requests if the phone does'nt find the appropriate translations from the Language Pack file the function just doesnt work. My mistake.

Having now updated the language packs the firmware seems fully functionnal.



nhue
Posts: 31
Member Since:
2007-06-07
only works on 55i, not on

only works on 55i, not on 57iCT, so language pack is unrelated since both phones use the same file, i'm clueless.. ;S



Comment viewing options

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