custom spa504g template

Status
Not open for further replies.

ZenMasta

Customer
Joined
Mar 10, 2010
Messages
254
Reaction score
10
Anyone know the xml required to add these parameters to my provisioning template?

System tab>Optional Network Configuration section: syslog server - myip
Sip tab> NAT Support Parameters: Handle VIA rport - Yes
Sip tab> NAT Support Parameters: Insert VIA rport - Yes
Sip tab> NAT Support Parameters: STUN Enable - Yes
Sip tab> NAT Support Parameters: STUN Serer: stun.3cx.com
 
A generic method to discover the required tags is to first set the settings to something searchable.. effectively "placeholder" values or the real ones as you see fit.. then telling the SPA to dump all tag/value pairs using /admin/spacfg.xml against the name/address of the handset.

Example: My SPA504g is at 10.100.1.150 as per the CurrentIP value under Network (option 9 on the handset).
If I put in http://10.100.1.150/admin/spacfg.xml to Chrome, I get the dump of all the settings/info Cisco avails for my firmware/hardware.

From that, I can search for and extract tags and values like these:
Code:
<STUN_Enable group="SIP/NAT_Support_Parameters">Yes</STUN_Enable>
<STUN_Test_Enable group="SIP/NAT_Support_Parameters">No</STUN_Test_Enable>
<STUN_Server group="SIP/NAT_Support_Parameters">stun.3cx.com</STUN_Server>

<Syslog_Server group="System/Optional_Network_Configuration"/>

If I search right.. I can get the results I want based on feature tag or whatever value I filled in and applied. That's how I had to rework my custom templates when jumping from 9 to 11.. as apparently 3CX thought it cute to assign an annoying ringtone to these models on the v11 template.. which my client vehemently hated on..
 
Thanks, thats perfect! I didn't know you could dump the xml, I wish I knew this a long time ago!

PS, love you long time ;)
 
Status
Not open for further replies.