01-02-2014 03:59 PM - edited 03-21-2019 07:59 AM
I'm having trouble getting my phone to automatically add a default area code when programmed via the .xml file.
I'm using a Cisco SPA504G running firmware version 7.5.4
Provisioning is done using tftp.
I'm attempting to have the phone add "1805" when 7 digits are dialed.
Ex. Dial 555-1212 have phone send call to 1-805-555-1212
Through the web interface, I can add that in and it works perfectly, see below:
(*xx.|**xx.|[3469]11|0|00|<:1805>xxxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)
however adding the same <:1805> in the xml file doesn't work. The phone won't download the xml file. I'm guessing the "<" and ">" are breaking it somehow however I'm tried multiple different configurations oh spaces with no luck. I confirmed that my config file will load correctly so the only line I change is specifying dial plan and after changing that single line, the file won't load. Below are the list of lines that I've tried.
<Dial_Plan_1_ group="Ext_1/Dial_Plan">(*xx.|**xx.|[3469]11|0|00|<:1805>xxxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)</Dial_Plan_1_>
<Dial_Plan_1_ group="Ext_1/Dial_Plan">(*xx.|**xx.|[3469]11|0|00|<:1805> xxxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)</Dial_Plan_1_>
<Dial_Plan_1_ group="Ext_1/Dial_Plan">(*xx.|**xx.|[3469]11|0|00| <:1805>xxxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)</Dial_Plan_1_>
<Dial_Plan_1_ group="Ext_1/Dial_Plan">(*xx.|**xx.|[3469]11|0|00| <:1805> xxxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)</Dial_Plan_1_>
<Dial_Plan_1_ group="Ext_1/Dial_Plan">(*xx.|**xx.|[3469]11|0|00|<: 1805>xxxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)</Dial_Plan_1_>
<Dial_Plan_1_ group="Ext_1/Dial_Plan">(*xx.|**xx.|[3469]11|0|00|< :1805> xxxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)</Dial_Plan_1_>
<Dial_Plan_1_ group="Ext_1/Dial_Plan">(*xx.|**xx.|[3469]11|0|00| < :1805>xxxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)</Dial_Plan_1_>
<Dial_Plan_1_ group="Ext_1/Dial_Plan">(*xx.|**xx.|[3469]11|0|00| < :1805> xxxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)</Dial_Plan_1_>
I know I'm just playing with spaces but I'm not having any luck. I also did try these same variations with replacing the first x after the area code with [2-9] with no luck
Help?
Solved! Go to Solution.
01-03-2014 09:31 AM
It is standart XML quoting:
< - <
> - >
So something like:
01-03-2014 02:53 AM
You need to properly quoted special chars in XML document, as requested by documentation.
If you dislike to read the documentation, just change the configuration via WWW, fetch the phone's XML configuration then look how it is encoded.
01-03-2014 08:42 AM
What is format for quoting special character? I checked the /spacfg.xml file and even copied and pasted that in and it still didn't work. Can you possible send me an example of this?
01-03-2014 09:31 AM
It is standart XML quoting:
< - <
> - >
So something like:
01-03-2014 11:34 AM
Perfect that works. Thank you :-) I really appreciate it.
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