How you create your routing tree is up to your requirements.<br>
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).<br>
<br>
Regards,<br>
Ovidiu Sas<br><br><br><div class="gmail_quote">On Mon, Jan 5, 2009 at 11:39 AM, Henning Westerholt <span dir="ltr">&lt;<a href="mailto:henning.westerholt@1und1.de">henning.westerholt@1und1.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Monday 05 January 2009, victorpy wrote:<br>
&gt; I know you can create several routing trees, but how you load a next<br>
&gt; carrier in case of failure o how can you load the carrier without<br>
&gt; hardcoding in the script?<br>
&gt;<br>
&gt; you can load the next domain with cr_next_domain in a $avp. in this case<br>
&gt; the script it&#39;s dynamic<br>
&gt;<br>
&gt; but how can you load a carrier in the same way?<br>
&gt;<br>
&gt; there is no function like load next carrier or load preferred carrier.<br>
&gt;<br>
&gt; Can you give me an idea how to make the map between scrIP and tree based on<br>
&gt; that map?<br>
<br>
</div>Hi victorpy,<br>
<br>
you can load the preferred carrier from a database with cr_user_carrier. It<br>
default to the subscriber table, thus the &#39;user&#39; in the name, but you can<br>
configure any table you like.<br>
<br>
Cheers,<br>
<font color="#888888"><br>
Henning<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>