<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Dear Nigel,<div> </div><div>If we can not do it via soap is there another way to do it?</div><div><br></div><div>Best regards.<br><br><div><hr id="stopSpelling">From: a.tseiko@hotmail.com<br>To: spce-user@lists.sipwise.com<br>Date: Thu, 29 Aug 2013 17:16:15 +0300<br>Subject: Re: [Spce-user] New VoIP account provisioning<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">Dear Nigel,<div><br></div><div>This how we do it too.</div><div>My question was that we want SIP URI to be<span style="background-color:rgb(255, 255, 255);"><font color="#ac193d"> "<b>+</b></font></span>302101234567" and not 302101234567.</div><div>Is it possible to do that via soap?</div><div>We want to have "+" infront of the number.</div><div><br></div><div>Best regards.<br><br><div><hr id="ecxstopSpelling">From: nigel@simplephoneco.com<br>Subject: Re: [Spce-user] New VoIP account provisioning<br>Date: Thu, 29 Aug 2013 06:23:40 -0700<br>To: a.tseiko@hotmail.com<br><br>Hey,<div><br></div><div>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.</div><div><br></div><div><div>function add_voip_account_subscriber(){</div><div><br></div><div><div>require_once('nusoap-0.9.5/lib/nusoap.php');</div><div>// startgloabal variables</div><div>$auth3 = array(</div><div>                'type' => 'admin',</div><div>                'username' => 'yourusername',</div><div>                'password' => 'yourpassword'</div><div>        );</div></div><div><br></div><div>$accountid = $_POST["accountidny"];</div><div>$domain = $_POST["domainny"];</div><div>$username = $_POST["sipusername"];</div><div>$password = $_POST["password"];</div><div>$cc = $_POST["cc"];</div><div>$ac = $_POST["ac"];</div><div>$sn = $_POST["sn"];</div><div>$webusername = $_POST["webusername"];</div><div>$webpassword = $_POST["webpassword"];</div><div>$external_id = $_POST["external_id"];</div><div><br></div><div><br></div><div>$client = new nusoap_client("<a href="https://yourserver:2443/SOAP/Provisioning.wsdl" target="_blank">https://yourserver:2443/SOAP/Provisioning.wsdl</a>", true);</div><div>$client->setCredentials("username","password","basic");</div><div><br></div><div>if (!empty($_POST["cc"])) {</div><div><br></div><div>$parameters = array('id' => $accountid, 'subscriber' => array(</div><div><span class="ecxApple-tab-span" style="white-space:pre;">                                                                                                                              </span>'username' => $username,</div><div><span class="ecxApple-tab-span" style="white-space:pre;">                                                                                                                              </span>'domain' => $domain,</div><div><span class="ecxApple-tab-span" style="white-space:pre;">                                                                                                                          </span>'password' => $password,</div><div><span class="ecxApple-tab-span" style="white-space:pre;">                                                                                                                              </span>'cc' => $cc,</div><div><span class="ecxApple-tab-span" style="white-space:pre;">                                                                                                                          </span>'ac' => $ac,</div><div><span class="ecxApple-tab-span" style="white-space:pre;">                                                                                                                          </span>'sn' => $sn,</div><div><span class="ecxApple-tab-span" style="white-space:pre;">                                                                                                                          </span>'webusername' => $webusername,</div><div><span class="ecxApple-tab-span" style="white-space:pre;">                                                                                                                                </span>'webpassword' => $webpassword,</div><div><span class="ecxApple-tab-span" style="white-space:pre;">                                                                                                                                </span>'external_id' => $external_id));</div><div>}</div><div>else {</div><div>$parameters = array('id' => $accountid, 'subscriber' => array(</div><div><span class="ecxApple-tab-span" style="white-space:pre;">                                                                                                                              </span>'username' => $username,</div><div><span class="ecxApple-tab-span" style="white-space:pre;">                                                                                                                              </span>'domain' => $domain,</div><div><span class="ecxApple-tab-span" style="white-space:pre;">                                                                                                                          </span>'password' => $password,</div><div><span class="ecxApple-tab-span" style="white-space:pre;">                                                                                                                              </span>'webusername' => $webusername,</div><div><span class="ecxApple-tab-span" style="white-space:pre;">                                                                                                                                </span>'webpassword' => $webpassword,</div><div><span class="ecxApple-tab-span" style="white-space:pre;">                                                                                                                                </span>'external_id' => $external_id));</div><div>}</div><div><br></div><div><br></div><div><br></div><div>$job = array('authentication' => $auth3, 'parameters' => $parameters);</div><div> $results = $client->call('add_voip_account_subscriber',$job);</div><div><br></div><div>return $results;</div><div>}</div></div><div><br><div><div>On Aug 29, 2013, at 1:42 AM, andreas tseiko <<a href="mailto:a.tseiko@hotmail.com">a.tseiko@hotmail.com</a>> wrote:</div><br class="ecxApple-interchange-newline"><blockquote><div class="ecxhmmessage" style="font-size:12pt;font-family:Calibri;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;orphans:2;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;widows:2;word-spacing:0px;"><div dir="ltr">Dear All,<div><br></div><div>We would like to provision new accounts to CE via soap interface.</div><div>For this action we use interface function "<i style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;">create_voip_account".</i></div><div><i style="font-family:Arial, Helvetica, sans-serif;font-size:15px;line-height:20px;">Into this function there is parameter "s</i><span style="background-color:rgb(245, 245, 245);font-family:Arial, Helvetica, sans-serif;font-size:13px;line-height:15px;text-align:justify;">ubscribers" in which we should fill in cc-ac-sn.</span></div><div><span style="background-color:rgb(245, 245, 245);font-family:Arial, Helvetica, sans-serif;font-size:13px;line-height:15px;text-align:justify;">CC-AC-SN will provide the E164 and </span><span style="background-color:rgb(245, 245, 245);font-family:Arial, Helvetica, sans-serif;font-size:13px;line-height:15px;text-align:justify;">SIP URI</span><span style="background-color:rgb(245, 245, 245);font-family:Arial, Helvetica, sans-serif;font-size:13px;line-height:15px;text-align:justify;"> of this new account.</span></div><div style="text-align:justify;"><font face="Arial, Helvetica, sans-serif" size="2"><span style="line-height:15px;">According to the above if we use CC=30, AC=210, SN=1234567 we will have the following:</span></font></div><div style="text-align:justify;"><font face="Arial, Helvetica, sans-serif" size="2"><span style="line-height:15px;">E164     : +30 210 1234567</span></font></div><div style="text-align:justify;"><font face="Arial, Helvetica, sans-serif" size="2"><span style="line-height:15px;">SIP URI :   302101234567@<a href="http://sip.example.com" target="_blank">sip.example.com</a></span></font></div><div style="text-align:justify;"><font face="Arial, Helvetica, sans-serif" size="2"><span style="line-height:15px;">Is it possible SIP URI to be as E164 meaning +302101234567 ?</span></font></div><div style="text-align:justify;"><font face="Arial, Helvetica, sans-serif" size="2"><span style="line-height:15px;">We managed to do that manually only by adding new subscriber via Administrative Web Panel(port 1443).</span></font></div><div style="text-align:justify;"><font face="Arial, Helvetica, sans-serif" size="2"><span style="line-height:15px;"><br></span></font></div><div style="text-align:justify;"><font face="Arial, Helvetica, sans-serif" size="2"><span style="line-height:15px;">Best regards.</span></font></div><div style="text-align:justify;"><font face="Arial, Helvetica, sans-serif" size="2"><span style="line-height:15px;"><br></span></font></div></div>_______________________________________________<br>Spce-user mailing list<br><a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br><a href="http://lists.sipwise.com/listinfo/spce-user" target="_blank">http://lists.sipwise.com/listinfo/spce-user</a><br></div></blockquote></div><br></div></div></div>                                         </div>
<br>_______________________________________________
Spce-user mailing list
Spce-user@lists.sipwise.com
http://lists.sipwise.com/listinfo/spce-user</div></div>                                       </div></body>
</html>