[Kamailio-Users] extending carrierroute to load dynamic carriers

Henning Westerholt henning.westerholt at 1und1.de
Mon Jan 5 17:39:20 CET 2009


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




More information about the Users mailing list