<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
what function are you using inside kamailio.cfg to send the 202?
Iirc, m_store() doesn't send anything internally, it is done via
config. Be sure you use send_reply() or t_reply() inside the failure
route block.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 22/06/14 23:32, Allen Zhang wrote:<br>
</div>
<blockquote
cite="mid:04588C075527D74CABD19E7C320BCB1C08045D61@WEMAIL01.we.imgtec.org"
type="cite">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:black;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
span.EmailStyle17
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Consolas","serif";
color:black;
mso-fareast-language:EN-US;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Hi Daniel,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">R sent 408
because the recipient was REGISTERed but the testing device
had a power failure and hence couldn’t receive the MESSAGE.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">After it timed
out, m_store() was called in the failure route.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">So the sequence
is: <o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">MESSAGE
delivery failed because device powered off<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">R timed out the
request<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">R send 408<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">In R’s failure
route<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">R calls
m_store()<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">MESSAGE stored<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">R send 202<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Did I do
something wrong?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D">Allen<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-NZ"
lang="EN-US">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:EN-NZ"
lang="EN-US"> <a class="moz-txt-link-abbreviated" href="mailto:sr-users-bounces@lists.sip-router.org">sr-users-bounces@lists.sip-router.org</a>
[<a class="moz-txt-link-freetext" href="mailto:sr-users-bounces@lists.sip-router.org">mailto:sr-users-bounces@lists.sip-router.org</a>]
<b>On Behalf Of </b>Daniel-Constantin Mierla<br>
<b>Sent:</b> Friday, 20 June 2014 5:37 p.m.<br>
<b>To:</b> Kamailio (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] kamailio not sending 202
after 408 is sent<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hello,<br>
<br>
why is R sending the 408? You should catch it there in a
failure route, or where do you execute m_store() inside R
config?<br>
<br>
Cheers,<br>
Daniel<o:p></o:p></p>
<div>
<p class="MsoNormal">On 20/06/14 07:20, Allen Zhang wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi all,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">I
have an edge proxy (E) and a registrar (R) behind it.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">In
R, if a MESSAGE failed to deliver for any reason, R stores
the MESSAGE in msilo.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">If
the MESSAGE timed out, R sends a 408 time out first and
then send a 202 Accepted after the MESSAGE is stored.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">The
problem is, E happily forwards the 408 to the sender of
the MESSAGE, but decides not to forward the 202.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">The
log:</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">DEBUG:
t_reply_matching: hash 16662 label 0 branch 0</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">DEBUG:
tm [t_lookup.c:1032]: DEBUG: t_reply_matching: reply
matched (T=0x7f99eebb2ae0)!</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">DEBUG:
tm [t_lookup.c:1164]: DEBUG: t_check_msg: msg id=3 global
id=3 T end=0x7f99eebb2ae0</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">DEBUG:
tm [t_reply.c:2085]: DEBUG: reply_received: org. status
uas=408, uac[0]=408 local=0 is_invite=0)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">DEBUG:
tm [t_reply.c:1207]: ->>>>>>>>>
T_code=408, new_code=202</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">DEBUG:
tm [t_reply.c:1706]: DEBUG: relay_reply: branch=0, save=0,
relay=-1</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">Can
I change this behaviour to also forward the 202 withouting
hacking in the source code?
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">Regards,</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ">Allen</span><o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-NZ"> </span><o:p></o:p></p>
<br>
</blockquote>
</div>
</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></pre>
</body>
</html>