[Spce-user] SOAP - Function update_voip_account_subscriber #18

Skyler skchopperguy at gmail.com
Tue Feb 26 18:24:06 EST 2013


Thanks for sharing the solution Kevin. Much appreciated.

Skyler

On 2/26/2013 10:39 AM, Kevin Masse wrote:
> Good afternoon List:
>
> Status:  Closed
>
> We can close out this question that I have posted to the list.
>
> Resolution:
>
> Use the SOAP API to first call the existing alias_number (s)
>
> 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.
>
> Thanks
>
> Kevin
>
> *From:*Kevin Masse
> *Sent:* Tuesday, February 26, 2013 12:05 PM
> *To:* Kevin Masse; Spce-user at lists.sipwise.com
> *Subject:* RE: [Spce-user] SOAP - Function
> update_voip_account_subscriber #18
>
> Good morning list:
>
> We didn’t receive any responses on this so we thought perhaps if we
> provided a code example it might help.
>
> 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.
>
> Does it appear that we may have the incorrect process in place?
>
> BEGIN CODE EXAMPLE:
>
> $aut ='         <authentication>
>
>             <type xsi:type="xsd:string">admin</type>
>
>             <username
> xsi:type="xsd:string">'.constant("SERVER_B_SOAP_ADMIN_USER").'</username>
>
>              <password
> xsi:type="xsd:string">'.constant("SERVER_B_SOAP_ADMIN_PASSWORD").'</password>
>
>           </authentication>';
>
> $params =$aut.'
>
>           <parameters>
>
>           <id xsi:type="xsd:int">'.$id_voip.'</id>
>
>                      <subscriber>
>
>                                      <username
>
> xsi:type="xsd:string">'.$sipaccount->username.'</username>
>
>                                      <domain
>
> xsi:type="xsd:string">-SIPWISE-DOMAIN-</domain>
>
>                                     <password
>
> xsi:type="xsd:string">'.$sipaccount->password.'</password>
>
>      <alias_numbers
>
> SOAP-ENC:arrayType="xsd:E164Number[0]" xsi:type="SOAP-ENC:Array" >
>
> <item>
>
> <cc
>
> xsi:type="xsd:int">1</cc>
>
>      <ac
>
> xsi:type="xsd:int">'.$ac.'</ac>
>
>      <sn
>
> xsi:type="xsd:string">'.$sn.'</sn>
>
>      </item>
>
>                      </alias_numbers>
>
>                          </subscriber>
>
>           </parameters>
>
> ';
>
> $r=$client->call('update_voip_account_subscriber', $params);
>
> END CODE EXAMPLE
>
> 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?
>
> Any comments will be greatly appreciated.
>
> Thank you
>
> Kevin
>
> *From:*spce-user-bounces at lists.sipwise.com
> <mailto:spce-user-bounces at lists.sipwise.com>
> [mailto:spce-user-bounces at lists.sipwise.com]
> <mailto:[mailto:spce-user-bounces at lists.sipwise.com]> *On Behalf Of
> *Kevin Masse
> *Sent:* Monday, February 25, 2013 2:17 PM
> *To:* Spce-user at lists.sipwise.com <mailto:Spce-user at lists.sipwise.com>
> *Subject:* [Spce-user] SOAP - Function update_voip_account_subscriber #18
>
> Good afternoon list:
>
> For users who have worked with the Provisioning.wsdl via SOAP I have a
> question about adding alias_numbers.
>
> 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?
>
> 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.
>
> It could be our syntax but I wanted to ask the list to see if there was
> a limiting factor in the SOAP command.
>
> Thank you
>
> Kevin
>
>
>
> _______________________________________________
> Spce-user mailing list
> Spce-user at lists.sipwise.com
> http://lists.sipwise.com/listinfo/spce-user
>




More information about the Spce-user mailing list