[SR-Users] best practice to dynamic route block based on $rd - Domain in R-URI

Karsten Horsmann khorsmann at gmail.com
Wed Nov 8 13:28:56 CET 2017


Hello List,


i use kamailio-5.0.4 and i am now at the point that one kamailio is not
enough :).

So i decide to set another kamailio internal as sip-router based on
drouting.
My config is straight forward the example config with additional drouting
stuff.

Whats the best practice to route based on $rd with kamailio?

I dont want to end with an bunch of if then else. Should be come from
database.

Pseudo Code:

if ($rd == old.sbc.domain) {
   route[oldstuff];
}
else {
   route[newstuff];
}

Is there an module that i can use?


-- 
Kind Regards
*Karsten Horsmann*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171108/713eb1cb/attachment.html>


More information about the sr-users mailing list