BOUNTY: Aastra Presence/Away status

ethans
Posts: 519
Member Since:
2007-01-16

Trixbox user Peterfam has posted a bounty for Aastra XML presence capabilities. As this is currently on my todo list, I have accepted and am soliciting for additional financial support for release into the community.

Included will the the ability to set your current presence on the Aastra handsets through a button, choosing "at lunch", "at meeting", "away", "and "out of town". Depending on the away status you choose, the user would be presented with an opportunity to choose a return time or date, then be able to press a soft key to easily record a temporary away message (saved as the voicemail temporary message). The first option when pressing this button would be "Where is...", which would provide a menu of all the users on the system to view their status. If the user is currently away, the button can be pushed and "I'm back" can be selected, which will remove the away status and temporary voicemail message.

Additionally, possibilities for displaying presence on the side cards will be explored. If possible with the current character constraints, single character status messages would be displayed next to the person's name on the Aastra side cards, for example (L), (M), (A), (O) - no pun intended.

This information will be centrally stored in Asterisk, via the AstDb, for further integration into other devices in the future (including web, IM, ARI, outlook and voice).

If you are interested in this functionality, please consider contributing to the bounty, as it is a fairly complex application to develop correctly.



jahyde
Posts: 2002
Member Since:
2006-06-02
count me in for $50 (not

count me in for $50 (not much I know, doesnt interest me greatly, but looks like a good cause).

Now if we can get really trick - if this presence button could also be used to control follow-me status - now that would be kickin.

Press the button, choose your presence:
-Away
-At Lunch
-Vacation
-Remote:
--Follow-Me
--VMX + Follow-me (this may be over the edge, and i would consider contributing a bit more at this point)

How are your other projects- maybe I missed it, but whats going on with the speech enabled vmail and "Magic Button" (I see you got an invite to Redmond;)? Any chance of release, or paid release? Good luck Ethan.

-John

--

--my PBX is run on 2 V8's



jfinstrom
Posts: 2008
Member Since:
2007-03-07
I've been to redmond... Its

I've been to redmond... Its horribly cold and the people drink way too much Starbucks...

Actualy I miss Washington, Washington Rocks except Tacoma... :)

--



ethans
Posts: 519
Member Since:
2007-01-16
There were a lot of good

There were a lot of good formal discussions with key parties about the Magic Button at VON. A release tied with some sort of subscription speech port licensing mechanism may be a reality sometime in the not-too-distant future. And yes, the Magic Button does have presence capabilities which would link in with this and other future projects.



PowerOn
Posts: 52
Member Since:
2007-10-17
I personally think Shared

I personally think Shared line appearance and/or Shared Extension appearance type behaviour via XML is a MUCH worthier cause if it's an issues of priorities.

My 2 cents

--

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



ethans
Posts: 519
Member Since:
2007-01-16
I have to follow the

I have to follow the money...



joojoo
Posts: 13
Member Since:
2008-03-05
What are the specifics of

What are the specifics of the bounty?



peterfam
Posts: 65
Member Since:
2006-12-15
I have a need for an xml

I have a need for an xml app. that would make it possible to see status of employees,
are they in meeting or out to lunch. I therefore asked Ethan if he could write that app.
for the Aastra 5i phones.
For a start I throw in 300$, and I have asked my customers if they will join this bounty.
I have no idea of how big the bounty has to be before this will be released to the community, but I hope that this will be a reachable goal, maybe for a start a smaller version with the possiblity of setting and showing status direct on the phone.



JustinHoMi
Posts: 56
Member Since:
2008-03-05
A customer of mine just

A customer of mine just asked for this funtionality. For now we're going to use Hudlite to get similiar functionality, but if that doesn't work we'll add to the bounty.



ethans
Posts: 519
Member Since:
2007-01-16
AASTRA PRESENCE MANAGEMENT COMPLETE

So the Aastra presence manager is complete. First details on how the application works, then how you can get it.

How it works: A user pushes the Away button on their phone. If the user is currently not away, they are presented with a menu you can choose from:
I'm away
I'm at lunch
I'm in a meeting
I'm out of town.

Once the user chooses one of these options, the LED is lit for this button, and they are presented with sub-options:
Ret Date (if generic "away" is chosen or out of town is chosen) Ret Time Temp Msg and Exit

