I've got various carriers that have gateways for inbound, gateways for
outbound, and gateways for both. I used is_from_gw() to determine the
carrier for inbound and I used route_to_carrier() after sorting carriers
around using cost_based_ordering from ratecacher.
In opensips, I had originally created a single carrier account for each
carrier with the inbound and outbound gateways defined with different
type numbers. This worked for inbound, but when I used
route_to_carrier(), it would also try to use the inbound gateways
defined as outgoing and that displeased our carriers.
I had considered using weights in the gateways and setting the inbound
gateways to 0%. I had also considered adding a "type" parameter to
route_to_carrier(). Is there another possible solution that I'm
overlooking? If not, adding the extra parameter to route_to_carrier()
seems the less "ugly" way of picking one type of gateway over another.
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users