[Spce-user] SOAP - Function update_voip_account_subscriber #18
Kevin Masse
kmasse at questblue.com
Tue Feb 26 12:05:16 EST 2013
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").'</pass
word>
</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] On Behalf Of Kevin Masse
Sent: Monday, February 25, 2013 2:17 PM
To: 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sipwise.com/pipermail/spce-user_lists.sipwise.com/attachments/20130226/148f9cb4/attachment-0001.html>
More information about the Spce-user
mailing list