The user can push any of these soft buttons and then select their return date, return time or record a temporary away message. If they choose exit, their presence is still set, but there is no "further information" set. Selecting Temp Msg sends a auto-answer/dial to their phone and drops them into a dial plan where they can record their temporary voicemail message. It's all seamless and upon setting any one of these options, they can set more options or just exit (or timeout).

If the user has an away status set and push the Away button, it will allow them to change their status or push "I'm back". Pushing the "I'm back" button removes any away status, return times, and return dates, deletes a temporary voicemail message if set, and un-lights the LED.

Another option when pressing the button is "Where is". Pushing this soft button will allow the user to select another extension in the PBX and view the away status for that user, including return date and return time. It displays their presence status next to their name in list format (L), (M), (A), (O) and when you press the Details soft button, the full presence information is displayed including return date and return time. Once in the details screen, you can also call the user by pressing the Dial soft button.

So, pretty cool stuff. Now, how do you get it? I had to get clever on this one, so bear with me. A bounty was posted and there wasn't a lot of traction. Unfortunately, the amount of time to develop this application is worth more than the original $300, so I've developed a nifty bounty program to appease everyone. I'm setting a reserve bounty on this project at $1500. Anyone who contributes $300 gets the application immediately, premium support and "hero" status. For example, since Pererfam put up the first bounty, he will receive a requested internationalization mechanism so he can translate the app into Danish. As soon as there are a total of $1500 in contributions, the application is GPL'd. The "heroes" get credit in the INSTALL and LICENSE files distributed with the application, in addition to a mention in the screen output of the installer script required to install all the components. Since this application involves dial plans and AGI in addition to the Aastra XML PHP, an installer script will be provided to install all the necessary components. Additionally, "heros" get priority access to any other applications that are licensed in the same manner in the future. So if you contribute $300 and I release the Aastra SLA application, you get it even if the bounty is never met. Finally, all Open Telephony Training Seminar participants will have full retroactive and future access to all applications at no charge. See my signature for details. Register for the next event in Vegas and I'll email you the Aastra presence manager.

Though this is getting to be a long and boring post, let's talk about the future a little bit. The foundation of the presence capabilities I have built aren't just a wild stab in the dark with for Aastra phones. In the coming months, the presence management will be built into a lot of different devices and regardless of what device a user sets their presence in, it will be centralized. Coming very shortly is complete integration with the iSymphony "HUD competitor". It's a solid product. You should download it and try it. Set your status on the Aastra phone and it is set in iSymphony and the reverse. Additionally, the presence management is built into the magic button (http://schmoozecom.blogspot.com/2008/01/microsoft-response-point-tm-pbx....), so say "I'm back" after pushing the magic button and the LED next to the Away button on your phone goes away and other users requesting presence on your extension through whatever means have updated information. Say "I'm at lunch" to the magic button and your centralized presence is set and the LED on your phone is lit automatically. Yes this is all working right now. Additional avenues being explored include Outlook integration, ARI "user control panel" integration in FreePBX, and Jabber integration.



jahyde
Posts: 2002
Member Since:
2006-06-02
thinking about being a hero

thinking about being a hero (hmm - walking into the burning building;)

does it set the ext to DND when selecting one of the out of office status'es?

Any thoughts/ETA on making it enable follow-me or VMX menu? (I know this may take a lot more customization inside freepbx, but maybe Philippe would be interested in colaborating;)

lastly when will you make the xml button to "bill the client for this time" while your on a call (just dreaming).

--

--my PBX is run on 2 V8's



ethans
Posts: 519
Member Since:
2007-01-16
It does not set DND. I've

It does not set DND. I've long debated this in general and haven't come to a conclusion. More feedback from more people would be helpful. If you contribute, I'll make it do that for you if you want. It's about 2 minutes of code.

I haven't thought about having it do things with follow me, but I'll be talking to Philippe tomorrow so I'll bring it up with him and see what his thoughts are.

It took me about 2 minutes of re-reading your last thought before I figured it out (it's too late!) It's not a bad idea. It wouldn't be too difficult to set a timer when the button is first pushed and end the timer when the call is hungup then save the info to a database that can be reported on. You could even setup a client list ahead of time and choose from a list. The XML buttons will work in a call on the 5i series, though they have to be at position 6 or above, then you click the "More" soft button while on a call and have access to them. Or you can just set one of the prgkeys on the top and have it do the same.



JustinHoMi
Posts: 56
Member Since:
2008-03-05
This would be very valuable

This would be very valuable to me if there was a centralized way to view the status of all the users at once either on an expansion module or a windows program.



peterfam
Posts: 65
Member Since:
2006-12-15
bill the client for this time

Wow, i need that too :) also possible to start recording as an option

