<!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">
Hi Alejandro,<br>
<br>
The "fix" you have there does not make too much sense....as
t_relay() does internally a t_newtran() :)....<br>
<br>
Another thing is that opensips does not generate a 491 by
itself....probably it generate by an upstream party...<br>
<br>
Do you have a SIP capture from opensips machine, showing both
inbound and outbound traffic? <br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 04/19/2011 02:50 AM, Alejandro Rios P. wrote:
<blockquote
cite="mid:BANLkTinE2asZKoZW7tkuau+eGuwoiqemvQ@mail.gmail.com"
type="cite">
<p class="MsoNormal">Hi all</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">OpenSIPs seems to be sending a 491 Request
Pending when a lot of RE-INVITES are received.</p>
<p class="MsoNormal"><br>
</p>
<p class="MsoNormal">I found out the following threads regarding
this problem:
</p>
<p class="MsoNormal"><a moz-do-not-send="true"
href="http://opensips.org/pipermail/users/2010-May/012724.html">http://opensips.org/pipermail/users/2010-May/012724.html</a></p>
<p class="MsoNormal"><a moz-do-not-send="true"
href="http://www.mentby.com/Group/opensips-users/re-invite-problem-gt-491-request-pending.html">http://www.mentby.com/Group/opensips-users/re-invite-problem-gt-491-request-pending.html</a></p>
<p class="MsoNormal"> </p>
<br>
<p class="MsoNormal"><span style="font-size: 12pt; font-family:
"Courrier New";">So, it seems that I could get rid
of that
error by adding a t_newtran() before t_relay() when I handle
an ACK:
</span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family:
"Courrier New";"><a moz-do-not-send="true"
href="http://www.opensips.org/html/docs/modules/1.6.2/tm.html#id294024">http://www.opensips.org/html/docs/modules/1.6.2/tm.html#id294024</a></span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family:
"Courrier New";"> </span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family:
"Courrier New";">Like
this:</span></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family:
"Courrier New";"> </span></p>
<p class="MsoNormal" style=""><i><span style="font-size: 12pt;
font-family: "Courrier New";"> if (
is_method("ACK") ) {<span style="color: rgb(48, 48, 48);
background: none repeat scroll 0% 0% black;"></span></span></i></p>
<p class="MsoNormal" style=""><i><span style="font-size: 12pt;
font-family: "Courrier New";">
if ( t_check_trans() ) {<span style="color: rgb(48, 48, 48);
background: none repeat scroll 0% 0% black;"></span></span></i></p>
<p class="MsoNormal" style=""><i><span style="font-size: 12pt;
font-family: "Courrier New";">
#
non loose-route, but stateful ACK; must be an ACK after a
487 or e.g. 404
from upstream server<span style="color: rgb(48, 48, 48);
background: none repeat scroll 0% 0% black;"></span></span></i></p>
<p class="MsoNormal" style=""><i><span style="font-size: 12pt;
font-family: "Courrier New";">
<span style="background: none repeat scroll 0% 0% yellow;">t_newtran();<span
style="color: rgb(48, 48, 48);"></span></span></span></i></p>
<p class="MsoNormal" style=""><i><span style="font-size: 12pt;
font-family: "Courrier New";">
t_relay();<span style="color: rgb(48, 48, 48); background:
none repeat scroll 0% 0% black;"></span></span></i></p>
<p class="MsoNormal" style=""><i><span style="font-size: 12pt;
font-family: "Courrier New";">
exit;<span style="color: rgb(48, 48, 48); background: none
repeat scroll 0% 0% black;"></span></span></i></p>
<p class="MsoNormal" style=""><i><span style="font-size: 12pt;
font-family: "Courrier New";">
} else {<span style="color: rgb(48, 48, 48); background:
none repeat scroll 0% 0% black;"></span></span></i></p>
<p class="MsoNormal" style=""><i><span style="font-size: 12pt;
font-family: "Courrier New";">
#
ACK without matching transaction ... ignore and
discard.\n");<span style="color: rgb(48, 48, 48);
background: none repeat scroll 0% 0% black;"></span></span></i></p>
<p class="MsoNormal" style=""><i><span style="font-size: 12pt;
font-family: "Courrier New";">
xlog("L_WARN",
"[$mi] discarding ACK\n");<span style="color: rgb(48, 48,
48); background: none repeat scroll 0% 0% black;"></span></span></i></p>
<p class="MsoNormal" style=""><i><span style="font-size: 12pt;
font-family: "Courrier New";">
exit;<span style="color: rgb(48, 48, 48); background: none
repeat scroll 0% 0% black;"></span></span></i></p>
<p class="MsoNormal" style=""><i><span style="font-size: 12pt;
font-family: "Courrier New";">
};<span style="color: rgb(48, 48, 48); background: none
repeat scroll 0% 0% black;"></span></span></i></p>
<p class="MsoNormal" style=""><i><span style="font-size: 12pt;
font-family: "Courrier New";"> };<span
style="color: rgb(48, 48, 48); background: none repeat
scroll 0% 0% black;"></span></span></i></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family:
"Courrier New";" lang="ES-CO"> </span></p>
<br>
But I'm not sure if this is correct. I'd appreciate any comments
to see if I missed something before testing live.<br>
<br>
<br>
Thank you and best regards,<br>
<br>
<br clear="all">
Alejandro Rios Peña<br>
<font size="1"><br>
<br>
<br>
<br>
DISCLAIMER: The opinions expressed are my own, and not
necessarily those of my employer.</font><br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS eBootcamp - 2nd of May 2011
OpenSIPS solutions and "know-how"</pre>
</body>
</html>