<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
transaction stateful relaying is done by using t_relay().<br>
<br>
For handling them with dialog, use dlg_manage() for those requests.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 30/03/16 14:35, Al S wrote:<br>
</div>
<blockquote cite="mid:BAY177-W500D5F4949879883B78596D4980@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">
<div><font face="Verdana,sans-serif" color="#000000">Hi,</font></div>
<div><font face="Verdana,sans-serif" color="#000000"><br>
</font></div>
<div><font face="Verdana,sans-serif" color="#000000"><br>
</font></div>
<div><font face="Verdana,sans-serif" color="#000000">I would
like to know how I can make subsequent messages in a dialog
(ACK and BYE) to be stateful.</font></div>
<div><font face="Verdana, sans-serif">Your help will be greatly
appreciated.</font></div>
<font face="Verdana,sans-serif" color="#000000"><br
id="FontBreak">
</font>
<div><br>
</div>
<div>
<div style="line-height: 21.3px; font-size: 15px; font-family:
'Courier New', sans-serif; background-color: rgb(255, 255,
255);">// reroute INVITE after timeout.</div>
<div style="line-height: 21.3px; font-size: 15px; font-family:
'Courier New', sans-serif; background-color: rgb(255, 255,
255);">failure_route[MANAGE_FAILURE]</div>
<div style="line-height: 21.3px; font-size: 15px; font-family:
'Courier New', sans-serif; background-color: rgb(255, 255,
255);">{</div>
<div style="line-height: 21.3px; font-size: 15px; font-family:
'Courier New', sans-serif; background-color: rgb(255, 255,
255);">
<div style="line-height: 21.3px;"> if (t_branch_timeout())</div>
<div style="line-height: 21.3px;"> {</div>
<div style="line-height: 21.3px;"> # change to new
destination IP</div>
<div style="line-height: 21.3px;"><span style="line-height:
22.72px; font-size: 12pt;"> $rd = "10.10.10.10";</span></div>
<div style="line-height: 21.3px;"><span style="line-height:
22.72px; font-size: 12pt;"> t_relay();</span></div>
<div style="line-height: 21.3px;"> exit;</div>
<div style="line-height: 21.3px;"> }</div>
</div>
<div style="line-height: 21.3px; font-size: 15px; font-family:
'Courier New', sans-serif; background-color: rgb(255, 255,
255);">...</div>
<div style="line-height: 21.3px; font-size: 15px; font-family:
'Courier New', sans-serif; background-color: rgb(255, 255,
255);">}</div>
</div>
<div style="line-height: 21.3px; font-size: 15px;
background-color: rgb(255, 255, 255);"><font face="Arial,
sans-serif"><br>
</font></div>
<div style="line-height: 21.3px; font-size: 15px;
background-color: rgb(255, 255, 255);"><font face="Arial,
sans-serif">Thanks,</font></div>
<div style="line-height: 21.3px; font-size: 15px;
background-color: rgb(255, 255, 255);"><font face="Arial,
sans-serif">AS</font></div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, Berlin, May 18-20, 2016 - <a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
</body>
</html>