/Thomas



ethans
Posts: 519
Member Since:
2007-01-16
I'm not a Windows client

I'm not a Windows client side programmer, so if anyone feels compelled I'll provide you with the code and an abstraction layer to get/set the status via the manager.

As far as the expansion module goes, I'm working on it as soon as I dig through our warehouse and find one.

As it stands, you can push the "Where is" softbutton on the phone and browse a directory that has labels next to the names for their away status.



SkykingOH
Posts: 9537
Member Since:
2007-12-17
My 2 cents

Ethan,

This is a good start and is providing needed services for the users it was originally designed for.

Presence is a key component to Unified Messaging. There are several initiatives to integrate true presence into Asterisk core.

There is also a presence module for OpenSER.

Cisco, Oracle and Microsoft (along with many others) provide closed source presence integrated with their respective architectures.

Open Source has the answer by supporting IETF standards (RFC 3856 and 3857) the ability to subscribe and publish presence status and peer with other presence servers is key to adoption.

The client side parts will fall in line once the back end is complete.

--

Scott

aka "Skyking"



ethans
Posts: 519
Member Since:
2007-01-16
I would say that IETF

I would say that IETF standard is a more general concept of presence and the client will still implement it as they see fit with the various types of presence status messages. I for one am not the type to wait for a standard to be adopted and then wait for clients to implement it.

Instead, this provides immediate presence capabilities centralized via the Asterisk server which clients can then consume. For now the Aastra phones, magic button, and iSymphony will be able to consume these statuses. In the future who knows how this will be distributed but at least the clients will be ready with real-world implementations that can be shared.

Modifying clients to use any new standards in the future will be worth the time to do so, however waiting for other people to complete the back end work isn't necessary to move forward with working real-world user-based presence (away) statuses.

Just my opinion.



ethans
Posts: 519
Member Since:
2007-01-16
An update: Peterfam

An update: Peterfam graciously gave 2 hero contributions and another is on the way from someone else, bringing the total to $900. Two more contributions for GPL release.

Additionally, I have added a new feature to the application. User's requesting the away status of another user will have the option to "be notified of this user's return". If a user subscribes to be notified, as soon as the person pushes the "I'm back" button, any notifications will begin. If the person being notified is on the phone, it will leave a voicemail message automatically. If the person being notified is available, they will receive a page to their phone notifying them of the return of this user and can press 1 to automatically call the user.



jahyde
Posts: 2002
Member Since:
2006-06-02
OK, I'm in, I like it -

OK, I'm in, I like it - where do I sign, where does the money go.

the last part in my previous post was just a bit of humor ;)
if it could write checks out of my clients check book and put them in my account - now that would be a magic button ;)

--

--my PBX is run on 2 V8's



ethans
Posts: 519
Member Since:
2007-01-16
Another update:

Another update: internationalization is working for the output, dates, and times. It should be relatively easy for anyone to translate it into a language.



ethans
Posts: 519
Member Since:
2007-01-16
SO CLOSE! One more

SO CLOSE! One more contributor to go for full community GPL release. Here are the heroes so far:

perterfam: $600
gbrook - $300
jahyde - $300



ethans
Posts: 519
Member Since:
2007-01-16
9133i Support: After the

9133i Support:

After the final contribution is made, 9133 support will also be released. This should make the application work across the span of Aastra phone models. I'm working on the nasty code modifications required right now and expect to be done this weekend.



jahyde
Posts: 2002
Member Since:
2006-06-02
Ultimately I would like to

Ultimately I would like to see integration with Follow-me, and 2ndly VMX.

This may require a web page for the user to do the preliminary config of the "Status Manager", if we keep it simple I suppose it could be done on the phone LCD, not sure which would be easier to code/manage.

User gets the same choices:

L=Lunch
A=Away
M=Meeting
O=Out of Town or on the road???

What happens in the background-

Use the web config page to turn on a follow-me for anyone of the above Statuses.
and/or (2nd stage dev, if this takes too much work??):
Use the webpage to select a VMX Menu for any of the above Statuses (which may include Follow-me).

ie:

L: "This is John, I am out to lunch till 1, press 1 to leave a message, 0 to speak to a receptionist, or 3 to reach me on my mobile phone."
Return to my desk, press the Status "In/Available" and VMX is turned off, all calls come in as normal to my desk phone.

