cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

Get the latest Cisco news in this February issue of the Cisco Small Business Monthly Newsletter

795
Views
0
Helpful
4
Replies
Beginner

Area Code in Dial Plan via xml file 504G 7.5.4

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Advocate

Re: Area Code in Dial Plan via xml file 504G 7.5.4

It is standart XML quoting:

<   -   <

>   -   >

So something like:

(*xx.|**xx.|[3469]11|0|00|<:1805>xxxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)

View solution in original post

4 REPLIES 4
Highlighted
Advocate

Area Code in Dial Plan via xml file 504G 7.5.4

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.

Highlighted
Beginner

Area Code in Dial Plan via xml file 504G 7.5.4

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?

Highlighted
Advocate

Re: Area Code in Dial Plan via xml file 504G 7.5.4

It is standart XML quoting:

<   -   <

>   -   >

So something like:

(*xx.|**xx.|[3469]11|0|00|<:1805>xxxxxxx|1xxx[2-9]xxxxxxS0|xxxxxxxxxxxx.)

View solution in original post

Highlighted
Beginner

Area Code in Dial Plan via xml file 504G 7.5.4

Perfect that works. Thank you :-)  I really appreciate it.