<div>I would say that as long as your UA's contact header registered in ser specifies UDP, t_relay should do the trick when receiving the bye (tcp) and relaying it (udp).</div>
<div>It works in my lab :)&nbsp;&nbsp; I cannot be more specific as i am away now ... sorry.</div>
<div>&nbsp;</div>
<div>Cesc<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 9/29/05, <b class="gmail_sendername">Mark Aiken</b> &lt;<a href="mailto:aiken.mark@gmail.com">aiken.mark@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">HI,<br><br>The original RURI does have&nbsp; but when SER relays to UDP UA it places transport=tcp in the Record-Route but not in the RURI to the UDP UA, which seems correct to me.
<br><br>I guess the problem is when using relay_to_udp on an INVITE from a TCP UA, to force SER to act as a TCP to UDP proxy, SER cant handle loose routing new requests in the same dialog back via TCP.<br><br>There seems to be no code in SER to handle this, from the small bits I've looked at anyway. The information is in the rr params that SER added, but SER just ignores the information on loose routed requests when the route is a local one.
<br><br>Does anyone know if there is some special trick to get SER to handle TCP&lt;-&gt;UDP conversion of loose routed requests? Should the UA be adding the transport=tcp from the rr param to the RURI of the BYE ( I would not think so, since its the 2nd route added by SER anyway, not the topmost).
<br><br>For SER to work as a TCP&lt;=&gt;UDP proxy, one needs to &quot;search&quot; for the transport=tcp, somehow be sure its in a local route header, and add the transport=tcp to the uri before calling t_relay, I guess. I haven't tried that yet. All this for loose routed requests.
<br><br>This seems like a lot of work in the .cfg file which is better done in rr/tm module. <br><br>I still think I must be doing something wrong as SER should handle this automatically for loose routed requests.<br><br>
Is using relay_to_udp not the proper way to force TCP to UDP proxy of an INVITE? <br><span class="sg"><br>Mark</span> 
<div><span class="e" id="q_106a27d42c75d458_2"><br><br>
<div><span class="gmail_quote">On 9/29/05, <b class="gmail_sendername">Klaus Darilion</b> &lt;<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:klaus.mailinglists@pernau.at" target="_blank">klaus.mailinglists@pernau.at
</a>&gt; wrote:</span> 
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Hi Mark!<br><br>I do not know it exactly, but I think the important thing is the contact<br>header URI of the INVITE. Does it contain a transport=tcp parameter?
<br>Otherwise, ser is correct when using UDP.<br><br>klaus<br><br>Mark Aiken wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I'm having problems getting SER to (loose) route requests from UDP to<br>&gt; TCP. I'm not sure if the UA is at fault here or some SER config issue.
<br>&gt;<br>&gt; SER receives an INVITE over TCP, record_route() is called and then the <br>&gt; request is relayed via UDP (t_relay_to_udp) to the UA. The<br>&gt; INVITE relayed to the UDP UA now has 2 Record-Route headers added by
<br>&gt; SER. One has the transport=tcp&nbsp;&nbsp;parameter.<br>&gt;<br>&gt; Record-Route: &lt;sip: xx.xx.xx.xx;r2=on;ftag=xyz;lr=on&gt;<br>&gt; Record-Route: &lt;sip:xx.xx.xx.xx;transport=tcp;r2=on;ftag=xyz&gt;<br>&gt;<br>&gt; When the UA sends the BYE to SER, it has the 2 Route headers like so (on
<br>&gt; a single line): <br>&gt;<br>&gt; Route:<br>&gt; &lt;sip:xx.xx.xx.xx;r2=on;ftag=xyz;lr=on&gt;,&lt;sip:xx.xx.xx.xx;transport=tcp;r2=on;ftag=xyz;lr=on&gt;<br>&gt;<br>&gt; The SER script simply calls t_relay() in the loose_route section of the 
<br>&gt; script.<br>&gt;<br>&gt; I expected t_relay() to relay the BYE via TCP, since the Route header<br>&gt; has transport=tcp, but it sends the BYE via UDP instead.<br>&gt;<br>&gt; Anyone seen this problem before? Do I need to check for transport=tcp 
<br>&gt; and call t_relay_to_tcp, rather than using t_relay after loose_route()?<br>&gt;<br>&gt; Mark<br>&gt;<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________ 
<br>&gt; Serusers mailing list<br>&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Serusers@iptel.org" target="_blank">Serusers@iptel.org</a><br>&gt; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.iptel.org/mailman/listinfo/serusers" target="_blank">
http://mail.iptel.org/mailman/listinfo/serusers</a><br><br></blockquote></div><br></span></div><br>_______________________________________________<br>Serusers mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Serusers@iptel.org">
Serusers@iptel.org</a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.iptel.org/mailman/listinfo/serusers" target="_blank">http://mail.iptel.org/mailman/listinfo/serusers</a><br><br><br></blockquote>
</div><br>