O: Hard set follow-me/Forward to my cell with confirmation.

---------------------------------------
Having multiple VMX menus would be a luxury, so not really needed, if we just had to deal with toggling on or off the VMX menu that is pre-built in the ARI, that would be a great tool.

So maybe have the user build a VMX menu in ARI and save it for use when unavailable (no answer, or DND is on), and have a check box in the Status config page.

This may be done even simpler, and only requires that the Status turn on DND - no config option needed in the "Status Manager".

Or maybe just have the Follow-me built in the ARI, but not enabled, and picking a particular status could enable the followme in the background.

Obviously the ultimate would be to have this be a FreePBX module that integrates it all into the ARI for one unified user interface to fine tune everything, and maybe even change phone statuses over the web in ARI (I stay home sick, and decide I want everyone to see my status on their phones, and maybe turn on a VMX with a silent option to hit my cell for important calls).

These are things that the Vertical Televantage system (aka Toshiba Strata CS) has done for close to a decade and people love it.

Just throwing ideas on the table.

Thanks for the great work Ethan, give me a call anytime you'd like a good beer in San Diego. --John Hyde

--

--my PBX is run on 2 V8's



ethans
Posts: 519
Member Since:
2007-01-16
John, Thanks for the

John,

Thanks for the feedback, and as it were, I will probably be in San Diego soon to visit Lumenvox and do some work in their AV studio. If it's all the same to you, though, I'll do the buying. ;) I'm an IPA and pale ale kinda guy.



jahyde
Posts: 2002
Member Since:
2006-06-02
well i can show you the

well i can show you the sweet spots for ipa ;) carlsbad brewery izz nice.

--

--my PBX is run on 2 V8's



ethans
Posts: 519
Member Since:
2007-01-16
Support for the Aastra 9133

Support for the Aastra 9133 is now available. Theoretically it should work on any Aastra handset now, though I only have 9133i's, 55i's and 57i's to test on. The experience will be best on 5is and 480is, though it will allow for access to basic functions on the lower capability handsets. No LED indication, but you can still see your status on the idle screen.



jahyde
Posts: 2002
Member Since:
2006-06-02
i finally tested it out

i finally tested it out today Ethan, it is awesome!!!!! It provides the obvious, and then goes beyond that and gives what i would want from it next. If my final wish items were there, it would be out of this world ;).

--

--my PBX is run on 2 V8's



dwright154
Posts: 81
Member Since:
2007-02-14
I'm in.

As an avid user of Aastras I'll continue my support of the bounties.

I'd like to add that one of my stipulations is that we get these as parts of the Aastra distro. I'd also like a web page to view this list in one shot.

An I paypaling to the same addy as the Day Night mode Ethan?

-Darren



ethans
Posts: 519
Member Since:
2007-01-16
Yes. The only thing I'll

Yes, same Paypal. The only thing I'll say about your stipulation (while I encourage it to happen) is that this app uses an installer because it needs to intelligently install some AGI, prompts, and dial plans. This logic would need to be built into the RPM, which I would be willing to help with if needed.



ethans
Posts: 519
Member Since:
2007-01-16
COMMUNITY RELEASE

I trust dwright154, so here it is:

A big thanks from the community to the following "heroes" who made
this application possible for GPL release:
Trixbox users:

peterfam - $600
gbrook - $300
jahyde - $300
dwright154 - $300

Please support these users in the future!

wget http://test2.schmoozecom.com/aastra-presence.tar.gz
tar -xzvf aastra-presence.tar.gz
cd aastra-presence
./install
(or ./install --language danish) for Danish language pack thanks to peterfam!)

All the instructions are in the README.txt file.

If you missed the opportunity to be a "hero" for this application,
please see the thread on Aastra "Shared Line Appearance" at
http://www.trixbox.org/forums/trixbox-forums/open-discussion/rese...

There are currently 2 commitments for this SLA application, so we need
6 more commitments! I begin development on this application after
some housekeeping. There are more apps coming, so stay tuned!



ou812
Posts: 15
Member Since:
2007-02-06
COMMUNITY RELEASE

Will this install the same way on PIAF or does it need modification.

gary.



ethans
Posts: 519
Member Since:
2007-01-16
It should work fine on PIAF.

It should work fine on PIAF. It currently doesn't work with the recently released Aastra package. I need to find the time to digest the comprehensive changes Aastra made to the package and integrate the application properly. I don't think PIAF uses the latest one just release a week or two ago, though.



