<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><br>
</p>
<div class="moz-cite-prefix">On 07.04.19 15:40, Sergiu Pojoga wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJZsGCkQxR7gSiu27YaaqTAmZfFuXOawFQSGxA4Uzznh2R4ZPg@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">To simplify, the problem seems to come down
to the following: how do you cancel/end an early state
dialog between the caller and callee after
`fr_inv_timeout` occurs? Kam self-generates a proper
CANCEL towards the callee, while the caller gets a `408
Request Timeout' with a different To-tag.</div>
</div>
</div>
</div>
</blockquote>
<p>That's all required not to have a dialog completed, but faild.
There is no need to send a BYE or another CANCEL. The INVITE got
the 408, not 200.</p>
<p>Cheers,<br>
Daniel<br>
</p>
<blockquote type="cite"
cite="mid:CAJZsGCkQxR7gSiu27YaaqTAmZfFuXOawFQSGxA4Uzznh2R4ZPg@mail.gmail.com">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div><br>
</div>
<div>I've tried:</div>
<div>dlg_bye("all") - throws an error, non-confirmed
dialogs can't be terminated with this function<br>
</div>
<div>t_cancel_callid("$dlg(callid)", "$dlg(from_cseq)",
"22", "200") - doesn't seem to produce any action<br>
</div>
<div><br>
</div>
<div>Suggestions?</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Sat, Apr 6, 2019 at 11:25
AM Sergiu Pojoga <<a href="mailto:pojogas@gmail.com"
moz-do-not-send="true">pojogas@gmail.com</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div dir="ltr">Hi ppl,<br>
<div><br>
</div>
<div>Scenario: invite from upstream is t_relayed to a
client gateway. After `fr_inv_timeout` occurs, in a
failure route I simply t_reply with "503 - Service
unavailable", then exit(). </div>
<div><br>
</div>
<div>However, the upstream provider simply ignores this
reply, call doesn't hang up. This doesn't happen when
the client's gateway generates identical 503 or other
negative replies.</div>
<div><br>
</div>
<div>I suspect this is happening because the To-tag in the
Kam generated 503 reply doesn't match with the To-tag
that previously was forwarded from the client's gateway
to the upstream provider in the `180 Ringing`.</div>
<div><br>
</div>
<div>Any suggestions what can be done about it?</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>2019/04/06 10:42:46.127177 65.39.xxx.xxx:5060 ->
208.72.xxx.xxx:5060
</div>
<div>SIP/2.0 180 Ringing
</div>
<div>Via: SIP/2.0/UDP
208.72.xxx.xxx:5060;received=208.72.xxx.xxx;rport=5060;branch=z9hG4bK1982422573
</div>
<div>Record-Route:
<a class="moz-txt-link-rfc2396E" href="sip:65.39.xxx.xxx;lr=on;did=915.8af1"><sip:65.39.xxx.xxx;lr=on;did=915.8af1></a>
</div>
<div>From: "SERGIU"
<a class="moz-txt-link-rfc2396E" href="sip:514XXXXXXX@208.72.xxx.xxx"><sip:514XXXXXXX@208.72.xxx.xxx></a>;isup-oli=00;tag=1975755942
</div>
<div>To: <a class="moz-txt-link-rfc2396E" href="sip:514XXXXXXX@65.39.xxx.xxx"><sip:514XXXXXXX@65.39.xxx.xxx></a>;tag=<font
color="#ff0000">as2ab54180 </font>
</div>
<div>Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:DID-28270826@208.72.xxx.xx">DID-28270826@208.72.xxx.xx</a>
</div>
<div>CSeq: 477023 INVITE
</div>
<div>Supported: replaces, timer, path
</div>
<div>Contact:
<a class="moz-txt-link-rfc2396E" href="sip:1514XXXXXXX@65.39.xxx.xxx:5060"><sip:1514XXXXXXX@65.39.xxx.xxx:5060></a>
</div>
<div>Content-Length: 0
</div>
<div>
</div>
<div>
</div>
<div>2019/04/06 10:42:51.072516 65.39.xxx.xxx:5060 ->
208.72.xxx.xxx:5060
</div>
<div>SIP/2.0 503 Service Unavailable
</div>
<div>Call-ID: <a class="moz-txt-link-abbreviated" href="mailto:DID-28270826@208.72.xxx.xx">DID-28270826@208.72.xxx.xx</a>
</div>
<div>Via: SIP/2.0/UDP
208.72.xxx.xxx:5060;rport=5060;branch=z9hG4bK1982422573;received=208.72.xxx.xxx
</div>
<div>From: "SERGIU"
<a class="moz-txt-link-rfc2396E" href="sip:514XXXXXXX@208.72.xxx.xxx"><sip:514XXXXXXX@208.72.xxx.xxx></a>;isup-oli=00;tag=1975755942
</div>
<div>To: <a class="moz-txt-link-rfc2396E" href="sip:514XXXXXXX@65.39.xxx.xxx"><sip:514XXXXXXX@65.39.xxx.xxx></a>;tag=<font
color="#ff0000">a6a1c5f60faecf035a1ae5b6e96e979a-8e82</font>
</div>
<div>CSeq: 477023 INVITE
</div>
<div>Server: KAM
</div>
<div>Content-Length: 0 </div>
</div>
<div><br>
</div>
<div>Thanks,</div>
<div>--Sergiu</div>
</div>
</div>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</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>
Kamailio World Conference - May 6-8, 2019 -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
</body>
</html>