System information
4.5.12. Promotions
• First X seconds are free
You might create packets when the first few seconds are not billied.
Just use the “Free amount” option on the Price Setup form for this
• Call X direction for only … cent
Just setup a separate packet with lowered prices for this.
Use only the directions (prefixes) you wish to promote.
• 10 USD free to direction X
Set the “packetcredit” field in tb_users to 10
Create a special packet with the desired directions (prefixes). Set the “isforpacket” field to 1 for this packet(s)
With these settings the cost of the call is calculated with this special packet(s) and the cost will be deducted from the “packetcredit” field
instead of the real “credit” field.
• You can offer some directions for the users where they can call Y minutes for free
The followings fields have to be used for this from the tb_users table:
o freeminutes: free minutes included
o freesms: number of free sms messages included
o freeminutesleft: remaining free minutes (this field will be modified by the server. No more free minutes when reach to 0)
o freesmsleft: remaining free minutes (this field will be modified by the server. No more free minutes when reach to 0)
o freedirections: numbers separated by comma or a prefix where the free minutes or sms can be used (it can be also a whole number).
Empty value for this allows free calls to all directions.
o freedays: set to a positive value if you wish the free minutes to be reset after this number of days (recurring free minutes). Set to 0
to disable reset. (By reset we mean that the freeminutesleft will be set to freeminutes)
o freebegindt: freedays begin date-time
For this feature to be used you might have to set the “checkfreeminutes” global config option to 2. You might also set the “freedirections”
global config option to restrict the directions that can be allowed by the tb_users. Freedirections field (if you let this field to be modified
freely by the users, for example to select one preferred number or destination prefix)
Example SQL to add 100 free minutes ad 30 SMS for a set of users to prefix 4411:
update tb_users set freeminutes = 100, freesms = 30, freeminutesleft=100, freesmsleft=30, freedirections =’4411’,
freebegindt=getdate(),freedays=31 where id in (X,Y,Z)
To add 10 free minutes for new users, just set the default value for the “freeminutes” field to 10 in the database.










