[Spce-user] Problems with XMLRPC Provisioning interface

Raúl Alexis Betancor Santana rabs at dimension-virtual.com
Mon Oct 17 10:27:33 EDT 2011


On Mon, Oct 17, 2011 at 02:29:53PM +0200, Daniel Tiefnig wrote:
> On 10/15/2011 10:01 PM, Raúl Alexis Betancor Santana wrote:
> >[...] then I do a update_voip_account_subscriber, to add more E.164
> >numbers to the subscriber, as that's not possible throught the admin
> >interface, so ... build the request and get "voip account subscriber
> >'testuser1 at test.com' does not exist", and I know it exists, moreover
> >because on the get_subscriver I get all the info .. ;)
> 
> Maybe the subscriber does not have account ID 9? 

Yes it have ID 9, look the log for get_subscriber:

Oct 17 16:19:13 mg06 provisioning:
Sipwise::Provisioning::_log_xmldata: get_subscriber called with:
{'authentication' => {'password' => 'XXXX','type' =>
'admin','username' => 'administrator'},'parameters' => {'domain' =>
'test.com','username' => 'testuser1'}}
Oct 17 16:19:13 mg06 provisioning:
Sipwise::Provisioning::handle_request: calling function
'get_subscriber' for admin 'administrator'
Oct 17 16:19:13 mg06 provisioning:
Sipwise::Provisioning::_log_xmldata: get_subscriber returned with:
{'ac' => '657','account_id' => '2','admin' => '1','cc' =>
'34','create_timestamp' => '2011-10-09 16:29:39','domain' =>
'test.com','modify_timestamp' => '2011-10-09
16:29:39','password' => 'XXXX2','sn' => '421473','subscriber_id'
=> '9','username' => 'testuser1','uuid' =>
'497e0bfa-36ca-475a-b17c-c64cd1df6e83','webpassword' =>
'XXXX','webusername' => 'rbetancor'}



> If it does, what does
> /var/log/ngcp/oss.log say about the call? Is the account ID received
> properly?

Here you have the log for the second call, that one to
update_voip_account__subscriber

Oct 17 16:19:13 mg06 oss: 127.0.0.1 - admin [17/Oct/2011:16:19:13
+0200] "POST /XMLRPC/Provisioning HTTP/1.0" 200 2752 "-" "*py*"
Oct 17 16:19:13 mg06 apache2: [info] [client 127.0.0.1] Connection
closed to child 4 with standard shutdown (server myserver:443)
Oct 17 16:19:13 mg06 apache2: [info] [client 127.0.0.1] Connection to
child 10 established (server myserver:443)
Oct 17 16:19:13 mg06 apache2: [info] Seeding PRNG with 656 bytes of
entropy
Oct 17 16:19:13 mg06 apache2: [info] Initial (No.1) HTTPS request
received for child 10 (server myserver:443)
Oct 17 16:19:14 mg06 provisioning:
Sipwise::Provisioning::_log_xmldata: update_voip_account_subscriber
called with: {'authentication' => {'password' => 'XXXX','type' =>
'admin','username' => 'administrator'},'parameters' => {'id' =>
'9','subscriber' => {'alias_numbers' => [{'ac' => '928','cc' =>
'34','sn' => '674064'}],'domain' => 'test.com','username'
=> 'testuser1'}}}
Oct 17 16:19:14 mg06 provisioning:
Sipwise::Provisioning::handle_request: calling function
'update_voip_account_subscriber' for admin 'administrator'
Oct 17 16:19:14 mg06 provisioning: Sipwise::Provisioning::mydie:
update_voip_account_subscriber: voip account subscriber
'testuser1 at test.com' does not exist

Any clue? ... maybe I'm sending worng params to the function?

Best regards




More information about the Spce-user mailing list