ou812
Posts: 15
Member Since:
2007-02-06
I will install later this

I will install later this week I will let you know how it went.

gary



jahyde
Posts: 2002
Member Since:
2006-06-02
I was able to make it work

I was able to make it work on the current aastra package, they have changed the way some things are done, but I was able to make it work.

the default cfg file is now in: /var/www/html/aastra/asterisk/trixbox.prf

options can still be pushed using aastra.cfg, but the prf is a template that is better for multiple models, and you wouldnt want to overwrite its button positions in aastra.cfg.

--

--my PBX is run on 2 V8's



ethans
Posts: 519
Member Since:
2007-01-16
Can you send me what you did

Can you send me what you did to accomplish this? I really wish I had the time to go through the new Aastra stuff, but at the very least, I'd like to create a compatible package for people who want the application to work in the newest Aastra XML package.



jahyde
Posts: 2002
Member Since:
2006-06-02
its been a few weeks, and i

its been a few weeks, and i sent the system to a locked down customer site, but i tar'd the configs before hand, will send you a copy. I didnt really do anything, just added the status button to the new template file and it worked, also had to have correct phpagi.conf.

--

--my PBX is run on 2 V8's



peterfam
Posts: 65
Member Since:
2006-12-15
"notify me" does not work

i cant get the "notify me" function to work,
im running trixbox 2.2.12
aastra xml scripts is 1.1.0
Phone firmware 2.2

When a user set is status to away, another user asks for notification, but nothing happens when the "im back" button is activated.

I have voicemail enabled, and the "name" has been recorded, i s that nessary?

/Thomas



jahyde
Posts: 2002
Member Since:
2006-06-02
notify works on 2.6x for me

notify works on 2.6x for me

--

--my PBX is run on 2 V8's



ethans
Posts: 519
Member Since:
2007-01-16
Thomas can you send me your

Thomas can you send me your Asterisk CLI output surrounding this functionality?



netout
Posts: 187
Member Since:
2007-08-18
Hay guy's I am just loading

Hay guy's

I am just loading this and notice that if I change the

action uri onhook:

That my Aastra-script that I am using might not work properly. I think we should make sure that if we use more than one they should play well together. Or maybe we can only have one at a time. How will this work when you introduce your Aastra XML SLA (Share "Line" Experience). As more of these become available your going to have people trying to load all of them the same day or over the corse of a month whatever.

I just don't know enough about your "Cool Magic XML apps" to understand if they should work together and Im sure there are more. In my case I could care less if it blows up my box because it's one of my test boxes at my house.

So to get back to the orignial question if I chanve the action uri onhook: from the one the Aastra-scripts put there will it hose the original script or can I have 2 in there or how does that work?????

Thanks all. You made my sunday a blast playing with XML "YOU RULE"

--

Michael D Mosier
Sr. Telecom Engineer
Network Outfitters
Houston, Austin and San Antonio
Support Available
832-715-6981



ethans
Posts: 519
Member Since:
2007-01-16
The installer for this

The installer for this script does NOT replace the onhook action. It adds an include to the existing onhook action PHP file. You shouldn't be replacing anything. Please note that the latest scripts released by Aastra change the directory structure and other elements of the XML scripts, so the installer will not be able to find the files it needs to patch, and you will need to do this yourself. The onhook-away.php file is meant to be included by the onhook.php file, not become part of your phone configuration.



79tank
Posts: 25
Member Since:
2008-04-11
XML

Do these apps work on trixboxPro?



amiracle
Posts: 6
Member Since:
2008-06-25
Is there any way to map a

Is there any way to map a softkey to a specific extension in the Where Is directory?



ethans
Posts: 519
Member Since:
2007-01-16
To go right to where is,

To go right to where is, your URL should have away.php replaced with away.php?user=$$SIPUSERNAME$$&display_users=true&key=softkey1 softkey1 needs to be replaced with the name of whatever key you are configuring.



necits
Posts: 419
Member Since:
2008-02-23
Has anyone gotten this to

Has anyone gotten this to work with the new aastra scripts?? I copied onhook.php to /var/www/html/aastra so it could be patched and then copied it back to /var/www/html/aastra/asterisk. I then copied the onhook-away.php and away.php to from /var/www/html/aastra to /var/www/html/aastra/asterisk. I also copied the includes from aastra directory to asterisk directory. Set uri to http://x.x.x.x/aastra/asterisk/away.php?user=$$SIPUSERNAME$$&key=softkey14

