[Spce-user] New VoIP account provisioning

andreas tseiko a.tseiko at hotmail.com
Thu Aug 29 10:23:28 EDT 2013


Dear Nigel, If we can not do it via soap is there another way to do it?
Best regards.

From: a.tseiko at hotmail.com
To: spce-user at lists.sipwise.com
Date: Thu, 29 Aug 2013 17:16:15 +0300
Subject: Re: [Spce-user] New VoIP account provisioning




Dear Nigel,
This how we do it too.My question was that we want SIP URI to be "+302101234567" and not 302101234567.Is it possible to do that via soap?We want to have "+" infront of the number.
Best regards.

From: nigel at simplephoneco.com
Subject: Re: [Spce-user] New VoIP account provisioning
Date: Thu, 29 Aug 2013 06:23:40 -0700
To: a.tseiko at hotmail.com

Hey,
Here is the php function I'm using for adding subscribers: If I'm reading your question correct it should do exactly what your looking for.
function add_voip_account_subscriber(){
require_once('nusoap-0.9.5/lib/nusoap.php');// startgloabal variables$auth3 = array(                'type' => 'admin',                'username' => 'yourusername',                'password' => 'yourpassword'        );
$accountid = $_POST["accountidny"];$domain = $_POST["domainny"];$username = $_POST["sipusername"];$password = $_POST["password"];$cc = $_POST["cc"];$ac = $_POST["ac"];$sn = $_POST["sn"];$webusername = $_POST["webusername"];$webpassword = $_POST["webpassword"];$external_id = $_POST["external_id"];

$client = new nusoap_client("https://yourserver:2443/SOAP/Provisioning.wsdl", true);$client->setCredentials("username","password","basic");
if (!empty($_POST["cc"])) {
$parameters = array('id' => $accountid, 'subscriber' => array(																'username' => $username,																'domain' => $domain,																'password' => $password,																'cc' => $cc,																'ac' => $ac,																'sn' => $sn,																'webusername' => $webusername,																'webpassword' => $webpassword,																'external_id' => $external_id));}else {$parameters = array('id' => $accountid, 'subscriber' => array(																'username' => $username,																'domain' => $domain,																'password' => $password,																'webusername' => $webusername,																'webpassword' => $webpassword,																'external_id' => $external_id));}


$job = array('authentication' => $auth3, 'parameters' => $parameters); $results = $client->call('add_voip_account_subscriber',$job);
return $results;}
On Aug 29, 2013, at 1:42 AM, andreas tseiko <a.tseiko at hotmail.com> wrote:Dear All,
We would like to provision new accounts to CE via soap interface.For this action we use interface function "create_voip_account".Into this function there is parameter "subscribers" in which we should fill in cc-ac-sn.CC-AC-SN will provide the E164 and SIP URI of this new account.According to the above if we use CC=30, AC=210, SN=1234567 we will have the following:E164     : +30 210 1234567SIP URI :   302101234567 at sip.example.comIs it possible SIP URI to be as E164 meaning +302101234567 ?We managed to do that manually only by adding new subscriber via Administrative Web Panel(port 1443).
Best regards.
_______________________________________________
Spce-user mailing list
Spce-user at lists.sipwise.com
http://lists.sipwise.com/listinfo/spce-user

 		 	   		  

_______________________________________________
Spce-user mailing list
Spce-user at lists.sipwise.com
http://lists.sipwise.com/listinfo/spce-user 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20130829/72204e42/attachment-0001.html>


More information about the Spce-user mailing list