For Speedy2k
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.
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
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