After I select away status all I have for options are I'm back and change. when I select change nothing happens.

--

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



necits
Posts: 419
Member Since:
2008-02-23
Ethan, How much $$ to get

Ethan,

How much $$ to get this to work with the latest aastra scripts??

--

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



ethans
Posts: 519
Member Since:
2007-01-16
I have all my XML

I have all my XML applications ported to the new Aastra code structure, including this one. I'll post a link later this week after I wade through my email after 2 weeks of vacation.

If you want to donate money to a development cause, pick one:
http://trixbox.org/forums/trixbox-forums/open-discussion/really-e...



necits
Posts: 419
Member Since:
2008-02-23
You Rule !!!!!

And yes I absolutly plan on donating (Have donated to a couple of projects in the past) I'm selling my first system next month and if everytninhg goes well Ii plan on donating a portion of my profits. After all I couldn't have done it without you guys (and girls)!!

--

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



ethans
Posts: 519
Member Since:
2007-01-16
http://test2.schmoozecom.com/

necits
Posts: 419
Member Since:
2008-02-23
Still Not working

Hope you had a good vaca Ethan. i'm jealous!! Went cross country a few years ago and had an awesome time. Anyway I installed the new script (I cleared out old remnants of the old script) but am still having an issue. Also I had no errors during install.

Set uri to http://x.x.x.x/aastra/asterisk/away.php?user=$$SIPUSERNAME$$&key=softkey14

Here's the problem:

This part of the app works

"A user pushes the Away button on their phone. If the user is currently not away, they are presented with a menu you can choose from:
I'm away
I'm at lunch
I'm in a meeting
I'm out of town."

This part doesn't

"Once the user chooses one of these options, the LED is lit for this button, and they are presented with sub-options:
Ret Date (if generic "away" is chosen or out of town is chosen) Ret Time Temp Msg and Exit"

I am getting no sub options. After I select away status all I have for options are I'm back, change, Whereis and Exit. When I select change nothing happens.

Know your busy but any help would be greatly appreciated.

--

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



necits
Posts: 419
Member Since:
2008-02-23
Undefined Variable

Not sure if this helps but I'm getting this in the httpd logs:

PHP Notice: Undefined variable: i18n in /var/www/html/aastra/asterisk/away.php on line 76
PHP Notice: Undefined index: display_users in /var/www/html/aastra/asterisk/away.php on line 267
PHP Notice: Undefined index: display_user in /var/www/html/aastra/asterisk/away.php on line 268
PHP Notice: Undefined index: set_status in /var/www/html/aastra/asterisk/away.php on line 269
Undefined index: returntime in /var/www/html/aastra/asterisk/away.php on line 271
PHP Notice: Undefined index: returndate in /var/www/html/aastra/asterisk/away.php on line 272
PHP Notice: Undefined index: check in /var/www/html/aastra/asterisk/away.php on line 274

--

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



necits
Posts: 419
Member Since:
2008-02-23
It's Working Now

I set this up on a new system and now it works. I think I may have had old stuff left over. Thanks for a great script.

--

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



gregc21
Posts: 35
Member Since:
2008-03-19
First off, thank you for a

First off, thank you for a very nice script.

I have it installed and it works... almost. When I select 'Away', I am presented with the 'Away Status' menu. I can select any of the options and all is well. I can set the ret date and ret time, but when I go to set a temporary message, it beeps and says "Thank you, your temporary away message has been saved." This happens on any of the 'Away Status' selections. It doesn't allow me to record the temporary away message. Returning works fine.

This is on Trixbox 2.6.10 with 57i phones.

--

- Greg



txcardio
Posts: 31
Member Since:
2008-02-14
I am trying the url to get

I am trying the url to get the scripts and I get a page not found. Did I miss something?



gregc21
Posts: 35
Member Since:
2008-03-19
I'm still having troubles

I'm still having troubles with this. I did a fresh install of PIAF to see if that made any difference and now I'm getting the same behavior that necits above had.

That is, after one of the "Away" status's is chosen, I'm left with I'm back, Change, Whereis and Exit.

Does Ethan monitor this thread anymore.

Anyone else able to help? I had this working on a test rig a couple months ago and would really like to keep the functionality.

--

- Greg



ian.wills
Posts: 10
Member Since:
2008-08-13
post for subscription, I'm

post for subscription,

