Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
4/8/2010

The following provisioning XML example illustrates how to configure all of the VoIP settings. It includes a complete Dial Plan.

Note:
The values of the SIPsettings, VoicemailSettings, BackupSIPsettingsand DialPlanparms are strings containing the specified server information in XML format. You must replace all starting ("<") and terminating (">") brackets within the XML string with "&lt" and "&gt" respectively.

Code Example

Copy Code
<characteristic type="VoIP">
  <parm name="SIPsettings" value="&ltprovision
key='1232ab03' name='VoIPPhoneCanvas'&gt &ltuser
account='cetvoip\medtest08' password='test' uri='5555550100'
allowedauth='digest'/&gt &ltsipsrv addr='1.0.0.1'
protocol='UDP' role='proxy'&gt &ltsession party='First'
type='pc2pc' /&gt &ltsession party='First' type='pc2ph'
/&gt &lt/sipsrv&gt &ltsipsrv addr='1.0.0.1'
protocol='UDP' role='registrar'/&gt &lt/provision&gt"
/> 
  <parm name="VoicemailSettings" value="&ltprovision
key='1232ab03' name='VoIPPhoneCanvas'&gt &ltuser
account='cetvoip\medtest08' password='test' uri='5555550100'
allowedauth='digest'/&gt &ltsipsrv addr='1.0.0.1'
protocol='UDP' role='proxy'&gt &ltsession party='First'
type='pc2pc' /&gt &ltsession party='First' type='pc2ph'
/&gt &lt/sipsrv&gt &ltsipsrv addr='1.0.0.1'
protocol='UDP' role='registrar'/&gt &lt/provision&gt"
/> 
  <parm name="VoicemailNumber" value="5555550100" /> 
  <parm name="BackupSIPsettings" value="&ltprovision
key='1232ab03' name='VoIPPhoneCanvas' &gt &ltuser
account='cetvoip\sptest5' password='test'
uri='sip:71110@redmond.corp.microsoft.com' allowedauth='digest'
/&gt &ltprovider name='Test IP' /&gt &ltsipsrv
addr='1.0.0.1' protocol='TCP' role='proxy' &gt &ltsession
party='First' type='pc2pc' /&gt &ltsession party='First'
type='pc2ph' /&gt &lt/sipsrv&gt &ltsipsrv
addr='1.0.0.1' protocol='TCP' role='registrar' /&gt
&lt/provision&gt" /> 
  <parm name="DialPlan" value="&ltdialplan
xmlns='http://schemas.microsoft.com/embedded/VoIP'&gt 
								&ltdialplan-header&gt
&lthost&gt#use_sipsrv_host_name#&lt/host&gt
&lt/dialplan-header&gt 
								 &lt!-- Dial Plan rules
--&gt &lt!-- IP address rules --&gt &lt!--
EQUIVALENT OF '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}' --&gt 
									&ltrule
pattern='(\d|\d\d|\d\d\d)\.(\d|\d\d|\d\d\d)\.(\d|\d\d|\d\d\d)\.(\d|\d\d|\d\d\d)'
restrict='Cell,SMS' /&gt 
									 &lt!-- EQUIVALENT OF
'(\d{1,3})\*(\d{1,3})\*(\d{1,3})\*(\d{1,3})' --&gt 
									&ltrule
pattern='(\d|\d\d|\d\d\d)\*(\d|\d\d|\d\d\d)\*(\d|\d\d|\d\d\d)\*(\d|\d\d|\d\d\d)'
dial='\1.\2.\3.\4' display='\1.\2.\3.\4' restrict='Cell,SMS'
/&gt 
									&lt!-- 11-digits rules
--&gt &lt!-- EQUIVALENT OF
'\+?\w*1\w*-?\w*(\d{3})\w*(\d{3})\w*-?\w*(\d{4})' --&gt 
									&ltrule
pattern='\+?\w*1\w*-?\w*(\d\d\d)\w*(\d\d\d)\w*-?\w*(\d\d\d\d)'
dial='sip:91\1\2\3@$host$' display='1 (\1) \2-\3' /&gt
									&lt!-- EQUIVALENT OF
'\+?\w*1\w*-?\w*\((\d{3})\)\w*(\d{3})\w*-?\w*(\d{4})' --&gt 
									 &ltrule
pattern='\+?\w*1\w*-?\w*\((\d\d\d)\)\w*(\d\d\d)\w*-?\w*(\d\d\d\d)'
dial='sip:91\1\2\3@$host$' /&gt 
									 &lt!-- 10-digits rules
--&gt &lt!-- EQUIVALENT OF
'(\d{3})\w*(\d{3})\w*-?\w*(\d{4})' --&gt 
									 &ltrule
pattern='(\d\d\d)\w*(\d\d\d)\w*-?\w*(\d\d\d\d)'
dial='sip:9\1\2\3@$host$' display='(\1) \2-\3' /&gt 
									 &lt!-- EQUIVALENT OF
'\((\d{3})\)\w*(\d{3})\w*-?\w*(\d{4})' --&gt 
									 &ltrule
pattern='\((\d\d\d)\)\w*(\d\d\d)\w*-?\w*(\d\d\d\d)'
dial='sip:9\1\2\3@$host$' /&gt 
									&lt!-- 7-digits rules
--&gt &lt!-- EQUIVALENT OF '(\d{3})\w*-?\w*(\d{4})'
--&gt 
									&ltrule
pattern='(\d\d\d)\w*-?\w*(\d\d\d\d)' dial='sip:9425\1\2@$host$'
display='\1-\2' /&gt 
									&lt!-- SIP URI rules
--&gt &lt!-- EQUIVALENT OF
'[Ss][Ii][Pp][Ss]?:\w*(\d{3})(\d{3})(\d{4})@(.+)' --&gt
									&ltrule
pattern='[Ss][Ii][Pp][Ss]?:\w*(\d\d\d)(\d\d\d)(\d\d\d\d)@(.+)'
display='(\1) \2-\3' restrict='Cell,SMS' /&gt 
									&ltrule
pattern='([Ss][Ii][Pp][Ss]?:)?\w*([a-zA-Z0-9_-]+)@(.+)'
display='\2' restrict='Cell,SMS' /&gt &ltrule
pattern='[Ss][Ii][Pp][Ss]?:\w*([^@]+)' display='\1'
restrict='Cell,SMS' /&gt 
									&lt!-- 5-digits rules
--&gt &lt!-- EQUIVALENT OF '(\d{3})-?(\d{2})' --&gt 
									 &ltrule
pattern='(\d\d\d)-?(\d\d)' dial='sip:\1\2@$host$' display='\1\2'
/&gt 
									 &lt!-- EQUIVALENT OF
'1\w*\((\d{3})\)\w*(\d)' --&gt 
									 &ltrule
pattern='1\w*\((\d\d\d)\)\w*(\d)' dial='sip:1\1\2@$host$'
display='1\1\2' /&gt 
									 &lt!-- Block
international calls --&gt 
									 &ltrule
pattern='011(\d+)' restrict='All' /&gt 
									 &lt!-- Only digits
--&gt
									 &ltrule pattern='(\d+)'
dial='sip:\1@$host$' display='\1' /&gt &lt/dialplan&gt"
/> 
</characteristic>

Remarks

One provisioning XML file typically contains configuration information for multiple Configuration Service Providers. To use this example, you must replace the values as appropriate, and add the node as a child of the OMA Client Provisioning file. For information about the syntax of this file, see OMA Client Provisioning Files. For examples, see OMA Client Provisioning XML File Examples.

See Also