Hello,
I want to extend the module to load a carrier tree based on $si(source ip) of a request. I want know if im going the right way doing this. The reason why im doing this is to avoid a hardcoded script. I have read other post that talk about this subject and the solution with domains and host doesn't meet my needs. Hope someone could help me.
thanks for the answers
greetings
With cr you can create several routing trees. Also, you can create a map between srcIP and a tree and load the tree that you want based on that map. What functionality are you missing here?
Regards, Ovidiu Sas
On Mon, Jan 5, 2009 at 10:10 AM, victorpy victorpy@gmail.com wrote:
Hello,
I want to extend the module to load a carrier tree based on $si(source ip) of a request. I want know if im going the right way doing this. The reason why im doing this is to avoid a hardcoded script. I have read other post that talk about this subject and the solution with domains and host doesn't meet my needs. Hope someone could help me.
thanks for the answers
greetings
View this message in context: http://www.nabble.com/extending-carrierroute-to-load-dynamic-carriers-tp2129... Sent from the OpenSER Users Mailing List mailing list archive at Nabble.com.
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
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?
Ovidiu Sas-3 wrote:
With cr you can create several routing trees. Also, you can create a map between srcIP and a tree and load the tree that you want based on that map. What functionality are you missing here?
Regards, Ovidiu Sas
On Mon, Jan 5, 2009 at 10:10 AM, victorpy victorpy@gmail.com wrote:
Hello,
I want to extend the module to load a carrier tree based on $si(source ip) of a request. I want know if im going the right way doing this. The reason why im doing this is to avoid a hardcoded script. I have read other post that talk about this subject and the solution with domains and host doesn't meet my needs. Hope someone could help me.
thanks for the answers
greetings
View this message in context: http://www.nabble.com/extending-carrierroute-to-load-dynamic-carriers-tp2129... Sent from the OpenSER Users Mailing List mailing list archive at Nabble.com.
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
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
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@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@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
Ah ok. So you are saying that i can configure the exported variables to read another table that contains eg. "gateway"(or srcIP) and correspondent "preferred_carrier". With that my problem it's solved i think. Sorry for the dumb questions :P Thank you and Ovidiu Sas too
you did a great job there with carrierroute!!
Henning Westerholt-2 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@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users