carrierroute has a specific way of dealing with errors, see cr_next_domain().
http://www.kamailio.net/docs/modules/1.4.x/carrierroute.html#id2452857
You will need to populate two tables:
- carrierroute
- carrierfailureroute
Form the examples given on the README file it seems that you will need
to use different domains for failure route. In the end, it is a
matter of populating the cr tables in order to properly control the
traffic.
Regards,
Ovidiu Sas
On Tue, Aug 19, 2008 at 10:27 AM, sergejf <serge(a)elasticall.com> wrote:
We're using OpenSER 1.3 so this should be fine.
However, I'm looking at the failure routes and notice that what you are
doing is selecting a new domain when the initial routing attempt returns an
error. Assuming I have three gateways "G1" to "G3" in the same domain
"D1"
and the hash function causes the initial INVITE to be transmitted to "G1"
which is saturated (503 returned), how can I sequentially try "G2" and
"G3"
in the failure routes? Am I going to need two failure routes with two
additional domains "D2" and "D3", changing the hash_index of each
gateway in
the domains? E.g. if "G1" hash_index = 1 in "D1", then should I put
"G2"
hash_index = 1 in "D2" and "G3" hash_index = 1 in "D3"?
The Dispatcher had an elegant way of dealing with post-failure re-routing by
returning the destination set resulting from the first load balancing
operation and allowing the script to then remove the last tried destination
from the set and making another routing attempt on the reduced set. It seems
that CarrierRoute doesn't support this, not even in its 1.4 incarnation.
Ovidiu Sas-3 wrote:
The config there is for openser 1.3. It needs to be upgraded to 1.4.
carrierroute seems to be the only module that had an API change,
everything else should be working as is.
Regards,
Ovidiu Sas
--
View this message in context:
http://www.nabble.com/failure-route-configuration-tp19037695p19050540.html
Sent from the OpenSER Users Mailing List mailing list archive at
Nabble.com.
_______________________________________________
Users mailing list
Users(a)lists.kamailio.org
http://lists.kamailio.org/cgi-bin/mailman/listinfo/users