[Spce-user] Problems with XMLRPC Provisioning interface

Raúl Alexis Betancor Santana rabs at dimension-virtual.com
Mon Oct 17 16:35:18 EDT 2011


On Mon, Oct 17, 2011 at 05:56:15PM +0200, Daniel Tiefnig wrote:
> On 10/17/2011 04:27 PM, Raúl Alexis Betancor Santana wrote:
> >>Maybe the subscriber does not have account ID 9?
> >
> >Yes it have ID 9, look the log for get_subscriber:
> >
> >Sipwise::Provisioning::_log_xmldata: get_subscriber returned with:
> >'account_id' =>  '2', [...] 'subscriber_id' =>  '9'
> 
> Here we have the problem. You're passing the subscriber_id as the "id"
> parameter to update_voip_account_subscriber(), while you should pass the
> account_id instead. The function expects the account_id in the "id"
> parameter and at least the subscriber username and the subscriber domain
> in the "subscriber" data structure.

Thanks a lot, was my fault at reading the docs of the functions,
that's explains why I was so confused about "why should I give it the
username and domain if I'm sending it the subscriber id ... " ... X)

Now it's working ok.

Thx.

Best regards




More information about the Spce-user mailing list