<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>I am not sure what variant you want to advocate with this
message/excerpt from RFC, but it is about "forwarded response to a
**request that contains a To tag**", and the request (the initial
INVITE) has no To tag.</p>
<p>For replies corresponding to requests within dialog, the to-tag
has to be preserved and I think kamailio does it even if it has to
generate a reply (e.g., timeout on re-INVITE routing).</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 23.07.20 14:53, Henning Westerholt
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:AM0PR05MB65950EE620ACBD00A97FE0B3C5760@AM0PR05MB6595.eurprd05.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
h2
{mso-style-priority:9;
mso-style-link:"Überschrift 2 Zchn";
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:18.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:Consolas;}
span.berschrift2Zchn
{mso-style-name:"Überschrift 2 Zchn";
mso-style-priority:9;
mso-style-link:"Überschrift 2";
font-family:"Calibri Light",sans-serif;
color:#2F5496;}
span.E-MailFormatvorlage21
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-GB">just to add to the RFC quoted below: this is
referring to 1xx or 2xx responses. But later on, in the
section, the RFC seems to be quite clear:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-GB"> If the only<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-GB"> response that was received is a 503,
the proxy SHOULD generate<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-GB"> a 500 response and forward that
upstream.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-GB"><o:p> </o:p></span></p>
<pre><span lang="EN-GB"> A proxy MUST NOT modify the To tag in any forwarded response to<o:p></o:p></span></pre>
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Courier New""
lang="EN-GB"> a request that contains a To tag.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-GB">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-GB">Henning<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"
lang="EN-GB"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-left:35.4pt"><b><span
lang="EN-GB">From:</span></b><span lang="EN-GB">
sr-users <a class="moz-txt-link-rfc2396E" href="mailto:sr-users-bounces@lists.kamailio.org"><sr-users-bounces@lists.kamailio.org></a>
<b>On Behalf Of </b>Gerry | Rigatta<br>
<b>Sent:</b> Thursday, July 23, 2020 2:41 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:miconda@gmail.com">miconda@gmail.com</a><br>
<b>Cc:</b> Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-rfc2396E" href="mailto:sr-users@lists.kamailio.org"><sr-users@lists.kamailio.org></a><br>
<b>Subject:</b> Re: [SR-Users] bug ? remap_503_500
breaks dialogs<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><span
lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-left:35.4pt">Hi Daniel,<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">thanks for
looking into this.<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">The initial
INVITE does not have a to-tag but there is an intermediate
session progress with a to-tag. See grep below.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">The RFC does
not distinguish between established or provisional dialogs
when it comes to the handling of the to-tags. If there is
a to-tag it must not be changed by the Proxy. Clearly that
must be so because the to-tag is used by the UAC to
identify the call. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">Best Gerry<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">IP addresses
are changed in below dialog for security reasons<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">U
7.7.23.109:5060 -> 11.22.17.24:5060 #5<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> INVITE <a
href="sip:111100791456321475@13.23.9.94:5060"
moz-do-not-send="true">
sip:111100791456321475@13.23.9.94:5060</a>
SIP/2.0..Max-Forwards: 19.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
.P-Asserted-Identity: <a href="tel:+4867777777..Via:"
moz-do-not-send="true">
tel:+4867777777..Via:</a> SIP/2.0/UDP 7.7.23.109:5060<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
;rport;branch=z9hG4bK1682611991..From: "004867777777"
<<a href="sip:004867777777@7" moz-do-not-send="true">sip:004867777777@7</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
8.47.203.109>;tag=540342132..To: <<a
href="sip:111100791456321475@13.23.9.94:5060"
moz-do-not-send="true">sip:111100791456321475@13.23.9.94:5060</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
>..Call-ID: <a href="mailto:1279305029@7.7.23.109"
moz-do-not-send="true">
1279305029@7.7.23.109</a>..CSeq: 1 INVITE..User-Agent:
nulltech.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
.Contact: <<a href="sip:004867777777@7.7.23.109:5060"
moz-do-not-send="true">sip:004867777777@7.7.23.109:5060</a>>..Allow:
ACK, INVITE, BYE, <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> CANCEL,
REGISTER, REFER, OPTIONS, PRACK, INFO..Supported:
100rel..Content-T<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> ype:
application/sdp..Content-Length: 209....v=0..o=yate
1595505273 1595505<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> 273 IN
IP4 7.7.23.109..s=SIP Call..c=IN IP4 7.7.23.109..t=0
0..m=audi<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> o 28610
RTP/AVP 8 0 101..a=rtpmap:8 PCMA/8000..a=rtpmap:0
PCMU/8000..a=rtpm<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> ap:101
telephone-event/8000..
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">#<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">U
11.22.17.24:5060 -> 7.7.23.109:5060 #6<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> SIP/2.0
100 trying -- your call is important to us..Via:
SIP/2.0/UDP 78.47.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
203.109:5060;rport=5061;branch=z9hG4bK1682611991;received=7.7.23.109..Fr<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> om:
"004867777777" <<a href="sip:004867777777@7.7.23.109"
moz-do-not-send="true">sip:004867777777@7.7.23.109</a>>;tag=540342132..To:
<s<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> ip:<a
href="mailto:111100791456321475@13.23.9.94"
moz-do-not-send="true">111100791456321475@13.23.9.94</a>:5060>..Call-ID:
<a href="mailto:1279305029@7.7.23.10"
moz-do-not-send="true">1279305029@7.7.23.10</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> 9..CSeq:
1 INVITE..Server: kamailio (5.2.3
(x86_64/linux))..Content-Length:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> 0....
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">#<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">U
11.22.17.24:5060 -> 13.23.9.94:5060 #7<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> INVITE <a
href="sip:111100791456321475@13.23.9.94:5060"
moz-do-not-send="true">
sip:111100791456321475@13.23.9.94:5060</a>
SIP/2.0..Record-Route: <si<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
p:11.22.17.24:5060;lr=on>..Max-Forwards:
18..P-Asserted-Identity:
<a href="tel:+" moz-do-not-send="true">tel:+</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
4867777777..Via: SIP/2.0/UDP
11.22.17.24:5060;branch=z9hG4bK58d4.f1e37<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
b7feb047b6707c5fb8a298d36fc.0..Via: SIP/2.0/UDP
7.7.23.109:5060;received<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
=7.7.23.109;rport=5061;branch=z9hG4bK1682611991..From:
"004867777777" <<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <a
href="sip:004867777777@7.7.23.109"
moz-do-not-send="true">
sip:004867777777@7.7.23.109</a>>;tag=540342132..To:
<<a href="sip:111100791456321475"
moz-do-not-send="true">sip:111100791456321475</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
@13.23.9.94:5060>..Call-ID: <a
href="mailto:1279305029@7.7.23.109"
moz-do-not-send="true">
1279305029@7.7.23.109</a>..CSeq: 1 INVITE..Us<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
er-Agent: nulltech..Contact: <<a
href="sip:004867777777@7.7.23.109:5060"
moz-do-not-send="true">sip:004867777777@7.7.23.109:5060</a>>..Allow:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> ACK,
INVITE, BYE, CANCEL, REGISTER, REFER, OPTIONS, PRACK,
INFO..Supported<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> :
100rel..Content-Type: application/sdp..Content-Length:
209....v=0..o=yate<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
1595505273 1595505273 IN IP4 7.7.23.109..s=SIP
Call..c=IN IP4 7.7.23<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
.109..t=0 0..m=audio 28610 RTP/AVP 8 0 101..a=rtpmap:8
PCMA/8000..a=rtpmap:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> 0
PCMU/8000..a=rtpmap:101 telephone-event/8000..
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">#<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">U
13.23.9.94:5060 -> 11.22.17.24:5060 #8<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> SIP/2.0
100 Trying..Via: SIP/2.0/UDP
11.22.17.24:5060;branch=z9hG4bK58d<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
4.f1e37b7feb047b6707c5fb8a298d36fc.0;received=11.22.17.24..Via:
SIP/2.0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> /UDP
7.7.23.109:5060;received=7.7.23.109;rport=5061;branch=z9hG4bK168<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
2611991..Record-Route: <<a
href="sip:11.22.17.24:5060;lr=on"
moz-do-not-send="true">sip:11.22.17.24:5060;lr=on</a>>..From:
"00371673360<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> 58" <<a
href="sip:004867777777@7.7.23.109"
moz-do-not-send="true">sip:004867777777@7.7.23.109</a>>;tag=540342132..To:
<<a href="sip:1111007914563" moz-do-not-send="true">sip:1111007914563</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <a
href="mailto:21475@13.23.9.94" moz-do-not-send="true">
21475@13.23.9.94</a>:5060>..Call-ID: <a
href="mailto:1279305029@7.7.23.109"
moz-do-not-send="true">1279305029@7.7.23.109</a>..CSeq:
1 INVIT<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
E..User-Agent: Ravetel SIP proxy..Allow: INVITE, ACK,
CANCEL, OPTIONS, BYE,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> REFER,
SUBSCRIBE, NOTIFY, INFO..Supported: replaces..Contact:
<<a href="sip:1111007" moz-do-not-send="true">sip:1111007</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <a
href="mailto:91456321475@13.23.9.94"
moz-do-not-send="true">
91456321475@13.23.9.94</a>:5060>..Content-Length:
0.... <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">#<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">U
13.23.9.94:5060 -> 11.22.17.24:5060 #9<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> SIP/2.0
183 Session Progress..Via: SIP/2.0/UDP
11.22.17.24:5060;branch=<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
z9hG4bK58d4.f1e37b7feb047b6707c5fb8a298d36fc.0;received=11.22.17.24..Vi<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> a:
SIP/2.0/UDP
7.7.23.109:5060;received=7.7.23.109;rport=5061;branch=<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
z9hG4bK1682611991..Record-Route: <<a
href="sip:11.22.17.24:5060;lr=on"
moz-do-not-send="true">sip:11.22.17.24:5060;lr=on</a>>..From:
"0<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
04867777777" <<a href="sip:004867777777@7.7.23.109"
moz-do-not-send="true">sip:004867777777@7.7.23.109</a>>;tag=540342132..To:
<<a href="sip:103" moz-do-not-send="true">sip:103</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <a
href="mailto:000791456321475@13.23.9.94"
moz-do-not-send="true">
000791456321475@13.23.9.94</a>:5060>;tag=as6d86b4e8..Call-ID:
1279305029@78.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
47.203.109..CSeq: 1 INVITE..User-Agent: Ravetel SIP
proxy..Allow: INVITE, A<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> CK,
CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY,
INFO..Supported: replac<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
es..Contact: <<a
href="sip:111100791456321475@13.23.9.94:5060"
moz-do-not-send="true">sip:111100791456321475@13.23.9.94:5060</a>>..Content-Type:
app<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
lication/sdp..Content-Length: 235....v=0..o=root 714 714
IN IP4 136.243.29.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
94..s=session..c=IN IP4 13.23.9.94..t=0 0..m=audio 10454
RTP/AVP 8 0 101<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
..a=rtpmap:8 PCMA/8000..a=rtpmap:0
PCMU/8000..a=rtpmap:101 telephone-event/<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
8000..a=fmtp:101 0-16..a=ptime:20..a=sendrecv..
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">#<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">U
11.22.17.24:5060 -> 7.7.23.109:5060 #10<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> SIP/2.0
183 Session Progress..Via: SIP/2.0/UDP
7.7.23.109:5060;received=<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
7.7.23.109;rport=5061;branch=z9hG4bK1682611991..Record-Route:
<<a href="sip:116.2" moz-do-not-send="true">sip:116.2</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
02.187.204:5060;lr=on>..From: "004867777777" <<a
href="sip:004867777777@7.7.23" moz-do-not-send="true">sip:004867777777@7.7.23</a>.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
109>;tag=540342132..To: <<a
href="sip:111100791456321475@13.23.9.94:5060"
moz-do-not-send="true">sip:111100791456321475@13.23.9.94:5060</a>>;tag=as6<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
d86b4e8..Call-ID: <a
href="mailto:1279305029@7.7.23.109"
moz-do-not-send="true">
1279305029@7.7.23.109</a>..CSeq: 1 INVITE..User-Agent:
Ravet<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">el SIP
proxy..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
SUBSCRIBE,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> NOTIFY,
INFO..Supported: replaces..Contact: <<a
href="sip:111100791456321475@136.24"
moz-do-not-send="true">sip:111100791456321475@136.24</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
3.29.94:5060>..Content-Type:
application/sdp..Content-Length: 235....v=0..o<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> =root
714 714 IN IP4 13.23.9.94..s=session..c=IN IP4
13.23.9.94..t=0 <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
0..m=audio 10454 RTP/AVP 8 0 101..a=rtpmap:8
PCMA/8000..a=rtpmap:0 PCMU/800<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
0..a=rtpmap:101 telephone-event/8000..a=fmtp:101
0-16..a=ptime:20..a=sendre<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> cv..
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">#<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">U
13.23.9.94:5060 -> 11.22.17.24:5060 #39<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> SIP/2.0
503 Service Unavailable..Via: SIP/2.0/UDP
11.22.17.24:5060;bran<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
ch=z9hG4bK58d4.f1e37b7feb047b6707c5fb8a298d36fc.0;received=11.22.17.24.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> .Via:
SIP/2.0/UDP
7.7.23.109:5060;received=7.7.23.109;rport=5061;bran<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
ch=z9hG4bK1682611991..From: "004867777777" <<a
href="sip:004867777777@7.7.23.10"
moz-do-not-send="true">sip:004867777777@7.7.23.10</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
9>;tag=540342132..To: <<a
href="sip:111100791456321475@13.23.9.94:5060"
moz-do-not-send="true">sip:111100791456321475@13.23.9.94:5060</a>>;tag=as6d8<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
6b4e8..Call-ID: <a href="mailto:1279305029@7.7.23.109"
moz-do-not-send="true">
1279305029@7.7.23.109</a>..CSeq: 1 INVITE..User-Agent:
Ravet<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> el SIP
proxy..Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER,
SUBSCRIBE, N<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> OTIFY,
INFO..Supported: replaces..X-Asterisk-HangupCause: Call
Rejected..X-<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
Asterisk-HangupCauseCode: 21..Content-Length: 0....
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">#<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">U
11.22.17.24:5060 -> 13.23.9.94:5060 #40<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> ACK <a
href="sip:111100791456321475@13.23.9.94:5060"
moz-do-not-send="true">
sip:111100791456321475@13.23.9.94:5060</a>
SIP/2.0..Max-Forwards: 18..Vi<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> a:
SIP/2.0/UDP
11.22.17.24:5060;branch=z9hG4bK58d4.f1e37b7feb047b6707c5<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
fb8a298d36fc.0..From: "004867777777" <<a
href="sip:004867777777@7.7.23.109"
moz-do-not-send="true">sip:004867777777@7.7.23.109</a>>;tag<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
=540342132..To: <<a
href="sip:111100791456321475@13.23.9.94:5060"
moz-do-not-send="true">sip:111100791456321475@13.23.9.94:5060</a>>;tag=as6d86b4e8.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
.Call-ID: <a href="mailto:1279305029@7.7.23.109"
moz-do-not-send="true">
1279305029@7.7.23.109</a>..CSeq: 1
ACK..Content-Length: 0.... <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">#<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">U
11.22.17.24:5060 -> 7.7.23.109:5060 #41<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> SIP/2.0
500 Service Unavailable..Via: SIP/2.0/UDP
7.7.23.109:5060;rport=<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
5061;branch=z9hG4bK1682611991;received=7.7.23.109..From:
"004867777777"<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <<a
href="sip:004867777777@7.7.23.109"
moz-do-not-send="true">sip:004867777777@7.7.23.109</a>>;tag=540342132..To:
<<a href="sip:1111007914563214"
moz-do-not-send="true">sip:1111007914563214</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <a
href="mailto:75@13.23.9.94" moz-do-not-send="true">
75@13.23.9.94</a>:5060>;tag=95329101123423eab1637e9ad490b3a6-9d3c..Call-ID: <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <a
href="mailto:1279305029@7.7.23.109"
moz-do-not-send="true">
1279305029@7.7.23.109</a>..CSeq: 1 INVITE..Server:
kamailio (5.2.3 (x86_64/l<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
inux))..Content-Length: 0....
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">#<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">U
11.22.17.24:5060 -> 7.7.23.109:5060 #42<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> SIP/2.0
500 Service Unavailable..Via: SIP/2.0/UDP
7.7.23.109:5060;rport=<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
5061;branch=z9hG4bK1682611991;received=7.7.23.109..From:
"004867777777"<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <<a
href="sip:004867777777@7.7.23.109"
moz-do-not-send="true">sip:004867777777@7.7.23.109</a>>;tag=540342132..To:
<<a href="sip:1111007914563214"
moz-do-not-send="true">sip:1111007914563214</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <a
href="mailto:75@13.23.9.94" moz-do-not-send="true">
75@13.23.9.94</a>:5060>;tag=95329101123423eab1637e9ad490b3a6-9d3c..Call-ID: <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"> <a
href="mailto:1279305029@7.7.23.109"
moz-do-not-send="true">
1279305029@7.7.23.109</a>..CSeq: 1 INVITE..Server:
kamailio (5.2.3 (x86_64/l<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">
inux))..Content-Length: 0....
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">#<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="margin-left:35.4pt">On 23
Jul 2020, at 10:51, Daniel-Constantin Mierla <<a
href="mailto:miconda@gmail.com"
moz-do-not-send="true">miconda@gmail.com</a>>
wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt">Did
the initial INVITE received the 200ok, the call is
connected and this is the case of a re-INVITE? In
such case the dialog has to be terminated by a
BYE.<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt">If
the call is not established, so it is between
initial INVITE and no 200ok was received, then the
INVITE request did not contain the To-tag. And
what is done by Kamailio is valid as per email
responses so far.<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt">Maybe
you can just send the ngrep output with all sip
requests/replies for this case and we can see
exactly which scenario you talk about.<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt">Cheers,<br>
Daniel<o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">On
23.07.20 09:41, Gerry | Rigatta wrote:<o:p></o:p></p>
</div>
<blockquote
style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<blockquote
style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt">Indeed,
at this stage there is no dialog
established and there can be many To-tags
in 1xx provisional responses (eg, a
parallel forking scenario) -- the to-tag
of the dialog has to be taken from 200ok.<o:p></o:p></p>
</div>
</blockquote>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">As
far as I read this is not correct. Also a
provisional dialog is a dialog according to
RFC3261. Only in the case that the request did
not contain a to-tag the provisional messages
may insert their own to-tags:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<pre style="margin-left:35.4pt">"1xx and 2xx responses may be involved in the establishment of<o:p></o:p></pre>
<pre style="margin-left:35.4pt"> dialogs. When a request does not contain a To tag, the To tag<o:p></o:p></pre>
<pre style="margin-left:35.4pt"> in the response is used by the UAC to distinguish multiple<o:p></o:p></pre>
<pre style="margin-left:35.4pt"> responses to a dialog creating request. A proxy MUST NOT<o:p></o:p></pre>
<pre style="margin-left:35.4pt"> insert a tag into the To header field of a 1xx or 2xx response<o:p></o:p></pre>
<pre style="margin-left:35.4pt"> if the request did not contain one. A proxy MUST NOT modify<o:p></o:p></pre>
<pre style="margin-left:35.4pt"> the tag in the To header field of a 1xx or 2xx response.”<o:p></o:p></pre>
<pre style="margin-left:35.4pt"><a href="https://tools.ietf.org/html/rfc3261#page-111" moz-do-not-send="true">https://tools.ietf.org/html/rfc3261#page-111</a><o:p></o:p></pre>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt">In
any case, this bug is not a about provisional
messages. The 500 message terminates the
dialog for the UAC (yate) and the UAC needs to
be able to identify it. An UAC identifies the
dialog by the call-id, local tag and remote
tag.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<blockquote
style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<blockquote
style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<blockquote
style="border:none;border-left:solid
#CCCCCC 1.0pt;padding:0cm 0cm 0cm
6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<div>
<div>
<h2
style="margin-left:70.8pt"><a
href="https://tools.ietf.org/html/rfc3261#section-12" target="_blank"
moz-do-not-send="true"><span
style="font-family:"Arial",sans-serif">12</span></a><span
style="font-family:"Arial",sans-serif"> Dialogs</span><o:p></o:p></h2>
<h2
style="margin-left:70.8pt"><span
style="font-family:"Arial",sans-serif">A dialog is identified
at each UA with a dialog
ID, which consists of a
Call-ID value, a local
tag and a remote tag…"</span><o:p></o:p></h2>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
<div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><br>
<br>
<o:p></o:p></p>
<blockquote
style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"
style="margin-left:35.4pt">On 23 Jul
2020, at 10:07, Daniel-Constantin Mierla
<<a href="mailto:miconda@gmail.com"
moz-do-not-send="true">miconda@gmail.com</a>>
wrote:<o:p></o:p></p>
</div>
<p class="MsoNormal"
style="margin-left:35.4pt"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt">Indeed,
at this stage there is no dialog
established and there can be many
To-tags in 1xx provisional responses
(eg, a parallel forking scenario) --
the to-tag of the dialog has to be
taken from 200ok.<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt">This
parameter is probably to have a
shortcut of doing:<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt">failure_route[REMAP503]
{<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt">
if(t_check_status("503")) {<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt">
t_reply("500", "Server error");<br>
exit;<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt">}<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt">Being
like the server application is
generating the 500 (so using own tag),
instead of forwarding the 503. Not a
bug, but if anyone is willing to add
an option to allow re-using the to-tag
from received reply, I am fine with
it.<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt">Anyhow,
even if this would be fixed, I am
wondering how yate is going to work in
parallel/serial forking scenarios
where different to-tags flow for a
while and the final failure response
can have any to-tag, including a new
one (e.g., from a device not sending
any 1xx or again from kamailio (e.g.,
when last target doesn't reply at
all)).<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt">Cheers,<br>
Daniel<o:p></o:p></p>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt">On
23.07.20 06:08, M S wrote:<o:p></o:p></p>
</div>
<blockquote
style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt">The
SIP code 503 is tricky in the
sense that i can indicate either
server maintenance or server
overload. In both cases it can
send Retry-After header and any
subsequent requests from same
source are ignored for the
duration of Retry-After
interval. [1].<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt">Additionally
RFC3261 and RFC3263 define that
transport failures (generally due
to fatal ICMP errors in UDP and
connection failures in TCP) should
be treated as 503 response. [2].<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt">So in
all above cases, it is most likely
that dialog does not establishes
at all and 503 response is treated
similar to stateless response.
Therefore, a to-tag can be
added/replaced before sending it
to UAC.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt">Theoretically,
kamailio should check and use
to-tag from 503 response when
converting it to 500 response and
only create new to-tag if it is
absent.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt">References:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt">[1] <a
href="https://tools.ietf.org/html/rfc3261#section-21.5.4"
moz-do-not-send="true">
https://tools.ietf.org/html/rfc3261#section-21.5.4</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt">[2] <a
href="https://tools.ietf.org/html/draft-hilt-sip-correction-503-01#section-4"
moz-do-not-send="true">
https://tools.ietf.org/html/draft-hilt-sip-correction-503-01#section-4</a><o:p></o:p></p>
</div>
<p class="MsoNormal"
style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt">Hope
this helps.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt">On
Wed, 22 Jul 2020 at 21:08,
Henning Westerholt <<a
href="mailto:hw@skalatan.de"
moz-do-not-send="true">hw@skalatan.de</a>>
wrote:<o:p></o:p></p>
</div>
<blockquote
style="border:none;border-left:solid
#CCCCCC 1.0pt;padding:0cm 0cm
0cm
6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt">Hello,<o:p></o:p></p>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"> <o:p></o:p></p>
</div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt"><span
lang="EN-GB">Apparently,
this is the way the code
works:</span><o:p></o:p></p>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><span
lang="EN-GB"> </span><o:p></o:p></p>
</div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt"><span
lang="EN-GB">t_reply.c:</span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt"><span
lang="EN-GB">
if (relayed_code==503
&&
tm_remap_503_500){</span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt"><span
lang="EN-GB">
/* replace a final 503
with a 500:</span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt"><span
lang="EN-GB">
*
generate a "FAKE" reply
and a new to_tag (for
easier</span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt"><span
lang="EN-GB">
* debugging)*/</span><o:p></o:p></p>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><span
lang="EN-GB"> </span><o:p></o:p></p>
</div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt"><span
lang="EN-GB">Lets see if
maybe others can comment
as well. Otherwise you
could just open an issue
on our tracker, it is
probably not that hard
to change this.</span><o:p></o:p></p>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><span
lang="EN-GB"> </span><o:p></o:p></p>
</div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt"><span
lang="EN-GB">Cheers,</span><o:p></o:p></p>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><span
lang="EN-GB"> </span><o:p></o:p></p>
</div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt"><span
lang="EN-GB">Henning</span><o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><span
lang="EN-GB"> </span><o:p></o:p></p>
</div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt"><span
lang="EN-GB">-- </span><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt"><span
lang="EN-GB">Henning
Westerholt – </span><a
href="https://skalatan.de/blog/" target="_blank" moz-do-not-send="true"><span
style="color:#0563C1" lang="EN-GB">https://skalatan.de/blog/</span></a><o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:35.4pt"><span
lang="EN-GB">Kamailio
services – </span><a
href="https://gilawa.com/" target="_blank" moz-do-not-send="true"><span
style="color:#0563C1" lang="EN-GB">https://gilawa.com</span></a>
<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"
style="margin-left:35.4pt"><span
lang="EN-GB"> </span><o:p></o:p></p>
</div>
<div>
<div
style="border:none;border-top:solid
#E1E1E1
1.0pt;padding:3.0pt 0cm
0cm 0cm">
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:70.8pt"><b>From:</b>
sr-users <<a
href="mailto:sr-users-bounces@lists.kamailio.org"
target="_blank"
moz-do-not-send="true">sr-users-bounces@lists.kamailio.org</a>>
<b>On Behalf Of </b>Gerry
| Rigatta<br>
<b>Sent:</b>
Wednesday, July 22,
2020 8:58 PM<br>
<b>To:</b> Kamailio
(SER) - Users Mailing
List <<a
href="mailto:sr-users@lists.kamailio.org"
target="_blank"
moz-do-not-send="true">sr-users@lists.kamailio.org</a>><br>
<b>Subject:</b>
[SR-Users] bug ?
remap_503_500 breaks
dialogs<o:p></o:p></p>
</div>
</div>
<div
style="margin-left:35.4pt">
<p class="MsoNormal"
style="margin-left:35.4pt"> <o:p></o:p></p>
</div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:70.8pt">Hi,<o:p></o:p></p>
<div>
<div
style="margin-left:35.4pt">
<p class="MsoNormal"
style="margin-left:35.4pt"> <o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:70.8pt">I
am using Kamailio 5.2. <o:p></o:p></p>
</div>
<div>
<div
style="margin-left:35.4pt">
<p class="MsoNormal"
style="margin-left:35.4pt"> <o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:70.8pt">Apparently
the remapping of 503 to
500 codes in the tm
module does also change
the to-tag. This
behaviour breaks dialogs
with yate and therefore
calls hang and the 503
remains unacknowledged.
After disabling the 503
to 500 remapping with
modparam("tm",
"remap_503_500", 0) all
works fine again.<o:p></o:p></p>
</div>
<div>
<div
style="margin-left:35.4pt">
<p class="MsoNormal"
style="margin-left:35.4pt"> <o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:70.8pt">Changing
the to-tag in a dialog
seems to contradict
RFC3261, or do I see
this wrongly?<o:p></o:p></p>
</div>
<div>
<h2
style="margin-left:70.8pt"><a
name="m_-5300728039720019352_section-12" moz-do-not-send="true"></a><a
href="https://tools.ietf.org/html/rfc3261#section-12"
target="_blank"
moz-do-not-send="true"><span
style="font-family:"Arial",sans-serif">12</span></a><span
style="font-family:"Arial",sans-serif">
Dialogs</span><o:p></o:p></h2>
<h2
style="margin-left:70.8pt"><span
style="font-family:"Arial",sans-serif">A dialog is identified
at each UA with a
dialog ID, which
consists of a Call-ID
value, a local tag and
a remote tag…"</span><o:p></o:p></h2>
</div>
<div>
<div
style="margin-left:35.4pt">
<p class="MsoNormal"
style="margin-left:35.4pt"> <o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:70.8pt">Thanks
for looking into this.<o:p></o:p></p>
</div>
<div>
<div
style="margin-left:35.4pt">
<p class="MsoNormal"
style="margin-left:35.4pt"> <o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;margin-left:70.8pt">Gerry<o:p></o:p></p>
</div>
<div>
<div
style="margin-left:35.4pt">
<p class="MsoNormal"
style="margin-left:35.4pt"> <o:p></o:p></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"
style="margin-left:35.4pt">_______________________________________________<br>
Kamailio (SER) - Users Mailing
List<br>
<a
href="mailto:sr-users@lists.kamailio.org"
target="_blank"
moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
<a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
target="_blank"
moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></p>
</blockquote>
</div>
</div>
<p class="MsoNormal"
style="margin-left:35.4pt"><br>
<br>
<o:p></o:p></p>
<pre style="margin-left:35.4pt">_______________________________________________<o:p></o:p></pre>
<pre style="margin-left:35.4pt">Kamailio (SER) - Users Mailing List<o:p></o:p></pre>
<pre style="margin-left:35.4pt"><a href="mailto:sr-users@lists.kamailio.org" moz-do-not-send="true">sr-users@lists.kamailio.org</a><o:p></o:p></pre>
<pre style="margin-left:35.4pt"><a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre>
</blockquote>
<pre style="margin-left:35.4pt">-- <o:p></o:p></pre>
<pre style="margin-left:35.4pt">Daniel-Constantin Mierla -- <a href="http://www.asipto.com/" moz-do-not-send="true">www.asipto.com</a><o:p></o:p></pre>
<pre style="margin-left:35.4pt"><a href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a><o:p></o:p></pre>
<pre style="margin-left:35.4pt">Funding: <a href="https://www.paypal.me/dcmierla" moz-do-not-send="true">https://www.paypal.me/dcmierla</a><o:p></o:p></pre>
</div>
<p class="MsoNormal"
style="margin-left:35.4pt">_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a
href="mailto:sr-users@lists.kamailio.org"
moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
<a
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
</blockquote>
<pre style="margin-left:35.4pt">-- <o:p></o:p></pre>
<pre style="margin-left:35.4pt">Daniel-Constantin Mierla -- <a href="http://www.asipto.com/" moz-do-not-send="true">www.asipto.com</a><o:p></o:p></pre>
<pre style="margin-left:35.4pt"><a href="http://www.twitter.com/miconda" moz-do-not-send="true">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" moz-do-not-send="true">www.linkedin.com/in/miconda</a><o:p></o:p></pre>
<pre style="margin-left:35.4pt">Funding: <a href="https://www.paypal.me/dcmierla" moz-do-not-send="true">https://www.paypal.me/dcmierla</a><o:p></o:p></pre>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="margin-left:35.4pt"><o:p> </o:p></p>
</div>
</div>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Funding: <a class="moz-txt-link-freetext" href="https://www.paypal.me/dcmierla">https://www.paypal.me/dcmierla</a></pre>
</body>
</html>