New Aastra XML scripts 2.2.0 for PIAF

For Speedy2k

aastra1:

I would like to know if you can point me in the right direction to make your script use the <userid>-user.prf file instead of the demo-user.prf file, and if it is possible to create one <userid>-user.prf file if it not exist already based on the demo-user.prf file.

Again, you kind of defeat the purpose of defining a profile, but anyway if you insist...
in /var/www/html/asterisk/startup.php add the following line in line 534.

if(file_exists($extension.'-user.prf')) $AA_PROFILE=$extension;

Right before the call to create_mac, this will check if XXX-user.prf (XXX is the user extension) is available and will use it instead of the one configured in asterisk.conf. This works only in extensions mode.

And i have a little request for you just let me know if it is doable. Is it possible to create a little php script that will go into the system and create a local directories with the extension and name as it is in the system of all the extension on the system and put them into the top 6 buttons with the BLF light working for it so we can see if they are online or not ?? thanx a lot!

I am not sure I understand this request, do you have only 5 or 6 users on your platform? If you want to add BLF to your users just modify the generated MAC.cfg. Do you want the keys to be automatically populated when you login the phone? I need to understand better what you want to achieve to help you.

Regards

aastra1
 
Yes i would like the key to be auto-populated, and i have a last request for you, is it possible to change the voicemail pasword, and use the wwwadmin password instead? Because not every extension got a voicemail and i would like to be able to log in and log out phone only from administrator, so the same password as we use in the FreePBX web page would e just perfect as only admi of the system have it, thanx a lot!
 
Does changing the password needed for phone log-in is a doable thing? not use the voicemail password but the administrator password or even a custom password?
 
Hello Speedy2K

Yes i would like the key to be auto-populated, and i have a last request for you, is it possible to change the voicemail pasword, and use the wwwadmin password instead?

I am still not clear what you want to achieve there if you have only 5 or 6 users, you want to have the keys to be auto-populated and I guess without the user own extension right? This is a very specific implementation and I am not sure that you would need a php script for that. Now you can create the XXX-user.prf you just have to create the right one for everybody.

Because not every extension got a voicemail and i would like to be able to log in and log out phone only from administrator, so the same password as we use in the FreePBX web page would e just perfect as only admi of the system have it, thanx a lot!

That is doable but I would not pick the Webadmin password for 2 reasons:
  • the web admin password is alphanumerical so it might be difficult to enter from the phone.
  • only the MD5 signature of the web admin password is stored on the server so implementation is not that trivial
I would personnally go more with a custom password that you could configure in asterisk.conf. That would be an easy change.
We picked the VM password because it was just numeric and every user was supposed to know it so security is better than with a general password. Anyway you will have the choice.

Let me know if this is right for you and I will publish the changes.

Regards

aastra1
 
MY PROBLEM NOT RELATED....It had to do with a backup restore...Great work though on the scripts. Love them.
 
Yes it would be really nice if i can have a custom administrator password so user can not log on or out the phone by themself thanx!
 
Can I avoid entering PW for visual voicemail?

Hi Everybody,

I have two questions/issues with the visual voicemail...

  1. I'm trying to figure out if there's any way to have the phone automatically log into the voicemail system and not prompt for a password. I added the &pin=xxxx parameter to the key URL, but it doesn't do anything. Changing ext=$$SIPUSERNAME$$ to user=$$SIPUSERNAME$$ allows the automatic login, but then will not play any voicemails.
  2. When I play a voicemail through visual voicemail and hit DELETE while the voicemail is playing, it continues playing and then I get an error message. Is there a way to improve this functionality so that when I hit DELETE, the voicemail stops playing, deletes itself, and either the next voicemail begins to play or we are taken to the main voicemail screen?

Anyone have any suggestions?
 
Hello SShrivastava,

Here are some answers to your questions.
I'm trying to figure out if there's any way to have the phone automatically log into the voicemail system and not prompt for a password. I added the &pin=xxxx parameter to the key URL, but it doesn't do anything. Changing ext=$$SIPUSERNAME$$ to user=$$SIPUSERNAME$$ allows the automatic login, but then will not play any voicemails.
Some explanations about the variables used by the scripts
  • ext is the phone extension used to play the message
  • user is user voice mail username
  • pin is the user voice mail password
This was designed to allow access to your VM from any phone.
So you must add
?ext=$$SIPUSERNAME$$&user=$$SIPUSERNAME$$&pin=XXXX
in the profile file.
When I play a voicemail through visual voicemail and hit DELETE while the voicemail is playing, it continues playing and then I get an error message. Is there a way to improve this functionality so that when I hit DELETE, the voicemail stops playing, deletes itself, and either the next voicemail begins to play or we are taken to the main voicemail screen?
I suppose that the error message is displayed when you delete a long message while playing. I added this 'delete' key while playing because some users were asking for it...
Anyway there is a way to have delete stop the playback and delete the message, I will do it for the next version of the scripts but it will be available only on the phones running 2.x firmware (so not for 480i).