I'm going to be looking at this as soon as I solve some stability issues. I'm running 57i phones as well.



microman
Posts: 21
Member Since:
2008-02-26
Second bounty

I really like this script and the functions that's provided. But I think some of the key functionality is missing. I would like to suggest a second bounty to get it up to speed with the current release and some of the topics discussed in this tread.

What im missing:
- DND set when the presence is active so the phone doesn't ring (or option to set it)
- Expansionboard updates with status

If I could do it myself, it would be done in a blink, but my php knowledge is limited and time is not something I can store in a can.

Any other suggestions of improvement? Ethan, can you give a bounty price?



ethans
Posts: 519
Member Since:
2007-01-16
First of all, I've put a

First of all, I've put a significant amount of work to get the away statuses working on the latest 2.3.1 firmware with the newest XML scripts. This was a must before anything else was to be done to this application. As other people have noted above, this script no longer works in the latest XML packages from Aastra. For our environment I made everything work well (including device-user mode) because I do vendor drops into SVN and generate my own RPMS. Unfortunately, for other users, the latest XML scripts essentially need to be hacked up to make the statuses work. In order to automate the installation of these tasks, I would need to devote more time into the installer.

As far as getting DND in, this isn't a big deal, however as I stated above a lot of work needs to go into getting the base working in the latest version of the XML scripts. $500 should cover the DND and the underlying work that would need to be done to get the script working on the latest Aastra release.

Expansion board (console) updates are possible, though we are dealing with a very limited number of characters, so everyone would need to understand the limitations of the consoles before committing their resources into the project. $1,000 should cover this portion.

Due to a few bad apples out there not paying promised bounties, all would need to be collected and submitted before I begin work.



necits
Posts: 419
Member Since:
2008-02-23
I'm in for $100.00. I'm not

I'm in for $100.00. I'm not really interested in the expansion board feature but would like to get the script working on the latest Aastra release. Where shall I send it?

--

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



microman
Posts: 21
Member Since:
2008-02-26
Im in for a $100.00 as well,

Im in for a $100.00 as well, expansionboard would be nice but I don't think I can squeeze my boss for $500.



necits
Posts: 419
Member Since:
2008-02-23
Hi Ethan, I would really

Hi Ethan,

I would really like to get the notify portion of this script working before my next roll out. Can you PM me with the amount you would charge to get this working. I am using the latest aastra XML scripts and aastra-presence-1.01. Everything works fine except notify.

Thanks

--

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



ethans
Posts: 519
Member Since:
2007-01-16
Michael, I just accepted

Michael,

I just accepted $100 you paypal'd me. Was that in conjunction with the bounty to get this working on the latest aastra-xml-scripts release? I'm emailing you over code to get notifications working on the latest release. If that's what the $100 was for, you don't need to send anything else over. If it was for something else and you want to still contribute to DND and installer for the latest XML scripts, feel free to send that. Either way your support is greatly appreciated, so expect an email shortly.



ethans
Posts: 519
Member Since:
2007-01-16
Just a side note, there are

Just a side note, there are other rumblings about integration with iSymphony away statuses, and a bounty is shaping up to get that going. This may not end up being in the publicly released scripts, so if you are an iSymphony user and interested in this sort of integration, PM or email me.

What it means is users can set their away status in both iSymphony or the button and the two sync with each other. This would also bring notifications to iSymphony away statuses, though for the time being you would only be able to subscribe to notifications through the button. We would try to get i9 to add notification support in the iSymphony GUI in the future.



vtofa
Posts: 39
Member Since:
2008-10-27
iSymphony integration sounds good

Let me know when you know more about it. Does it work with the free version, too?
Tim



ethans
Posts: 519
Member Since:
2007-01-16
MAJOR UPDATE COMING: A major

MAJOR UPDATE COMING:

A major update will be coming Wednesday or Thursday next week. If you have committed a bounty to any of the following, please see the bottom of this message.

1.) Individual Preferences sub-menu for users on 55i and 57i phones. "When I'm away, do the following: 1.) Do nothing (default) 2.) Put me in DND 3.) Enable my follow-me"

2.) Updates to the script for 100% compatibility with aastra-xml-scripts-2.1.1. This includes a new installer that patches necessary files to enable LED support and support sip notify commands to automatically sync phones for device/user support. Notifications are working as well as recording temporary messages.

