Difference between revisions of "Configure calling cards for Sky DANCE"

From Sky Networks Wiki
Jump to navigation Jump to search
 
(7 intermediate revisions by one other user not shown)
Line 6: Line 6:
 
    
 
    
 
  [https://astpp.readthedocs.io/en/v3.6/Modules/Tariff/create_rate_group.html a) Create a rate group]
 
  [https://astpp.readthedocs.io/en/v3.6/Modules/Tariff/create_rate_group.html a) Create a rate group]
  [https://astpp.readthedocs.io/en/v3.6/Modules/Accounts/create_account.html b) Create a customer ]
+
  [https://astpp.readthedocs.io/en/v3.6/Modules/Accounts/create_account.html b) Create a customer (for retail) or Create a provider (for wholesale) ]
 
  c) Add the customer number into a Sky DANCE  
 
  c) Add the customer number into a Sky DANCE  
       i) For resource groups and wholesale billing, add it to the account number in the resource group setup
+
       i) For wholesale billing setup a provider profile, add it to the account number in the resource group setup
 
     ii) For Sky-PBX or Sky-Residential extensions, add it in the extension table edit screen.
 
     ii) For Sky-PBX or Sky-Residential extensions, add it in the extension table edit screen.
  
 
  Note: You will also need to setup a resource group for each resource group in Sky DANCE.
 
  Note: You will also need to setup a resource group for each resource group in Sky DANCE.
a) Resource groups are setup under the carrier menu. Add one resource group in the format RG_xxx where
+
  a) Resource groups are setup under the carrier menu. Add one resource group in the format RG_xxx where
 
     xxx is the resource group number in Sky DANCE
 
     xxx is the resource group number in Sky DANCE
 
    
 
    
You will also need to load rate tables for the various providers
+
You will also need to load rate tables for the various providers
 +
 
 +
  Finally, if you're using a multistage dialing to access the card you will need to route the call to a custom extension:
 +
 
 +
1.  Add a DID entry to route a call to Sky PBX from the Sky DANCE Called Pretranslation table like this:
 +
 
 +
Example: Route a all DIDs beginning with 30550022 to extension 1000 in for company domain sky-networks.com
 +
Pretranslation entry
 +
CLD              TRANSLATION
 +
3055002222  prepaid@sky-networks.com
 +
 
 +
Then in the prepaid entry on Sky PBX you will need an entry like this:
 +
<extension name="Prepaid" >
 +
  <condition field="destination_number" expression="^prepaid$" >
 +
      <action application="lua" data="/home/skynet/sky/skybilling/scripts/sky_prepaid.lua true ${caller_id_number} get_destination ${rg_in} ${rg_in} get_account" />
 +
      <action application="transfer" data="${called_number}  XML sky-central.com" />
 +
  </condition>
 +
</extension>

Latest revision as of 09:08, 6 August 2019


Steps:

1. Build a calling card account using the billing system

a) Create a rate group
b) Create a customer (for retail) or Create a provider (for wholesale) 
c) Add the customer number into a Sky DANCE 
     i) For wholesale billing setup a provider profile, add it to the account number in the resource group setup
    ii) For Sky-PBX or Sky-Residential extensions, add it in the extension table edit screen.
Note: You will also need to setup a resource group for each resource group in Sky DANCE.
 a) Resource groups are setup under the carrier menu. Add one resource group in the format RG_xxx where
    xxx is the resource group number in Sky DANCE
 
You will also need to load rate tables for the various providers
 Finally, if you're using a multistage dialing to access the card you will need to route the call to a custom extension:

1. Add a DID entry to route a call to Sky PBX from the Sky DANCE Called Pretranslation table like this:

Example: Route a all DIDs beginning with 30550022 to extension 1000 in for company domain sky-networks.com

Pretranslation entry
CLD              TRANSLATION
3055002222  prepaid@sky-networks.com

Then in the prepaid entry on Sky PBX you will need an entry like this: <extension name="Prepaid" >

  <condition field="destination_number" expression="^prepaid$" >
      <action application="lua" data="/home/skynet/sky/skybilling/scripts/sky_prepaid.lua true ${caller_id_number} get_destination ${rg_in} ${rg_in} get_account" />
      <action application="transfer" data="${called_number}  XML sky-central.com" />
  </condition>

</extension>