[Spce-user] Billing profile for inbound calls?

Alexander Griesser ag at anexia.at
Fri Feb 20 14:29:00 EST 2015


Hi Andreas,

perfect, thanks.

> The billing fees in a billing profile have a "direction" field which you'd need to set to "incoming" for it to be applied to the called party.

BTDT - doesn't change the behaviour though :-/

> Well, it's in MySQL only, specifically in billing.billing_fees_history, but you can export them via
> https://$your_ip:1443/api/billingfees/?billing_profile_id=$your_bid

Ah, that's nice. Here's my billing profile (whole JSON, didn't want to cut away fields that might be necessary to debug for you). I've set source and destination to . just to make sure it matches everything.

{
         "billing_profile_id" : 3,
         "billing_zone_id" : 2,
         "destination" : ".",
         "direction" : "in",
         "id" : 2,
         "offpeak_follow_interval" : 60,
         "offpeak_follow_rate" : 12,
         "offpeak_init_interval" : 1,
         "offpeak_init_rate" : 12,
         "onpeak_follow_interval" : 60,
         "onpeak_follow_rate" : 12,
         "onpeak_init_interval" : 1,
         "onpeak_init_rate" : 12,
         "source" : ".",
         "use_free_time" : false
      }
}


Also, this billing profile has been assigned to the customer with the subscriber account I'm calling, here's the JSON for the subscriber:

{
   "administrative" : false,
   "alias_numbers" : [],
   "customer_id" : 5,
   "domain" : "blabla",
   "domain_id" : 2,
   "email" : null,
   "external_id" : null,
   "id" : 3,
   "password" : "topsecret",
   "primary_number" : {
      "ac" : "463",
      "cc" : "43",
      "sn" : "XXXXXX"
   },
   "profile_id" : null,
   "profile_set_id" : null,
   "status" : "active",
   "username" : "1234",
   "webpassword" : "topsecret",
   "webusername" : "1234"
}

And here's the JSON for the customer:

{
   "add_vat" : false,
   "billing_profile_id" : 3,
   "contact_id" : 5,
   "external_id" : null,
   "id" : 5,
   "invoice_email_template_id" : null,
   "invoice_template_id" : null,
   "max_subscribers" : null,
   "passreset_email_template_id" : null,
   "status" : "active",
   "subscriber_email_template_id" : null,
   "type" : "sipaccount",
   "vat_rate" : 0
}

Thanks for looking into that,
Best,

Alexander Griesser
Head of Systems Operations

ANEXIA Internetdienstleistungs GmbH

E-Mail: ag at anexia.at
Web: http://www.anexia.at

Anschrift Hauptsitz Klagenfurt: Feldkirchnerstraße 140, 9020 Klagenfurt
Geschäftsführer: Alexander Windbichler
Firmenbuch: FN 289918a | Gerichtsstand: Klagenfurt | UID-Nummer: AT U63216601





More information about the Spce-user mailing list