Modify Services Key

robeerski
Posts: 70
Member Since:
2008-01-30

I have installed and love the new XML scripts on 6757i phones with firmware ver 2.6.0.1007. I have a question about how to modify the services key and the options key.

It looks like the XML scripts already modify these keys. Here is what I see after I set the phone back to factory defaults and booting up the phone with the network cable unplugged:
The services key has 3 options, 1-Directory, 2-Callers List and 3-Voicemail.
The options key has 7 options, 1-Call Forward, 2-Preferences, 3-Phone Status, 4-User Password, 5-Administrator Menu, 6-Restart Phone, and 7-Phone Lock

After allowing the phone to see the configuration server one time then rebooting the phone again with the network cable disconnected I see the following:
The options key looses one option, 1-Call Forward, and now only has 6 choices instead of 7.
The services key now only shows option 2 and 3.

After logging a user into the phone the services key gains a 4th option, 4-Applications.

I am wondering where in the XML scripts these keys are modified as I can't see anything in the CFG files that appear to change these keys?

My goal in all of this is to put the logout and the keys applications either directly under the Services key or in the Options menu. I have already figured out how to put these applications in the applications section under services but the applications here can also be deleted so I am looking for a way to put these under services or options such that the logout and keys functionality cannot be turned off by a user and also not use up extra soft keys for applications that may not get used all that often.



aastra1
Posts: 287
Member Since:
2006-11-06
Re: Modify Services keys

Hello robeerski,

No magic there everything is configured in the .prf template... Aastra phones allow a ton of customizations all described in the administration guide.

Quote:
It looks like the XML scripts already modify these keys. Here is what I see after I set the phone back to factory defaults and booting up the phone with the network cable unplugged:
The services key has 3 options, 1-Directory, 2-Callers List and 3-Voicemail.
The options key has 7 options, 1-Call Forward, 2-Preferences, 3-Phone Status, 4-User Password, 5-Administrator Menu, 6-Restart Phone, and 7-Phone Lock

After allowing the phone to see the configuration server one time then rebooting the phone again with the network cable disconnected I see the following:
The options key looses one option, 1-Call Forward, and now only has 6 choices instead of 7.

The phone side call forward is disabled as the scripts properly implement the server side. This is done with the following configuration in aastra.cfg (generated by setup-aastra-xml)

# Call forward disabled
call forward disabled:1
Quote:
After logging a user into the phone the services key gains a 4th option, 4-Applications.

Yes that is done in demo-user.prf with the following parameters

# XML applications
xml application URI: http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/menu/mymenu.php?menu_source=menu1&menu_user=$$AA_SIPUSERNAME_AA$$&user=$$AA_SIPUSERNAME_AA$$
xml application title: Applications
Quote:
My goal in all of this is to put the logout and the keys applications either directly under the Services key or in the Options menu. I have already figured out how to put these applications in the applications section under services but the applications here can also be deleted so I am looking for a way to put these under services or options such that the logout and keys functionality cannot be turned off by a user and also not use up extra soft keys for applications that may not get used all that often.

Actually the mymenu.php script has an extra parameter "menu_mode" which does not allow the user to customize his menu, just add "&menu_mode=static" in demo-user.prf (or in each MAC.cfg if you don't want to reapply the profiles). If you want to override the service key, it is possible to replace it as a whole using the "services scripts" configuration parameter (have a look at the 6739i profile) and then point to a custom menu that you can create using mymenu.php to propose "XML Applications" , "Directory" and "Logout". I believe that would be the best way for you to achieve what you want to do. Create a xxx.menu with the 3 apps and add the services scripts configuration to point to it, just make sure that you pass the "user" parameter to the called scripts.

As it is a pretty good idea, we will add it in the next version of the scripts for the 6755i, 6757i and 6739i but some people might be confused losing the "logout" key, anyway demo-user.prf is just a template that has been designed to be customized to fit your needs.

Hope this helps.

Regards

--

---
aastra1
Aastra XML scripts 2.3.0 now available



robeerski
Posts: 70
Member Since:
2008-01-30
Thank you very much for this information :)

I have read the aastra admin guide many times and there are so many different options that it is easy to overlook one. I was looking for something to modify the options key and did not think to look for something to modify call forwarding like:

call forward disabled:1

Once you explained that I felt kind of stupid to have missed this.

I did not know that the applications could be forced to static and that will certainly solve my problem easily.
I have seen that I can setup my own services key using XML and I was a little uncertain on how to do it correctly. Having an example in the 6739i should really help me. Since I have not done much with a 6739 I did not read that portion of the demo profile. I also think a modified services key will be my most eligent option and I will see if I can make this work.



robeerski
Posts: 70
Member Since:
2008-01-30
I found something you might be interested in

Your suggestion about making a custon XML Services key using a static menu worked great.

I still like having the Applications sub menu under the Services key. to accomplish this I used the following code within the Services menu setup:

[Applications]
title=Applications
info=Phone applications
uri=http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/menu/mymenu.php?menu_source=applicationsmenu&menu_user=$$SIPUSERNAME$$&user=$$SIPUSERNAME$$
param=user

Initially I had used the c variable instead of the $$SIPUSERNAME$$ variable and got unusual results
In var/cache/aastra I was getting files named
AA_SIPUSERNAME_AA.context
instead of files named EXTN.context
after figuring this out I changed the variable to $$SIPUSERNAME$$ as shown above and it is working great now.

I thought you might want to know that the variable $$AA_SIPUSERNAME_AA$$ does not work in this configuration.



grantk
Posts: 29
Member Since:
2010-07-23
robeerski I was actually

robeerski

I was actually just looking to do the exact same thing. Where exactly where you making that sub menu?



robeerski
Posts: 70
Member Since:
2008-01-30
Here is how I accomplished this

This line goes in your phone template or MAC config file

services script: http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/menu/mymenu.php?menu_source=services&menu_user=$$SIPUSERNAME$$&user=$$AA_SIPUSERNAME_AA$$&menu_mode=static

I included menu_mode=static in the above line to make this menu non editable. You also have to make a default menu_source fole under /var/www/html/aastra/menu I called mine services.menu. My services key has three choices, Logout From Phone, Customize Buttons, & Applications.

To accomplish this I put the following in my services.menu file

[RESERVED]
title=XML applications
title-fr=Applications XML

[LOGOUT]
title=Logout From Phone
info=Log current user out of phone
uri=http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/asterisk/logout.php?user=$$SIPUSERNAME$$
param=user
[BUTTONS]
title=Customize Buttons
info=Modify the current buttons setup on the phone
uri=http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/asterisk/key.php?user=$$SIPUSERNAME$$
param=user
[Applications]
title=Applications
info=Phone applications
uri=http://$$AA_XML_SERVER_AA$$/$$AA_XMLDIRECTORY_AA$$/menu/mymenu.php?menu_source=applications&menu_user=$$SIPUSERNAME$$&user=$$SIPUSERNAME$$
param=user

The last option, Applications, points to a different menu in /var/www/html/aastra/menu I called applications.menu which has a similar format as services.menu but instead of logout etc I have uri's within it pointing to other applications such as the area and world clock applications.



Comment viewing options

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