asterisk2billing.org
http://forum.asterisk2billing.org/

Congestion, not failing over
http://forum.asterisk2billing.org/viewtopic.php?f=34&t=12659
Page 1 of 1

Author:  tombii [ Tue Dec 13, 2016 9:37 am ]
Post subject:  Congestion, not failing over

Hi,

I have two providers and therefore several trunks. One provider gives me different rates, for example silver and gold. Therefore I have setup three rate cards and three trunks.
My failover_recursive_limit is set to 4. For this specific case, my LCR says Provider A silver, Provider A gold, Provider B.

However, Provider A silver trunk returns me "SIP/2.0 503 Service Unavailable".

I would have expected a2billing to fail over to the gold trunk but instead I get:
Code:
     -- SIP/silver-0000002b is circuit-busy
  == Everyone is busy/congested at this time (1:0/1/0)

Am I not understanding fail over correctly?
To high-light, I have not defined a fail-over trunk in the trunk silver configuration, I would like that logic to be in the a2billing agi because for another number, I might have, Provider A silver, Provider B, Provider A gold.

Is there a way to achieve this? Is it meant to work like this?


Edit: Ok, upon digging deeper into Class.RateEngine.php, it's clear to me that fail over only means for the fail over trunks, not fail over based on the rate card. Guess I'll have to do some coding to get this working the way I want to use it.
Let's close/move to requests.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/