Jump to content

CreateExtension


kamran butt

Recommended Posts

Hi

 

I am created the xml object but i am unable to find a way how to send the xml object on which URL, i am using PHP language if some one did please give me example.

 

Thanks

 

$req = 
'
<?xml version="1.0" standalone="yes"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sns="http://www.pbxnsip.com/soap/pbx">
<sns:CreateExtension>
		<Domain>subdomain.mydomain.com</Domain>
		<Extension>262</Extension>
		<first_name>ABC</first_name>
		<display_name>XYZ</display_name>
		<web_pass>0909</web_pass>
		<mb_pin>1234</mb_pin>
		<email_address>kamibutt@gmail.com</email_address>
	</sns:CreateExtension>
</env:Body>
</env:Envelope>
';

Link to comment
Share on other sites

You can always use the telnet session (port 80) to send the commands to PBX. If you using program, you can connect to the HTTP port and send these commands

 

Hi

 

I am created the xml object but i am unable to find a way how to send the xml object on which URL, i am using PHP language if some one did please give me example.

 

Thanks

 

$req = 
'
<?xml version="1.0" standalone="yes"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sns="http://www.pbxnsip.com/soap/pbx">
<sns:CreateExtension>
		<Domain>subdomain.mydomain.com</Domain>
		<Extension>262</Extension>
		<first_name>ABC</first_name>
		<display_name>XYZ</display_name>
		<web_pass>0909</web_pass>
		<mb_pin>1234</mb_pin>
		<email_address>kamibutt@gmail.com</email_address>
	</sns:CreateExtension>
</env:Body>
</env:Envelope>
';

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...