01-12-2011 06:37 AM - edited 03-21-2019 03:31 AM
Our Cisco SPA phones are connected to Asterisk, and employees logon to the PBX by entering a pin to a IVR system. After authenticated the system remembers that user Bob is at phone 1 for example. If Bob receives a call the system routes this call to 'phone1'.
We would like to inform the user which user is currently logged on to any particilar phone. For example, we would like to be able to change the $USER variable, so we can change the text string next to the line button to the employee's name.
Is this possible using Asterisk's SIPAddHeader command? And if so, could anyone give me an example?
Solved! Go to Solution.
01-14-2011 09:53 PM
The first way that comes to mind is to modify the configuration page, then force a phone reboot:
1. Have the server download http://xx.xx.xx.xx/admin/spacfg.xml
2. Use regex to parse out the $USER variable and modify it for the actual user's name, then save it on the TFTP server.
3. Have the server navigate to http://xx.xx.xx.xx/admin/resync?tftp://yy.yy.yy.yy/spaMACADDRESS.xml
The phone should automatically reboot, using the new configuration, which includes the updated labels.
You could also have it store Bob's speeddials and other personal settings in a database, and update that information as well during step 2.
Hope this helps,
-Alex Hieronymi
01-14-2011 09:53 PM
The first way that comes to mind is to modify the configuration page, then force a phone reboot:
1. Have the server download http://xx.xx.xx.xx/admin/spacfg.xml
2. Use regex to parse out the $USER variable and modify it for the actual user's name, then save it on the TFTP server.
3. Have the server navigate to http://xx.xx.xx.xx/admin/resync?tftp://yy.yy.yy.yy/spaMACADDRESS.xml
The phone should automatically reboot, using the new configuration, which includes the updated labels.
You could also have it store Bob's speeddials and other personal settings in a database, and update that information as well during step 2.
Hope this helps,
-Alex Hieronymi
01-15-2011 03:16 PM
Thanks. Your solution is how I currently fixed it, but I was hoping for a less complex solution using extra SIP Headers, but I couldnt find anything usefull so I guess reconfiguring the phone using provisioning is the only way.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide