<div dir="ltr">Hi Michael,<div>a way could be to have two different dispatcher sets (one for each mvno). </div><div>Then you could store the dispatcher set associated to each user in the usr_preferences table and use it in the routing script.</div><div><br></div><div>Something like this in your routing script:</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">avp_db_load("fU", "$avp(dispatcher-set)");</span><br></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">ds_select_dst("$avp(dispatcher-set)", "4");</span><br></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br></span></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">Regards,</span></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"><br></span></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">Federico</span></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 15, 2015 at 1:27 PM, Michael Nielsen <span dir="ltr"><<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The reason for my question is that we are 2 mvno's who wants to share a single sip mvno trunk - and want to have our individual customers routed according to who owns them - but also have the dispatcher functionallity for "load-balancing".</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 15, 2015 at 1:23 PM, Michael Nielsen <span dir="ltr"><<a href="mailto:mic.niel84@gmail.com" target="_blank">mic.niel84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello everyone,<div><br></div><div>I know kamailio can be configured into almsot everything for SIP - and that the dispatcher function is already build for dispatching between multiple sbc's etc...</div><div><br></div><div>Is it possible to use the dispatcher for routing between multiple sbc's accroding to called subscriber?</div><div>So I can make it somewhat multi-tentant.</div><div><br></div><div>So subscriber A always is routed to 1 or more specific sbc's and subscriber B to 1 or more other spcific sbc's?</div></div>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div>