<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle18
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Good afternoon List:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Status: Closed<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>We can close out this question that I have posted to the list.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Resolution:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Use the SOAP API to first call the existing alias_number (s)<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Then post new alias_number with all alias_number (s) at the same time. Simply put --- Reposting the data with all the alias_number (s) in one post.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thanks<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Kevin<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Kevin Masse <br><b>Sent:</b> Tuesday, February 26, 2013 12:05 PM<br><b>To:</b> Kevin Masse; Spce-user@lists.sipwise.com<br><b>Subject:</b> RE: [Spce-user] SOAP - Function update_voip_account_subscriber #18<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>Good morning list:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>We didn’t receive any responses on this so we thought perhaps if we provided a code example it might help.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>We are trying to add the alias_number to the Subscriber. The issue I am having is when we ADD another alias_number to the subscriber it is removing the previous alias_number and replacing it with the newest addition. We want to continue to add multiple alias_number (s) on a regular basis.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Does it appear that we may have the incorrect process in place?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>BEGIN CODE EXAMPLE:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>$aut =' <authentication><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> <type xsi:type="xsd:string">admin</type><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> <username xsi:type="xsd:string">'.constant("SERVER_B_SOAP_ADMIN_USER").'</username><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> <password xsi:type="xsd:string">'.constant("SERVER_B_SOAP_ADMIN_PASSWORD").'</password><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> </authentication>';<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>$params =$aut.'<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> <parameters><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> <id xsi:type="xsd:int">'.$id_voip.'</id><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> <subscriber><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> <username<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>xsi:type="xsd:string">'.$sipaccount->username.'</username><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> <domain<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>xsi:type="xsd:string">-SIPWISE-DOMAIN-</domain><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> <password<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>xsi:type="xsd:string">'.$sipaccount->password.'</password><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> <alias_numbers<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>SOAP-ENC:arrayType="xsd:E164Number[0]" xsi:type="SOAP-ENC:Array" ><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><item><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><cc<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>xsi:type="xsd:int">1</cc><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> <ac<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>xsi:type="xsd:int">'.$ac.'</ac><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> <sn<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>xsi:type="xsd:string">'.$sn.'</sn><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> </item><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> </alias_numbers><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> </subscriber><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'> </parameters><o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>';<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>$r=$client->call('update_voip_account_subscriber', $params);<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>END CODE EXAMPLE<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>We are using the update_voip_account_subscriber to process this. Should we be doing something else in order to continue to add additional alias_numbers to the same Subscriber?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Any comments will be greatly appreciated.<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Thank you<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Kevin <o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> <a href="mailto:spce-user-bounces@lists.sipwise.com">spce-user-bounces@lists.sipwise.com</a> <a href="mailto:[mailto:spce-user-bounces@lists.sipwise.com]">[mailto:spce-user-bounces@lists.sipwise.com]</a> <b>On Behalf Of </b>Kevin Masse<br><b>Sent:</b> Monday, February 25, 2013 2:17 PM<br><b>To:</b> <a href="mailto:Spce-user@lists.sipwise.com">Spce-user@lists.sipwise.com</a><br><b>Subject:</b> [Spce-user] SOAP - Function update_voip_account_subscriber #18<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Good afternoon list:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>For users who have worked with the Provisioning.wsdl via SOAP I have a question about adding alias_numbers.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>In the particular function #18 update_voip_account_subscriber, should I be able to continue to add more alias_number (‘s) or will it only function to add an alias_number onetime account update?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am working on allowing users from our system to be able to continue to add alias number to a particular Subscriber. Right now each time I add another alias_number it removes what was there and adds the new one.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>It could be our syntax but I wanted to ask the list to see if there was a limiting factor in the SOAP command.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank you<o:p></o:p></p><p class=MsoNormal>Kevin <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>