Mor authorize: Too low balance for more simultaneus calls!!!

From Kolmisoft Wiki
Revision as of 11:34, 7 April 2008 by Mindaugas (talk | contribs)
Jump to navigationJump to search

Reason for this is that your server or Asterisk was restarted (maybe crashed) during the active call.

Fix: issue to your database such command:

UPDATE users SET frozen_balance = 0;




NOTE: MOR automatically takes care of wrongly restarted Asterisk in MOR PRO 0.6 and in following versions and database corruption is fixed automatically.




The other reason can be that your user is PREPAID and he has not enough balance to cover more simultaneous calls.

MOR uses algorithm to reserve balance when call is made to be safe if user is prepaid.

That way when second, third, etc calls are made - MOR checks free - not reserved balance and decides should it allow to dial or not.

To lower security level and allow users with low balance to dial out several times, go to /etc/asterisk/mor.conf and change to:

min_frozen = 1

That way you are taking risk that you will take loss if user talks for more then frozen_time (default 90s). E.g. if user make a call, his balance is frozen for 90s with the rate to current destination. If user talks more - you can take loss.