<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=iso-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
When I send an INVITE as follows (with transport=UDP) but sent via TCP:
(UA=<tt>10.5.3.22 internal, </tt>82.135.xx.xxx external)<br>
=====================<br>
<tt>T 10.10.2.24:27838 -&gt; 10.10.2.13:5060 [AP]<br>
&nbsp; INVITE <a class="moz-txt-link-freetext" href="sip:11111@10.10.2.13;transport=UDP">sip:11111@10.10.2.13;transport=UDP</a> SIP/2.0..Record-Route:
<a class="moz-txt-link-rfc2396E" href="sip:88.217.xxx.x:5060:nat=yes;ftag=4b086b07;lr=on">&lt;sip:88.217.xxx.x:5060:nat=yes;ftag=4b086b07;lr=on&gt;</a>..Via:
SIP/2.0/TCP 10.10.2.24;branch=z9hG4bK3<br>
&nbsp; e88.e9631885.0..Via: SIP/2.0/UDP
10.5.3.22:5060;received=82.135.xx.xxx;branch=z9hG4bK-d8754z-be756d81d31da419-1---d8754z-;rport=5060..Max-Forwards:
69..Contact:<br>
&nbsp; <a class="moz-txt-link-rfc2396E" href="sip:6005@82.135.xx.xxx:5060">&lt;sip:6005@82.135.xx.xxx:5060&gt;</a>..To:
<a class="moz-txt-link-rfc2396E" href="sip:11111@my.openser.de">&lt;sip:11111@my.openser.de&gt;</a>;transport=UDP..From:
"6005"<a class="moz-txt-link-rfc2396E" href="sip:6005@my.openser.de">&lt;sip:6005@my.openser.de&gt;</a>;transport=UDP;tag=4b086b07..Call-ID:
NjQxNjk3Z<br>
&nbsp; DczZDkzN2ZmMzI5MzdiNzhkMzdmZTg0YzM...CSeq: 2 INVITE..Allow: INVITE,
ACK, CANCEL, OPTIONS, BYE, NOTIFY, REFER, MESSAGE, OPTIONS,
INFO..Content-Type: application/s<br>
&nbsp; dp..User-Agent: Zoiper rev.570..Content-Length: 319..Remote-Party-ID:
8154711;party=calling;id-type=subscriber;screen=yes....v=0..o=Zoiper_user
0 0 IN IP4<br>
&nbsp; 10.5.3.22..s=Zoiper_user..c=IN IP4 10.5.3.22..t=0 0..m=audio 12000
RTP/AVP 110 98 0 3 8 101..a=rtpmap:110 speex/8000..a=rtpmap:98
iLBC/8000..a=fmtp:98 mode=30..a<br>
&nbsp; =rtpmap:0 PCMU/8000..a=rtpmap:3 GSM/8000..a=rtpmap:8
PCMA/8000..a=rtpmap:101 telephone-event/8000..a=fmtp:101
0-15..a=sendrecv..</tt><br>
<br>
the 302 message is as follows<br>
=====================<br>
In this case it answers per UPD as I explained before when OpenSER<br>
<tt>T 10.10.2.13:5060 -&gt; 10.10.2.24:27838 [AP]<br>
SIP/2.0 302 Moved Temporarily<br>
FROM: "6005"<a class="moz-txt-link-rfc2396E" href="sip:6005@my.openser.de">&lt;sip:6005@my.openser.de&gt;</a>;tag=4b086b07;transport=UDP<br>
TO: <a class="moz-txt-link-rfc2396E" href="sip:11111@my.openser.de">&lt;sip:11111@my.openser.de&gt;</a>;transport=UDP;tag=9cca2fa224<br>
CSEQ: 2 INVITE<br>
CALL-ID: NjQxNjk3ZDczZDkzN2ZmMzI5MzdiNzhkMzdmZTg0YzM<br>
MAX-FORWARDS: 70<br>
VIA: SIP/2.0/TCP 10.10.2.24;branch=z9hG4bK3e88.e9631885.0,SIP/2.0/UDP
10.5.3.22:5060;received=82.135.xx.xxx;branch=z9hG4bK-d8754z-be756d81d31da419-1---d8754z-;rport=5060<br>
CONTENT-LENGTH: 0..<br>
SERVER: RTCC/2.0.6017.0..CONTACT:
<a class="moz-txt-link-rfc2396E" href="sip:11111@10.10.2.13:5065;transport=UDP">&lt;sip:11111@10.10.2.13:5065;transport=UDP&gt;</a></tt><br>
<br>
So CONTACT: <a class="moz-txt-link-rfc2396E" href="sip:11111@10.10.2.13:5065;transport=UDP">&lt;sip:11111@10.10.2.13:5065;transport=UDP&gt;</a> refers to
UDP<br>
<br>
<br>
<br>
When I send an INVITe with add_uri_param("transport=tcp");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (UA=<tt>192.168.178.60
local, </tt><tt>217.24.xxx.xxx external</tt>)
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
<br>
=====================<br>
<tt>T 10.10.2.24:19034 -&gt; 10.10.2.13:5060 [AP]<br>
&nbsp; INVITE <a class="moz-txt-link-freetext" href="sip:11111@10.10.2.13;transport=tcp">sip:11111@10.10.2.13;transport=tcp</a> SIP/2.0..Record-Route:
<a class="moz-txt-link-rfc2396E" href="sip:88.217.xxx.x:5060:nat=yes;ftag=60263e79;lr=on">&lt;sip:88.217.xxx.x:5060:nat=yes;ftag=60263e79;lr=on&gt;</a>..Via:
SIP/2.0/TCP 10.10.2.24;branch=z9hG4bK4<br>
&nbsp; 0d3.ce138151.0..Via: SIP/2.0/UDP
192.168.178.60:5060;received=217.24.xxx.xxx;branch=z9hG4bK-d8754z-83461a97f67a9e27-1---d8754z-;rport=5060..Max-Forwards:
69..Cont<br>
&nbsp; act: <a class="moz-txt-link-rfc2396E" href="sip:6004@217.24.xxx.xxx:5060">&lt;sip:6004@217.24.xxx.xxx:5060&gt;</a>..To:
<a class="moz-txt-link-rfc2396E" href="sip:11111@my.openser.de">&lt;sip:11111@my.openser.de&gt;</a>..From:
"6004"<a class="moz-txt-link-rfc2396E" href="sip:6004@my.openser.de">&lt;sip:6004@my.openser.de&gt;</a>;transport=UDP;tag=60263e79..Call-ID:
YzZiNmJkNTQ2MjI3ZT<br>
&nbsp; c5MWQ5Yjk4N2ZkYjg0MDE0MGI...CSeq: 2 INVITE..Allow: INVITE, ACK,
CANCEL, OPTIONS, BYE, NOTIFY, REFER, MESSAGE, OPTIONS..Content-Type:
application/sdp..User-Agent:<br>
&nbsp;&nbsp; Zoiper rev.416..Content-Length: 380..Remote-Party-ID:
8154712;party=calling;id-type=subscriber;screen=yes....v=0..o=Zoiper_user
484683138 1181609789 IN IP<br>
&nbsp; 4 192.168.178.60..s=Zoiper_user..c=IN IP4 192.168.178.60..t=0
0..m=audio 12000 RTP/AVP 3 110 97 8 0 98 101..a=fmtp:97
mode=30..a=fmtp:98 mode=20..a=fmtp:101&nbsp; 0-1<br>
&nbsp; 5..a=rtpmap:3 GSM/8000..a=rtpmap:110 speex/8000..a=rtpmap:97
iLBC/8000..a=rtpmap:8 PCMA/8000..a=rtpmap:0 PCMU/8000..a=rtpmap:98
iLBC/8000..a=rtpmap:101 telephone<br>
&nbsp; -event/8000..</tt><br>
<br>
the 302 message is as follows<br>
=====================<br>
<tt>T 10.10.2.13:5060 -&gt; 10.10.2.24:19034 [AP]<br>
SIP/2.0 302 Moved Temporarily..<br>
FROM: "6004"<a class="moz-txt-link-rfc2396E" href="sip:6004@my.openser.de">&lt;sip:6004@my.openser.de&gt;</a>;tag=60263e79;transport=UDP<br>
TO: <a class="moz-txt-link-rfc2396E" href="sip:11111@my.openser.de">&lt;sip:11111@my.openser.de&gt;</a>;tag=1013625314<br>
CSEQ: 2 INVITE..<br>
CALL-ID: YzZiNmJkNTQ2MjI3ZTc5MWQ5Yjk4N2ZkYjg0MDE0MGI...<br>
MAX-FORWARDS: 70..<br>
VIA: SIP/2.0/TCP 10.10.2.24;branch=z9hG4bK40d3.ce138151.0,SIP/2.0/UDP
192.168.178.60:5060<br>
;received=217.24.xxx.xxx;branch=z9hG4bK-d8754z-83461a97f67a9e27-1---d8754z-;rport=5060..<br>
CONTENT-LENGTH: 0<br>
SERVER: RTCC/2.0.6017.0<br>
CONTACT: <a class="moz-txt-link-rfc2396E" href="sip:11111@10.10.2.13:5065;transport=tcp">&lt;sip:11111@10.10.2.13:5065;transport=tcp&gt;</a>....<br>
##</tt><br>
<br>
So CONTACT: <a class="moz-txt-link-rfc2396E" href="sip:11111@10.10.2.13:5065;transport=tcp">&lt;sip:11111@10.10.2.13:5065;transport=tcp&gt;</a> refers to
TCP<br>
<br>
But then I get an Internal Server error 500 from OpenSER<br>
<br>
<br>
=======================================================<br>
Here is the complete sequence (ngrep) for the 2nd case<br>
=======================================================<br>
<tt>U 217.24.xxx.xxx:5060 -&gt; 88.217.xxx.x:5060<br>
&nbsp; INVITE <a class="moz-txt-link-freetext" href="sip:11111@my.openser.de">sip:11111@my.openser.de</a> SIP/2.0..Via: SIP/2.0/UDP
192.168.178.60:5060;branch=z9hG4bK-d8754z-272fe27654f4653a-1---d8754z-;rport..Max-Forwards:
70..Contact<br>
&nbsp; : <a class="moz-txt-link-rfc2396E" href="sip:6004@192.168.178.60:5060">&lt;sip:6004@192.168.178.60:5060&gt;</a>..To:
<a class="moz-txt-link-rfc2396E" href="sip:11111@my.openser.de">&lt;sip:11111@my.openser.de&gt;</a>..From:
"6004"<a class="moz-txt-link-rfc2396E" href="sip:6004@my.openser.de">&lt;sip:6004@my.openser.de&gt;</a>;transport=UDP;tag=60263e79..Call-ID:
YzZiNmJkNTQ2MjI3ZTc5<br>
&nbsp; MWQ5Yjk4N2ZkYjg0MDE0MGI...CSeq: 1 INVITE..Allow: INVITE, ACK, CANCEL,
OPTIONS, BYE, NOTIFY, REFER, MESSAGE, OPTIONS..Content-Type:
application/sdp..User-Agent: Z<br>
&nbsp; oiper rev.416..Content-Length: 380....v=0..o=Zoiper_user 484683138
1181609789 IN IP4 192.168.178.60..s=Zoiper_user..c=IN IP4
192.168.178.60..t=0 0..m=audio 12000<br>
&nbsp;&nbsp; RTP/AVP 3 110 97 8 0 98 101..a=fmtp:97 mode=30..a=fmtp:98
mode=20..a=fmtp:101&nbsp; 0-15..a=rtpmap:3 GSM/8000..a=rtpmap:110
speex/8000..a=rtpmap:97 iLBC/8000..a=rtpm<br>
&nbsp; ap:8 PCMA/8000..a=rtpmap:0 PCMU/8000..a=rtpmap:98
iLBC/8000..a=rtpmap:101 telephone-event/8000..<br>
#<br>
U 88.217.xxx.x:5060 -&gt; 217.24.xxx.xxx:5060<br>
&nbsp; SIP/2.0 407 Proxy Authentication Required..Via: SIP/2.0/UDP
192.168.178.60:5060;branch=z9hG4bK-d8754z-272fe27654f4653a-1---d8754z-;rport=5060;received=217.24.11.<br>
&nbsp; 190..To:
<a class="moz-txt-link-rfc2396E" href="sip:11111@my.openser.de">&lt;sip:11111@my.openser.de&gt;</a>;tag=92ef15cda537c38acdb588058fd30c38.748e..From:
"6004"<a class="moz-txt-link-rfc2396E" href="sip:6004@my.openser.de">&lt;sip:6004@my.openser.de&gt;</a>;transport=UDP;tag=60263e79..Call-ID:
YzZiNmJ<br>
&nbsp; kNTQ2MjI3ZTc5MWQ5Yjk4N2ZkYjg0MDE0MGI...CSeq: 1
INVITE..Proxy-Authenticate: Digest realm="my.openser.de",
nonce="478e68d5f3ba3bdacad52964091fe4a632835b6c"..Serve<br>
&nbsp; r: OpenSER (1.3.0-tls (x86_64/linux))..Content-Length: 0....<br>
#<br>
U 217.24.xxx.xxx:5060 -&gt; 88.217.xxx.x:5060<br>
&nbsp; ACK <a class="moz-txt-link-freetext" href="sip:11111@my.openser.de">sip:11111@my.openser.de</a> SIP/2.0..Via: SIP/2.0/UDP
192.168.178.60:5060;branch=z9hG4bK-d8754z-272fe27654f4653a-1---d8754z-;rport..To:
&lt;<a class="moz-txt-link-freetext" href="sip:11111@my.openser.d">sip:11111@my.openser.d</a><br>
&nbsp; e&gt;;tag=92ef15cda537c38acdb588058fd30c38.748e..From:
"6004"<a class="moz-txt-link-rfc2396E" href="sip:6004@my.openser.de">&lt;sip:6004@my.openser.de&gt;</a>;transport=UDP;tag=60263e79..Call-ID:
YzZiNmJkNTQ2MjI3ZTc5MWQ5Yjk4N2ZkYjg0MDE0<br>
&nbsp; MGI...CSeq: 1 ACK..Content-Length: 0....<br>
#<br>
U 217.24.xxx.xxx:5060 -&gt; 88.217.xxx.x:5060<br>
&nbsp; INVITE <a class="moz-txt-link-freetext" href="sip:11111@my.openser.de">sip:11111@my.openser.de</a> SIP/2.0..Via: SIP/2.0/UDP
192.168.178.60:5060;branch=z9hG4bK-d8754z-83461a97f67a9e27-1---d8754z-;rport..Max-Forwards:
70..Contact<br>
&nbsp; : <a class="moz-txt-link-rfc2396E" href="sip:6004@192.168.178.60:5060">&lt;sip:6004@192.168.178.60:5060&gt;</a>..To:
<a class="moz-txt-link-rfc2396E" href="sip:11111@my.openser.de">&lt;sip:11111@my.openser.de&gt;</a>..From:
"6004"<a class="moz-txt-link-rfc2396E" href="sip:6004@my.openser.de">&lt;sip:6004@my.openser.de&gt;</a>;transport=UDP;tag=60263e79..Call-ID:
YzZiNmJkNTQ2MjI3ZTc5<br>
&nbsp; MWQ5Yjk4N2ZkYjg0MDE0MGI...CSeq: 2 INVITE..Allow: INVITE, ACK, CANCEL,
OPTIONS, BYE, NOTIFY, REFER, MESSAGE, OPTIONS..Content-Type:
application/sdp..Proxy-Authori<br>
&nbsp; zation: Digest
username="6004",realm="my.openser.de",nonce="478e68d5f3ba3bdacad52964091fe4a632835b6c",uri=<a class="moz-txt-link-rfc2396E" href="sip:11111@my.openser.de">"sip:11111@my.openser.de"</a>,response="536feade179b4eb35<br>
&nbsp; f64e1eed75cf3e8",algorithm=MD5..User-Agent: Zoiper
rev.416..Content-Length: 380....v=0..o=Zoiper_user 484683138 1181609789
IN IP4 192.168.178.60..s=Zoiper_user..<br>
&nbsp; c=IN IP4 192.168.178.60..t=0 0..m=audio 12000 RTP/AVP 3 110 97 8 0 98
101..a=fmtp:97 mode=30..a=fmtp:98 mode=20..a=fmtp:101&nbsp; 0-15..a=rtpmap:3
GSM/8000..a=rtpmap:<br>
&nbsp; 110 speex/8000..a=rtpmap:97 iLBC/8000..a=rtpmap:8
PCMA/8000..a=rtpmap:0 PCMU/8000..a=rtpmap:98 iLBC/8000..a=rtpmap:101
telephone-event/8000..<br>
#interface: eth1 (10.10.0.0/255.255.0.0)<br>
filter: (ip) and ( port 5060 )<br>
####<br>
T 10.10.2.24:19034 -&gt; 10.10.2.13:5060 [AP]<br>
&nbsp; INVITE <a class="moz-txt-link-freetext" href="sip:11111@10.10.2.13;transport=tcp">sip:11111@10.10.2.13;transport=tcp</a> SIP/2.0..Record-Route:
<a class="moz-txt-link-rfc2396E" href="sip:88.217.xxx.x:5060:nat=yes;ftag=60263e79;lr=on">&lt;sip:88.217.xxx.x:5060:nat=yes;ftag=60263e79;lr=on&gt;</a>..Via:
SIP/2.0/TCP 10.10.2.24;branch=z9hG4bK4<br>
&nbsp; 0d3.ce138151.0..Via: SIP/2.0/UDP
192.168.178.60:5060;received=217.24.xxx.xxx;branch=z9hG4bK-d8754z-83461a97f67a9e27-1---d8754z-;rport=5060..Max-Forwards:
69..Cont<br>
&nbsp; act: <a class="moz-txt-link-rfc2396E" href="sip:6004@217.24.xxx.xxx:5060">&lt;sip:6004@217.24.xxx.xxx:5060&gt;</a>..To:
<a class="moz-txt-link-rfc2396E" href="sip:11111@my.openser.de">&lt;sip:11111@my.openser.de&gt;</a>..From:
"6004"<a class="moz-txt-link-rfc2396E" href="sip:6004@my.openser.de">&lt;sip:6004@my.openser.de&gt;</a>;transport=UDP;tag=60263e79..Call-ID:
YzZiNmJkNTQ2MjI3ZT<br>
&nbsp; c5MWQ5Yjk4N2ZkYjg0MDE0MGI...CSeq: 2 INVITE..Allow: INVITE, ACK,
CANCEL, OPTIONS, BYE, NOTIFY, REFER, MESSAGE, OPTIONS..Content-Type:
application/sdp..User-Agent:<br>
&nbsp;&nbsp; Zoiper rev.416..Content-Length: 380..Remote-Party-ID:
8154712;party=calling;id-type=subscriber;screen=yes....v=0..o=Zoiper_user
484683138 1181609789 IN IP<br>
&nbsp; 4 192.168.178.60..s=Zoiper_user..c=IN IP4 192.168.178.60..t=0
0..m=audio 12000 RTP/AVP 3 110 97 8 0 98 101..a=fmtp:97
mode=30..a=fmtp:98 mode=20..a=fmtp:101&nbsp; 0-1<br>
&nbsp; 5..a=rtpmap:3 GSM/8000..a=rtpmap:110 speex/8000..a=rtpmap:97
iLBC/8000..a=rtpmap:8 PCMA/8000..a=rtpmap:0 PCMU/8000..a=rtpmap:98
iLBC/8000..a=rtpmap:101 telephone<br>
&nbsp; -event/8000..<br>
#<br>
T 10.10.2.13:5060 -&gt; 10.10.2.24:19034 [AP]<br>
&nbsp; SIP/2.0 100 Trying..FROM:
"6004"<a class="moz-txt-link-rfc2396E" href="sip:6004@my.openser.de">&lt;sip:6004@my.openser.de&gt;</a>;tag=60263e79;transport=UDP..TO:
<a class="moz-txt-link-rfc2396E" href="sip:11111@my.openser.de">&lt;sip:11111@my.openser.de&gt;</a>..CSEQ: 2 INVITE..CALL-ID:
YzZiNmJkNTQ2MjI3ZT<br>
&nbsp; c5MWQ5Yjk4N2ZkYjg0MDE0MGI...MAX-FORWARDS: 70..VIA: SIP/2.0/TCP
10.10.2.24;branch=z9hG4bK40d3.ce138151.0,SIP/2.0/UDP
192.168.178.60:5060;received=217.24.xxx.xxx;br<br>
&nbsp;
anch=z9hG4bK-d8754z-83461a97f67a9e27-1---d8754z-;rport=5060..CONTENT-LENGTH:
0....<br>
##<br>
T 10.10.2.13:5060 -&gt; 10.10.2.24:19034 [AP]<br>
&nbsp; SIP/2.0 302 Moved Temporarily..FROM:
"6004"<a class="moz-txt-link-rfc2396E" href="sip:6004@my.openser.de">&lt;sip:6004@my.openser.de&gt;</a>;tag=60263e79;transport=UDP..TO:
<a class="moz-txt-link-rfc2396E" href="sip:11111@my.openser.de">&lt;sip:11111@my.openser.de&gt;</a>;tag=1013625314..CSEQ: 2 INVITE..C<br>
&nbsp; ALL-ID: YzZiNmJkNTQ2MjI3ZTc5MWQ5Yjk4N2ZkYjg0MDE0MGI...MAX-FORWARDS:
70..VIA: SIP/2.0/TCP
10.10.2.24;branch=z9hG4bK40d3.ce138151.0,SIP/2.0/UDP 192.168.178.60:5060<br>
&nbsp;
;received=217.24.xxx.xxx;branch=z9hG4bK-d8754z-83461a97f67a9e27-1---d8754z-;rport=5060..CONTENT-LENGTH:
0..SERVER: RTCC/2.0.6017.0..CONTACT: &lt;<a class="moz-txt-link-freetext" href="sip:11111@10.10.2.13">sip:11111@10.10.2.13</a><br>
&nbsp; :5065;transport=tcp&gt;....<br>
##<br>
U 88.217.xxx.x:5060 -&gt; 217.24.xxx.xxx:5060<br>
&nbsp; SIP/2.0 100 Giving a try..Via: SIP/2.0/UDP
192.168.178.60:5060;branch=z9hG4bK-d8754z-83461a97f67a9e27-1---d8754z-;rport=5060;received=217.24.xxx.xxx..To:
&lt;<a class="moz-txt-link-freetext" href="sip:111">sip:111</a><br>
&nbsp; <a class="moz-txt-link-abbreviated" href="mailto:11@my.openser.de">11@my.openser.de</a>&gt;..From:
"6004"<a class="moz-txt-link-rfc2396E" href="sip:6004@my.openser.de">&lt;sip:6004@my.openser.de&gt;</a>;transport=UDP;tag=60263e79..Call-ID:
YzZiNmJkNTQ2MjI3ZTc5MWQ5Yjk4N2ZkYjg0MDE0MGI...CSeq: 2 INVITE..Serv<br>
&nbsp; er: OpenSER (1.3.0-tls (x86_64/linux))..Content-Length: 0....<br>
#<br>
U 88.217.xxx.x:5060 -&gt; 217.24.xxx.xxx:5060<br>
&nbsp; SIP/2.0 500 Internal Server Error..FROM:
"6004"<a class="moz-txt-link-rfc2396E" href="sip:6004@my.openser.de">&lt;sip:6004@my.openser.de&gt;</a>;tag=60263e79;transport=UDP..TO:
<a class="moz-txt-link-rfc2396E" href="sip:11111@my.openser.de">&lt;sip:11111@my.openser.de&gt;</a>;tag=78445986d6..CSEQ: 2 INVIT<br>
&nbsp; E..CALL-ID:
YzZiNmJkNTQ2MjI3ZTc5MWQ5Yjk4N2ZkYjg0MDE0MGI...MAX-FORWARDS: 70..VIA:
SIP/2.0/UDP
192.168.178.60:5060;received=217.24.xxx.xxx;branch=z9hG4bK-d8754z-834<br>
&nbsp; 61a97f67a9e27-1---d8754z-;rport=5060..CONTENT-LENGTH: 0..SERVER:
RTCC/2.0.6017.0....<br>
#<br>
T 10.10.2.24:19034 -&gt; 10.10.2.13:5060 [AP]<br>
&nbsp; ACK <a class="moz-txt-link-freetext" href="sip:11111@10.10.2.13;transport=tcp">sip:11111@10.10.2.13;transport=tcp</a> SIP/2.0..Via: SIP/2.0/TCP
10.10.2.24;branch=z9hG4bK40d3.ce138151.0..From:
"6004"<a class="moz-txt-link-rfc2396E" href="sip:6004@my.openser.de">&lt;sip:6004@my.openser.de&gt;</a>;transport=UDP;ta<br>
&nbsp; g=60263e79..Call-ID:
YzZiNmJkNTQ2MjI3ZTc5MWQ5Yjk4N2ZkYjg0MDE0MGI...TO:
<a class="moz-txt-link-rfc2396E" href="sip:11111@my.openser.de">&lt;sip:11111@my.openser.de&gt;</a>;tag=1013625314..CSeq: 2
ACK..Max-Forwards: 70..User-Agent: Open<br>
&nbsp; SER (1.3.0-tls (x86_64/linux))..Content-Length: 0....<br>
#<br>
U 217.24.xxx.xxx:5060 -&gt; 88.217.xxx.x:5060<br>
&nbsp; ACK <a class="moz-txt-link-freetext" href="sip:11111@my.openser.de">sip:11111@my.openser.de</a> SIP/2.0..Via: SIP/2.0/UDP
192.168.178.60:5060;branch=z9hG4bK-d8754z-83461a97f67a9e27-1---d8754z-;rport..To:
&lt;<a class="moz-txt-link-freetext" href="sip:11111@my.openser.d">sip:11111@my.openser.d</a><br>
&nbsp; e&gt;;tag=78445986d6..From:
"6004"<a class="moz-txt-link-rfc2396E" href="sip:6004@my.openser.de">&lt;sip:6004@my.openser.de&gt;</a>;transport=UDP;tag=60263e79..Call-ID:
YzZiNmJkNTQ2MjI3ZTc5MWQ5Yjk4N2ZkYjg0MDE0MGI...CSeq: 2 ACK..Content-<br>
&nbsp; Length: 0....<br>
</tt><br>
<br>
<br>
<br>
<br>
I&ntilde;aki Baz Castillo schrieb:
<blockquote cite="mid:200801171047.40811.ibc@in.ilimit.es" type="cite">
  <pre wrap="">On Thursday 17 January 2008 10:11:48 Peter P GMX wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">As UM requests a different port (5065) in the 302 message, I cannot use
t_relay with TCP in the failure_route. With t_relay I have to submit the
whole address like
t_relay(tcp: dest_ip:port) and I cannot always predict the port in this
case.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Could you show the received 302 from UM?

I understand that it's something as:

  SIP/2.0 302 Redirection
  ...
  Contact: <a class="moz-txt-link-rfc2396E" href="sip:other_user@10.10.2.13:5065">&lt;sip:other_user@10.10.2.13:5065&gt;</a>;transport=TCP

Is it?
  
And you say that sometime the "Contact" port is 5065 and sometimes 5060? or 
there are more possible values?
In case they are a fixed number of values you can do a very dirty trick:
  
  if ( $(ct{uri.port}) == "5065" )
    t_relay("tcp:10.10.2.13:5065"
  else if ( $(ct{uri.port}) == "5060" )
    t_relay("tcp:10.10.2.13:5060"
  



  </pre>
</blockquote>
</body>
</html>