<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">I’m new to Kamailio and currently evaluating it’s capabilities. One of the things I would like to be able to do is to change outbound message transport based on some dynamic logic. <div class=""><br class=""></div><div class="">Kamailio setup: I’m running on a setup from this guide - <a href="http://kamailio.org/docs/tutorials/5.1.x/kamailio-install-guide-git/" class="">http://kamailio.org/docs/tutorials/5.1.x/kamailio-install-guide-git/</a> and using default configuration file.</div><div class=""><br class=""></div><div class="">In a basic scenario of one2one call, I was able to make Kamailio to forward INVITE to callee over TCP by issuing a REGISTER request with “transport=tcp” parameter. Although it worked, as far as I understand that means all communication with the callee will be happening over TCP. I would like to be able to change transport dynamically so looking for a way to do that from config file.</div><div class=""><br class=""></div><div class="">I tried modifying $ru/$du in the following manner, but it didn’t seem to work. </div><div class=""><br class=""></div><div class=""># default config content</div><div class=""><div class="">if (is_method("INVITE")) {</div><div class="">        setflag(FLT_ACC); # do accounting</div><div class=""><span class="Apple-tab-span" style="white-space:pre">      </span># added to try to force TCP transport</div><div class="">        $du = $du + ";transport=tcp";</div><div class="">}</div></div><div class=""><br class=""></div><div class="">Any pointers as to how can I modify the outbound message transport? Do I need to use some extra modules or can it be achieved with a basic setup?</div><div class=""><br class=""></div><div class="">Thanks in advance,</div><div class="">Ivan</div></body></html>