Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Modify phone variables using Asterisk?

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?

1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Re: Modify phone variables using Asterisk?

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

alex@ph3k.com

2 REPLIES
New Member

Re: Modify phone variables using Asterisk?

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

alex@ph3k.com

New Member

Re: Modify phone variables using Asterisk?

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.

506
Views
0
Helpful
2
Replies
CreatePlease to create content