Voxalot / SIP Broker Support Forums

Voxalot / SIP Broker Support Forums (https://forum.sipbroker.com/index.php)
-   SIP Broker Support (https://forum.sipbroker.com/forumdisplay.php?f=9)
-   -   dial plan in xml file (https://forum.sipbroker.com/showthread.php?t=1825)

voip2007 07-11-2007 10:27 PM

dial plan in xml file
 
I am trying to write the dial plan as below in the xml file.
L:20,S:7,( x | *xx | 911S0 | 1[2-9]xx[2-9]xxxxxxS0 <:@sipbroker.com> | [x*][x*]. <:@sipbroker.com> | <#:>[x*][x*]. )

But it doesn't work because the dial plan has error. How do I adjust this dial plan in the xml file.

DracoFelis 07-12-2007 01:04 AM

I've no personal experience with using XML with the adapters, but I do know that to XML the "<" and ">" characters have special meanings related to XML tags. Since the SIP Broker dial plan also uses those characters as part of the dial plan itself, I would assume you would need to "escape" those characters (in the dial plan) somehow, in order for them to work as part of an XML "provisioning" document.

However, since I've never used XML documents/provisioning with my adapters (I have used XML in other uses, but never in connection with my adapter), I'm not sure what sort of "escaping" is needed/appropriate in this case (only that it's likely that some is needed, because of the special meaning of < and > in XML files)...

voip2007 07-12-2007 03:38 AM

Quote:

Originally Posted by DracoFelis (Post 10227)
I've no personal experience with using XML with the adapters, but I do know that to XML the "<" and ">" characters have special meanings related to XML tags. Since the SIP Broker dial plan also uses those characters as part of the dial plan itself, I would assume you would need to "escape" those characters (in the dial plan) somehow, in order for them to work as part of an XML "provisioning" document.

However, since I've never used XML documents/provisioning with my adapters (I have used XML in other uses, but never in connection with my adapter), I'm not sure what sort of "escaping" is needed/appropriate in this case (only that it's likely that some is needed, because of the special meaning of < and > in XML files)...

Thanks DracoFelis! you gave me big hint.


All times are GMT. The time now is 12:27 AM.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.