[OpenSIPS-Users] help with drouting
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Wed Dec 2 10:52:59 CET 2009
Hi Justin,
The DR module exports only 2 functions - do_routing() which selects a
list of GWs to be used for the call ad use_next_gw() used for
consuming/using the next GW from the list. See:
http://www.opensips.org/html/docs/modules/devel/drouting.html#id272402
So, in your script, when you want to send the call to PSTN (depending on
the logic you have there), you use do_routing() to get the list of GWs
and use the first one. Before sending the call out, arm a failure route
where (in case of GW failure - like 5xx reply) you can use the
use_next_gw() to do serial forking.
Regards,
Bogdan
Justin Moore wrote:
> Hello,
>
> I'm trying to adapt my current Opensips 1.5 installation to use drouting such that a call will try the least cost route first, and if that gateway is not available, then it will fail over to the next gateway in the list. I've already set up Opensips-CP and have made the necessary database modifications, as well as added the proper loadmodule and modparam blocks for drouting.so, but I'm not sure how to proceed in the opensips.cfg, and I haven't been able to find any tutorials that cover this. If someone could point me in the right direction of a good tutorial, or make recommendations about my opensips.cfg file (routing portion included below) I would appreciate it.
>
> Thank you!
>
> Justin
>
>
>
>
>
>
>
--
Bogdan-Andrei Iancu
www.voice-system.ro
More information about the Users
mailing list