<DIV>Hi Bogan:</DIV>
<DIV>&nbsp;</DIV>
<DIV>Ahh, my mistake, I was looking at the TM code from the 1.2.0 release.&nbsp;
I&nbsp;missed the </DIV>
<DIV>goto in the more recent releases that fixed the problem.&nbsp; </DIV><PRE
style="FONT-FAMILY: Verdana">Thanks!</PRE><PRE style="FONT-FAMILY: Verdana">Sean
</PRE><PRE style="FONT-FAMILY: Verdana">---- On Wed, 7 May 2008, Bogdan-Andrei
Iancu (bogdan@voice-system.ro) wrote:</PRE>
<BLOCKQUOTE style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT:
rgb(204,204,204) 1px solid"><PRE></PRE><PRE>Hi Sean,

Yes, t_check() sets T as NULL if no transaction is matched, but the 
reply_received() function (that calls t_check), if T was set to NULL 
will go to "not_found" label and set T to T_UNDEFINED.

Do you agree on this? if so, we can start working in adding some more 
debug logs to see where the problem is.

Regards,
Bogdan

Sean O'Donnell wrote:
&gt; Hi all,
&gt;
&gt; I’m using openser as a call distributor/proxy between a soft-switch/SBC and
&gt; voicemail platform.  I’m seeing a problem with openser in that it is
sometimes
&gt; cancels an in-progress call (fr_inv_timer firing) because it didn’t match
the
&gt; 200/OK with the call.
&gt;
&gt; After some investigation, I noticed that this was happening after a missing
ACK
&gt; on a previous call caused the voicemail platform to retransmit 200/OK
responses
&gt; beyond the TM wt_timer expiration, which in turn left several openser child
&gt; processes (those that received a 200 after wt_timer expiration) in a state
such
&gt; that they might not properly match transactions on subsequent calls.  
&gt;
&gt; My setup:
&gt; I have openser 1.2.0 operating on a linux box with two network interfaces,
with
&gt; one interface (call it the outside interface) taking incoming calls from
the
&gt; soft-switch, and the other (inside) connected to the VM platform.  I have
&gt; openser configured to use both interfaces (see config below) and the TM
wt_timer
&gt; set to 5 seconds (default).  As this is a voicemail system, all of the call
&gt; traffic is inbound from the soft-switch.   Given the traffic flow, for the
most
&gt; part the openser child processes servicing the inside interface are
handling
&gt; responses (180,183,200) from the VM platform.
&gt;
&gt; Call scenario:
&gt; When an INVITE arrives from the soft-switch, openser forwards it to the VM
&gt; platform.  The VM platform responds with a 180 and then a 200.  I've
noticed
&gt; several instances where the soft-switch did not respond with an ACK.  This
&gt; caused the VM platform to retransmit the 200 several times over a 10 second
&gt; period.   These were absorbed correctly by openser for the duration of
wt_timer.
&gt;  After the timer expired, however, each openser child process that received
a
&gt; retransmitted 200 logged something like this:
&gt;  4(2715) DEBUG: t_reply_matching: hash 45870 label 727647196 branch 0
&gt;  4(2715) DEBUG: t_reply_matching: no matching transaction exists
&gt;  4(2715) DEBUG: t_reply_matching: failure to match a transaction
&gt;  4(2715) DEBUG: t_check: end=(nil)
&gt;
&gt; When I look at the TM code, the static variable T in t_lookup.c is now NULL
for
&gt; this child process.  
&gt;
&gt; On a subsequent inbound call, the INVITE is passed to the VM correctly, and
the
&gt; 180 transaction matches (causing the fr_inv_timer to be armed).  If the 200
is
&gt; read by child proc 2715, I see: 
&gt;  4(2715) DEBUG: t_check: start=(nil)
&gt;  4(2715) DEBUG: t_check: T previously sought and not found
&gt;
&gt; The 200 is forwarded back to the soft-switch, which responds with an ACK. 
Both
&gt; end-points think the call is up, but since openser never matched the 200
with
&gt; the call, the fr_inv_timer fires and cancels the call.   Basically, child
proc
&gt; 2715 won’t match any transaction after this unless it happens to process a
&gt; request.
&gt;
&gt; I think this problem is made worse by the fact that I’m using two network
&gt; interfaces, and that the openser children on the inside interface handle
(for
&gt; the most part) only responses.  This problem was touched on here:
&gt; http://lists.openser.org/pipermail/users/2007-November/014188.html   but I
&gt; didn’t see any follow up.    Also, I’ve checked openser 1.2.3 and 1.3.1 for
&gt; fixes, but I don’t think this has been addressed.
&gt;
&gt; I have a work around, I think, by upping the wt_timer to something like 15
&gt; seconds, but I was wondering if there is any scenario in which leaving
T=NULL is
&gt; desirable.
&gt;
&gt; Thanks in advance
&gt; Sean
&gt;
&gt;   



</PRE></BLOCKQUOTE>