[Kamailio-Users] extending carrierroute to load dynamic carriers

Ovidiu Sas osas at voipembedded.com
Mon Jan 5 17:43:07 CET 2009


How you create your routing tree is up to your requirements.
You can do it per user (as Henning suggested) or per SIP trunk and use
avpops (for example) to load from a db the next carrier or domain (both
field can be customized via AVPs).

Regards,
Ovidiu Sas


On Mon, Jan 5, 2009 at 11:39 AM, Henning Westerholt <
henning.westerholt at 1und1.de> wrote:

> On Monday 05 January 2009, victorpy wrote:
> > I know you can create several routing trees, but how you load a next
> > carrier in case of failure o how can you load the carrier without
> > hardcoding in the script?
> >
> > you can load the next domain with cr_next_domain in a $avp. in this case
> > the script it's dynamic
> >
> > but how can you load a carrier in the same way?
> >
> > there is no function like load next carrier or load preferred carrier.
> >
> > Can you give me an idea how to make the map between scrIP and tree based
> on
> > that map?
>
> Hi victorpy,
>
> you can load the preferred carrier from a database with cr_user_carrier. It
> default to the subscriber table, thus the 'user' in the name, but you can
> configure any table you like.
>
> Cheers,
>
> Henning
>
> _______________________________________________
> Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20090105/cc84cab9/attachment.htm 


More information about the Users mailing list