<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.3790.2577" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><SPAN
class=389193814-16022006><FONT face=Arial color=#0000ff size=2>Hi
Greg,</FONT></SPAN></DIV>
<DIV><SPAN class=389193814-16022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=389193814-16022006><FONT face=Arial color=#0000ff size=2>I'm
not sure. I have tried :</FONT></SPAN></DIV>
<DIV><SPAN class=389193814-16022006><FONT face=Arial color=#0000ff size=2>dig
-t SRV _sip._udp.<FONT face="Times New Roman" color=#000000
size=3>sip.carrierTCP.net.br and <SPAN class=389193814-16022006><FONT
face=Arial color=#0000ff size=2>dig -t SRV
_sip._tcp</FONT></SPAN></FONT></FONT></SPAN><SPAN
class=389193814-16022006><FONT face=Arial color=#0000ff size=2><FONT
face="Times New Roman" color=#000000 size=3><SPAN
class=389193814-16022006><FONT face=Arial color=#0000ff size=2>.<FONT
face="Times New Roman" color=#000000 size=3>sip.carrierTCP.net.br without
success.</FONT></FONT></SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=389193814-16022006><FONT face=Arial color=#0000ff
size=2><FONT face="Times New Roman" color=#000000 size=3><SPAN
class=389193814-16022006>then</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=389193814-16022006><FONT face=Arial color=#0000ff
size=2><FONT face="Times New Roman" color=#000000 size=3><SPAN
class=389193814-16022006><SPAN class=389193814-16022006><FONT face=Arial
color=#0000ff size=2>dig -t SRV _sip._udp.<FONT face="Times New Roman"
color=#000000 size=3>carrierTCP.net.br and <SPAN
class=389193814-16022006><FONT face=Arial color=#0000ff size=2>dig -t SRV
_sip._tcp</FONT></SPAN></FONT></FONT></SPAN><SPAN
class=389193814-16022006><FONT face=Arial color=#0000ff size=2><FONT
face="Times New Roman" color=#000000 size=3><SPAN
class=389193814-16022006><FONT face=Arial color=#0000ff size=2>.<FONT
face="Times New Roman" color=#000000 size=3>carrierTCP.net.br. The
same.</FONT></FONT></SPAN></FONT></FONT></SPAN></SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=389193814-16022006><FONT face=Arial color=#0000ff
size=2><FONT face="Times New Roman" color=#000000 size=3><SPAN
class=389193814-16022006><SPAN class=389193814-16022006><FONT face=Arial
color=#0000ff size=2><FONT face="Times New Roman" color=#000000 size=3><SPAN
class=389193814-16022006>In this case it could be the problem... I'm verifying
with him. If not, I could use T_relay_to_tcp or t_relay_to_udp depending on
the request line.
</SPAN></FONT></FONT></SPAN></SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=389193814-16022006><FONT face=Arial color=#0000ff
size=2><FONT face="Times New Roman" color=#000000 size=3><SPAN
class=389193814-16022006><SPAN class=389193814-16022006><FONT face=Arial
color=#0000ff size=2><FONT face="Times New Roman" color=#000000 size=3><SPAN
class=389193814-16022006>In this case my problem is to put the right uri and
port in the function : as his GW could change regarding the destination, even
the transport could change for the same GW. And the function seems to work so
with ("123.456.123","5060") as parameters and not with variables. Am I wrong?
I hope because if I could put variables in the t_relay_to_xxx functions, I
will be able to work with any other Sip proxy, even if not well configured
with DNS SRV
records.</SPAN></FONT></FONT></SPAN></SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=389193814-16022006><FONT face=Arial color=#0000ff
size=2><FONT face="Times New Roman" color=#000000 size=3><SPAN
class=389193814-16022006><SPAN class=389193814-16022006><FONT face=Arial
color=#0000ff size=2><FONT face="Times New Roman" color=#000000 size=3><SPAN
class=389193814-16022006></SPAN></FONT></FONT></SPAN></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=389193814-16022006><FONT size=+0><FONT size=+0><SPAN
class=389193814-16022006><SPAN class=389193814-16022006><FONT face=Arial
color=#0000ff size=2><SPAN class=389193814-16022006>Anyway, thank Greg...I
know you will give me the
trick.</SPAN></FONT></SPAN></SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=389193814-16022006><FONT size=+0><FONT size=+0><SPAN
class=389193814-16022006><SPAN class=389193814-16022006><FONT face=Arial
color=#0000ff size=2><SPAN
class=389193814-16022006></SPAN></FONT></SPAN></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=389193814-16022006><FONT size=+0><FONT size=+0><SPAN
class=389193814-16022006><SPAN class=389193814-16022006><FONT face=Arial
color=#0000ff size=2><SPAN
class=389193814-16022006>Regards,</SPAN></FONT></SPAN></SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=389193814-16022006><FONT size=+0><FONT size=+0><SPAN
class=389193814-16022006><SPAN class=389193814-16022006><FONT face=Arial
color=#0000ff size=2><SPAN
class=389193814-16022006></SPAN></FONT></SPAN></SPAN></FONT></FONT></SPAN> </DIV>
<DIV><SPAN class=389193814-16022006><FONT size=+0><FONT size=+0><SPAN
class=389193814-16022006><SPAN class=389193814-16022006><FONT face=Arial
color=#0000ff size=2><SPAN class=389193814-16022006>Christian
Thomas</SPAN></FONT></SPAN></SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=389193814-16022006><FONT face=Arial color=#0000ff
size=2><FONT face="Times New Roman" color=#000000 size=3><SPAN
class=389193814-16022006><SPAN class=389193814-16022006><FONT face=Arial
color=#0000ff size=2><FONT face="Times New Roman" color=#000000 size=3><SPAN
class=389193814-16022006></SPAN></FONT></FONT></SPAN></SPAN></FONT></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Greger V. Teigre
[mailto:greger@teigre.com]<BR><B>Sent:</B> quinta-feira, 16 de fevereiro de
2006 05:22<BR><B>To:</B> cthomas@canalwest.com;
serusers@lists.iptel.org<BR><B>Subject:</B> Re: [Serusers] UAC UDP to Proxy TCP...
Problem<BR><BR></FONT></DIV>
<DIV>Does sip.carrierTCP.net.br have DNS SRV records?!</DIV>
<DIV>g-)</DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=cthomas@canalwest.com
href="mailto:cthomas@canalwest.com">Christian Thomas</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=greger@teigre.com
href="mailto:greger@teigre.com">Greger V. Teigre</A> ; <A
title=serusers@lists.iptel.org
href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, February 15, 2006
11:28 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Serusers] UAC UDP to
Proxy TCP... Problem</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2>Greger,</FONT></SPAN></DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2>Thank you for your response.</FONT></SPAN></DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2>See the attached ethereal trace.</FONT></SPAN></DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2>NOTA:</FONT></SPAN></DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2>66.xxx.xxx.xx is the aterisk UAC</FONT></SPAN></DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2>200.xxx.xxx.xx is my proxy server</FONT></SPAN></DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2>20.196.xxx.xx is the TCP Carrier GW</FONT></SPAN></DIV>
<DIV><SPAN class=040092022-15022006></SPAN><SPAN
class=040092022-15022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2>The ACK my proxy send to the TCP GW - after have received 200 OK -
have the request line including the transport=tcp
indication</FONT></SPAN></DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2>The contact headers are ok in each case. </FONT></SPAN></DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2>The Bye Sent by my proxy does not have the request line
transport=tcp. But we have already a one way communication
before.</FONT></SPAN></DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2>if the asterisk does not send a bye, the call is terminated by the
TCP GW. I think it is because of a time out from the TCP
GW.</FONT></SPAN></DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2>Christian</FONT></SPAN></DIV>
<DIV><SPAN class=040092022-15022006><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Greger V. Teigre
[mailto:greger@teigre.com]<BR><B>Sent:</B> quarta-feira, 15 de fevereiro
de 2006 04:35<BR><B>To:</B> cthomas@canalwest.com;
serusers@lists.iptel.org<BR><B>Subject:</B> Re: [Serusers] UAC UDP to Proxy
TCP... Problem<BR><BR></FONT></DIV>
<DIV>Seems like you have done your research and what you write seems
reasonable. It's difficult to give you an answer without having a
complete ngrep trace. However, you should also look at the Record-Route
and Route headers...</DIV>
<DIV>g-)</DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=cthomas@canalwest.com
href="mailto:cthomas@canalwest.com">Christian Thomas</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=serusers@lists.iptel.org
href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, February 14, 2006
6:33 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Serusers] UAC UDP to
Proxy TCP... Problem</DIV>
<DIV><BR></DIV>
<DIV><FONT face=Arial size=2><SPAN class=395273916-14022006>Hi
everybody,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=395273916-14022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=395273916-14022006>I have a
UDP2TCP problem with Ser. (0.9-4)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=395273916-14022006>The UACs
connected to my SER Proxy are all UDP. When I use some carriers to
connect them to PSTN The Carrier Proxy / GW could talk UDP or TCP. It
depends on the destination.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=395273916-14022006>Each time
the Carrier GW want to talk TCP, the contact field is correct
and contains the 'transport=tcp' mention. all seems to be correct
and, after a complete reading about this subject in the list, I trust
that using t_relay() must do the right translation and send response
via TCP to the Carrier GW when this one is transport=tcp
declared.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=395273916-14022006>If I Check
the message for an Ack or a BYE sent to the TCP GW the uri is correct
:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=395273916-14022006>the
transport=tcp is added. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=395273916-14022006> <FONT size=2>Request-Line: ACK
sip:50033299848400@200.1xx.xx.xx:5060;transport=tcp
SIP/2.0</FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=395273916-14022006>I have red
that this is sufficient to let SER understand that it must be sent via
TCP.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=395273916-14022006>unfortunately, this message is ent thru UDP.
</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=395273916-14022006>May I
force with a t_relay_to_tcp ? As this case depends on the carrier
dynamic routing it could be complicated because of the need to
know the destination to script t_relay_to_tco(uri, port)... If anybody
has the trick or any advice...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=395273916-14022006>Other
thing related, when TCP is the transport mode from the Carrier GW and
I forward staefully to the UAC (Asterisk) the call failed between
Asterisk as UAC and the carrier GW.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=395273916-14022006>I
wondering it was because the Carrier Gw didn't receive an ACK TCP from
my server..</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=395273916-14022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=395273916-14022006>Well I'm
completely lost... as you can feel with my
message...</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=395273916-14022006>I need
Help.. But don't cal me Harry ;)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=395273916-14022006></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=395273916-14022006>Regards,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=395273916-14022006></SPAN></FONT> </DIV>
<DIV><FONT size=1><FONT face=Tahoma><B>Christian Thomas</B>
<BR></FONT></DIV></FONT>
<P>
<HR>
<P></P>_______________________________________________<BR>Serusers
mailing
list<BR>serusers@lists.iptel.org<BR>http://lists.iptel.org/mailman/listinfo/serusers<BR></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>