<div dir="ltr">group,<div><br></div><div><br></div><div>I am attempting to append a branch that will route to another opensips server that listens for websockets. Is this possible in opensips 2.1.1? Here is how I am attempting to append the branch.</div><div><br></div><div>
<p class=""><span class=""> </span><span class=""> avp_subst("$avp(myloc</span><span class="">[$var(i)]</span><span class="">)", "/(.+)/\sip:\0:8080</span><span class="">;transport=WS/");</span></p><p class=""><span class="">
</span></p><p class=""><span class="">avp_pushto("$du","$avp(myloc</span><span class="">[$var(i)]</span><span class="">)")</span><span class="">;</span></p><p class=""><span class=""><br></span></p><p class=""><span class="">which results in the branch looking like this on debug</span></p><p class=""><span class="">
</span></p><p class=""><span class=""><<a href="mailto:sip%3Amyuser.blah@mydomain.org">sip:myuser.blah@mydomain.org</a>,othersip:server.ip:8080;transport=WS,,1380,4></span></p><p class=""><span class=""><br></span></p><p class=""><span class="">I chose to create the branch this way because the rest of them look like </span></p><p class=""><span class="">
</span></p><p class=""><span class=""><<a href="mailto:sip%3Aih1l72tk@192.0.2.183">sip:ih1l72tk@192.0.2.183</a>;transport=ws,sip:realip:64899;transport=WS,,1380,3></span></p><p class=""><span class="">My intention is to keep the topmost via branch as a WS so that the remote opensips server can process it accordingly as if it had received a ws call from client's registered to it.</span></p><p class="">As of now opensips isn't routing this branch at all and I can't find a thing in the debug to explain. Please advise.</p><p class=""><span class="">Thanks,</span></p><p class=""><span class="">Tito</span></p></div></div>