Hope this helps

Regards

aastra1
 
Small bug in the 2.2.0 scripts

Just upgraded to the new scripts per the instructions. Logged out the phone and logged back in. Phone status was 'Not Connected'. Turns out that the script did not parse the SIP password properly. I had a '.' in my SIP password, and the script put '\.' in the mac.cfg file for the phone. Removing the errant '\' did the trick.

Everything else looks great!
 
aastra1, can you let me know how-to set a custom password for phone log in please thanx a lot!
 
I would still like to be able to change the way the login and logout script handle th password, i want to set 1 password for all the phone. And i have another question, i was thinking then with the vmail.php script, we are able to record our greetings, name and everything that the voicemal option give us, so as i understand it now, the user still need to do the *97 and record there message there? or does my script is not good ?? Because when i enter the voicemail script from a phone witha voice setup, this is the only option i got:


- -
- -
-Chg Rep. Quit-
Not VM option or only management??
 
Logging off users

Hi all
Firstly Aastra many thanks for the scripts.

Am I right in thinking that the auto logout of users only works when the system is in extensions mode rather than deviceanduser?
If so could a similar process be used for deviceanduser mode where logged on users are recorded in a file and each time a user logs on it is checked; if already logged on then the existing users phone is sent a message to reboot after updating the existing users record?
I'd like users to only be logged onto one phone at a time.
I realise there may be issues with fixed users.
Is is possible to send a sip notify to run an xml script that just does a fast reboot?
Any thoughts / ideas greatfully received
Thanks
 
Voicemail Problem

Hello everyone. . .first post, so I hope this is in the right place.

I have recently setup a vanilla install of PIAF v1.4

After installing the aastra scripts, I take a freshly factory reset 480i ct and fire her up. She goes through the automatic boot process, finds the firmware, reboots, and eventually lands at the screen with the 'startup' option. I'm able to login, it gets the configs, and restarts. When it restarts I can see my home screen for a brief moment and then a Page Load Error with "Done" being the softkey in the lower right for approximately 30-60 seconds. Pressing "Done" has no effect. The error screen then goes away and my home screen shows up perfectly normal. If I restart the phone, I no longer see that Page Load Error and it boots promptly to my home screen.

I'm able to make calls and navigate through the xml apps with ease. However, when it comes to playing a voicemail from the visual voicemail app, I instead get a "Loading Page..." message for about 30 seconds, followed by two beeps and then kicks me back to the voicemail info without ever playing it.

My skills in this arena are that of a novice at best. What additional information can I provide or troubleshooting steps can i follow to try and get to the bottom of this problem?

A few tidbits that may or may not be helpful:

- When I Logout, the MAC.cfg is not deleted from /tftpboot
- Using VMWare and setting multiple snapshots to make troubleshooting as painless as possible
- the 480i ct that I'm testing with I bring back and forth between this PIAF test lab and a production Trix environment that has a much older set of these Aastra scripts, but the voicemail app works as expected. I factory reset the phone each time I switch from production to the lab.
- The ONLY thing I have done after installing PIAF (and before installing the Aastra scripts) is to update/install all modules in FreePBX and setup a SIP single extension.
 
Just upgraded to the new scripts per the instructions. Logged out the phone and logged back in. Phone status was 'Not Connected'. Turns out that the script did not parse the SIP password properly. I had a '.' in my SIP password, and the script put '\.' in the mac.cfg file for the phone. Removing the errant '\' did the trick.

Everything else looks great!

Just wanted to say that when I originally posted this issue, it was under the 2.2.0 version of the XML scripts. I installed the patch1 update and still have the same issue.
 
Hi everyone, need some help, i'm unable to run setup-aastra-xml, after following all the sequence, it says: "bash: setup-aastra-xml: command not found".
Thank you in advance !!!
 
Not sure why, but I have found that you have to run the
Code:
[FONT=Courier New]./install-aastra-xml.x[/FONT]
twice. in order for the install to work correctly. The second time the "setup-aastra-xml" is there and works...
 
DAy/Noght Script support for 10 iDs

I´ve read hat the 2.2 scripts doesnt anymore support more than one Day/Night index and an future version shoul support more than one again. May you could say when this relase will be published? My company needs this feature badly.

Greetings Mysterious
 
Hi

There are 10 day night controls available *280 to *289

Joe
 
Thats right, but the daynight script in its new version can only control one of this ten daynight funktions.
 
Hi aastra1,

Do these scripts support the new 9751i and 9753i phones?

Thanks
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top