cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
603
Views
5
Helpful
3
Replies

Escaping XML in provisioning config file

brantwinter2004
Level 1
Level 1

Hi - I am trying to confgure a network of phones and in the $MA.xml config file I have the following in the dial plan field:

<Dial_Plan_1_ group="Ext_1/Dial_Plan">
(<9:10289>xxS0|10[0-9]xxxxS0|0[23478]xxxxxxxxS0|[3-9]xxxxxxxS0|18310[23478]xxxxxxxxS0|1831[3-9]xxxxxxxS0|1800xxxxxxS0|1300xxxxxxS0|13[1-9]xxxS0|0198xxxxxxS0|0011xx.|12x!|19xx!|xx.)
</Dial_Plan_1_>

The < and > are causing the provisioning to fail. When I try and use \< or \> it makes no difference neither does &lt; or &gt; 

The dial plan does not work.

How do I escape these characters in the config file to have the dial plans work ? Cheers.

1 Accepted Solution

Accepted Solutions

Yes, the terminating character is not optional.

Unfortunately, despite you solved the issue by self, the CSC system doesn't allow to self-claim correct answer nor it allow others to claim your's answer to be correct.

I can just rate your comments, but the thread will remain open.

View solution in original post

3 Replies 3

brantwinter2004
Level 1
Level 1

Page 23 of this document states I can use basic XML character escapes:

http://www.cisco.com/c/dam/en/us/td/docs/voice_ip_comm/csbpvga/ata/provisioning/guide/Provisioning.pdf

ie. (&lt;9:10289&gt;xxS0

But when I do this I don't see the < and > in the UI, I see the &lt; and &gt;

I re-did the config line and it works now. I don't think I had the ; after the escape sequence.

 

<Dial_Plan_1_ group="Ext_1/Dial_Plan">(&lt;9:10289&gt;xxS0|10[0-9]xxxxS0|0[23478]xxxxxxxxS0|[3-9]xxxxxxxS0|18310[23478]xxxxxxxxS0|1831[3-9]xxxxxxxS0|1800xxxxxxS0|1300xxxxxxS0|13[1-9]xxxS0|0198xxxxxxS0|0011xx.|12x!|19xx!|xx.)</Dial_Plan_1_>

Yes, the terminating character is not optional.

Unfortunately, despite you solved the issue by self, the CSC system doesn't allow to self-claim correct answer nor it allow others to claim your's answer to be correct.

I can just rate your comments, but the thread will remain open.