<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Thank Daniel.<br>
<br>
Using htable as you suggested I was able to match incoming 200OK
with <br>
the suspended transactions in main 'reply_route' and drop the
unwanted one.<br>
<br>
Cheers,<br>
Marco<br>
<br>
</tt><br>
<div class="moz-cite-prefix">On 3/13/19 4:50 PM, Daniel-Constantin
Mierla wrote:<br>
</div>
<blockquote type="cite"
cite="mid:1870437e-8056-3ba1-60a9-5ab4c751117e@gmail.com">
<pre class="moz-quote-pre" wrap="">Hello,
htable can be (almost) always a rescue option -- define one with
auto-expire value set to the transaction lifetime, when you know that
next responses should be dropped, then add an item in the htable with
callid as a key (eventually callid+cseq). When you get a response, check
if you have the item in htable and drop it.
Cheers,
Daniel
On 12.03.19 16:15, Marco Capetta wrote:
</pre>
<blockquote type="cite">
<pre class="moz-quote-pre" wrap="">Hi All,
I started playing with async kamailio feature, in particular using
"async_route" function provided by ASYNC module
(<a class="moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/5.1.x/modules/async.html#async.f.async_route">https://www.kamailio.org/docs/modules/5.1.x/modules/async.html#async.f.async_route</a>).
My scenario is the following:
- A calls B
- B answer the call
- inside onreply_route[reply] I catch the 200OK message and I suspend
the transaction for X seconds.
- after X seconds the transaction is resumed and the call continues
as expected
Everything looks good, but I encountered an issue trying to drop reply
re-transmission messages.
My desire is to drop all the messages received from B (basically 200OK
re-transmissions) meanwhile the transaction is suspended.
I tested "t_is_retr_async_reply" function provided by TM module
(<a class="moz-txt-link-freetext" href="https://www.kamailio.org/docs/modules/5.1.x/modules/tm.html#tm.f.t_is_retr_async_reply">https://www.kamailio.org/docs/modules/5.1.x/modules/tm.html#tm.f.t_is_retr_async_reply</a>),
but I'm not able to get it worked as expected:
- t_is_retr_async_reply() function can be used only inside named
'onreply_route' (no default 'onreply_route' or standard 'reply_route')
- drop() function, on the contrary, doesn't allow to drop 200OK
messages inside named 'onreply_route' (but only in default
'onreply_route' or standard 'reply_route').
Do you have any suggestion on how I can achieve my task?
Thank you very much for your support.
Marco
_______________________________________________
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-quote-pre" wrap="">
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<div style="line-height:16px; margin:6px 0; padding:8px 8px 8px
8px; border-top:1px #aeb1a6 dotted; border-bottom:1px #aeb1a6
dotted; font-family: 'Lucida Sans', Lucida Grande, Verdana,
Arial, Sans-Serif; font-size:11px; color:#555555;"> <strong
style="color:#333333; text-transform:uppercase;
font-size:10px;"> Marco Capetta </strong> <br>
VoIP Developer
<p> <a href="http://www.sipwise.com" style="color:rgb(0, 136,
204) !important; text-decoration:none !important;
border-bottom:1px dotted #AAA;"> Sipwise GmbH </a> , Campus
21/Europaring F15<br>
AT-2345 Brunn am Gebirge </p>
<p> Phone: <a href="tel:+4313012044" style="color:rgb(0, 136,
204) !important; text-decoration:none !important;
border-bottom:1px dotted #AAA;"> +43(0)1 301 2044 </a> <br>
Email: <a href="mailto:mcapetta@sipwise.com"
style="color:rgb(0, 136, 204) !important;
text-decoration:none !important; border-bottom:1px dotted
#AAA;"> mcapetta@sipwise.com </a> <br>
Website: <a href="http://www.sipwise.com"
style="color:rgb(0, 136, 204) !important;
text-decoration:none !important; border-bottom:1px dotted
#AAA;"> www.sipwise.com </a> </p>
<p>
Particulars according Austrian Companies Code paragraph 14<br>
"Sipwise GmbH" - Europaring F15 - 2345 Brunn am Gebirge<br>
FN:305595f, Commercial Court Vienna, ATU64002206
</p>
</div>
</div>
</body>
</html>