3.) iSymphony integration. Change your status in iSymphony, your phone and button automatically change. Change your away status on your button and iSymphony automatically changes. This also adds notification functionality to iSymphony. If a user becomes "Available" via iSymphony, users that subscribed to be notified of the users return via the away button will be automatically called regardless if that user went available via iSymphony or the away button. Also, a bug is sidetracked in iSymphony whereby restarting iSymphony would result in all availability statuses being cleared. A process will now push those statuses back to iSymphony if it detects that iSymphony has been restarted. We are told iSymphony will fix this in a future release, but in the meantime, this helps keep everything in sync.

Expansion board support is not done yet, but I will work on that in the future.

If you have committed bounties for either iSymphony integration or compatibility with the latest aastra-xml-scripts package, please send the bounty to ethan dot schroeder at gmail dotcom.



necits
Posts: 419
Member Since:
2008-02-23
This is one of the coolest XML Apps available

I just sent $100.00 toward this.

--

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



microman
Posts: 21
Member Since:
2008-02-26
Did you ever know that your

my hero, your everything i would like to be!!

Sorry.. I got the bad case of Bette Midler :)

Money is coming this week Ethan!



ethans
Posts: 519
Member Since:
2007-01-16
Lol, now I will have that

Lol, now I will have that stupid song in my head all day.

Anyway, I am done with the automatic DND/Follow-me per-user preferences. It's pretty cool when you go away on a 5i phone, the DND light automatically goes on (and so does my follow-me light, but I haven't released the follow-me toggle script yet). I even got preferences working on non-5i phones!

Also done is iSymphony support. The last thing I have to do is crank out a new installer and this thing should be gold.



ethans
Posts: 519
Member Since:
2007-01-16
vtofa, The free version of

vtofa,

The free version of iSymphony doesn't support statuses, so no, I specifically detect if it is a free version and disable iSymphony support so it doesn't inhibit the button from working properly.



ethans
Posts: 519
Member Since:
2007-01-16
As

As promised:

http://public.schmoozecom.com/aastra-presence-2.1.1.tar.gz

NOTES:
This will only work on aastra-xml-scripts-2.1.1. To see if you have it, run rpm -qa|grep aastra-xml-scripts. If you don't have it yum update aastra-xml-scripts before attempting to install this script. There were some pretty big changes in the aastra-xml-scripts in the last couple of versions, so if you don't know what you are doing and don't want to destroy your current setup, I would suggest backing up your /var/www/html/aastra directory before doing the yum update.

If you are an iSymphony user, the script will automatically detect if iSymphony is running. If you already have Away Statuses setup in iSymphony, the Away button will use them (as opposed to the default "Away", "At Lunch", "Out of Office" and "In Meeting". If you don't have Statuses setup in iSymphony yet, the button will automatically add them to iSymphony for you the first time the button is accessed, so save yourself some time and let it happen. The beauty of this is that with iSymphony, the Away button now supports dynamic status lists! The script will also automatically install the iSymphony API for you. This will happen upon the first button press, but your box needs Internet access or this won't happen. After the first button press, you should see a directory called /opt/isymphony/server/isymphony-php-library.

If you are using iSymphony, the button will automatically start up a process called isymphony-sync.php. This will run all the time in a loop and push changes from iSymphony to the button (which can take up to 30 seconds, so be patient, we don't want to kill the server). If iSymphony is restarted all of your statuses in iSymphony are lost. This is a bug and will be fixed in a later release of iSymphony. As long as the sync process is running, it will detect that iSymphony was just restarted and automatically push all the statuses to iSymphony! Setting the status via the button will instantaneously (as opposed to the 30 seconds the other way around) set the status in iSymphony .

This release has an added feature of user Preferences. If your aastra-xml-scripts are setup properly, you should be able to access the Prefs menu, choose DND or Follow-Me, and when you go away DND or Follow-Me will be automatically toggled in FreePBX _and_ on your phone. If you have a 55i or 57i, your DND light should go on and off automatically, as well.

This release was tested fully working on the latest Trixbox with aastra-xml-scripts 2.3.1 and aastra-ipphone firmware 2.3.1. You should match all of this.

Enjoy and please report any issues you have. I will be testing this on a 100 extension system in the coming days, so there may be more releases forthcoming. If you have committed a bounty for any of this work and have not submitted it yet, please submit it to ethan dot schroeder at gmail dt com.



ethans
Posts: 519
Member Since:
2007-01-16
Oh, and I have two custom

Oh, and I have two custom projects to do and then it's on to SLA ;)



Comment viewing options

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