<!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">
Chris,<br>
<br>
an internal 408 can be caught in failure route, so you can override
it as any other final negative reply.<br>
<br>
Regards,<br>
Bogdan<br>
<br>
On 07/01/2011 07:28 PM, Chris Martineau wrote:
<blockquote
cite="mid:1D10AB188D6CCA46BB4369E3268E36EF2D1B43@SVR01.ghosttelecom.local"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@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;}
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;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle19
        {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;
        color:black;}
span.EmailStyle22
        {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: rgb(31, 73, 125);">Thanks,
I’ll download and have a play.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">I
see the 408 timeouts that are generated by opensips but I
want them to be sent out as 486 busy. Can’t see any way of
doing this.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);">Chris<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p> </o:p></span></p>
<div>
<div style="border-right: medium none; border-width: 1pt
medium medium; border-style: solid none none; border-color:
rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color;
padding: 3pt 0cm 0cm;">
<p class="MsoNormal"><b><span style="font-size: 10pt;
font-family:
"Tahoma","sans-serif"; color:
windowtext;" lang="EN-US">From:</span></b><span
style="font-size: 10pt; font-family:
"Tahoma","sans-serif"; color:
windowtext;" lang="EN-US"> Bogdan-Andrei Iancu
[<a class="moz-txt-link-freetext" href="mailto:bogdan@opensips.org">mailto:bogdan@opensips.org</a>] <br>
<b>Sent:</b> 01 July 2011 17:21<br>
<b>To:</b> OpenSIPS users mailling list<br>
<b>Cc:</b> Chris Martineau<br>
<b>Subject:</b> Re: [OpenSIPS-Users] missed call records<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi Chris,<br>
<br>
On 06/30/2011 01:21 PM, Chris Martineau wrote: <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I am trying to sort out some issues with
how my missed call and failure records are recorded.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">My cfg file sets up the acc settings as
follows...<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Courier New";">modparam("acc",
"db_url","mysql://opensips:opensipsrw@localhost/opensips")</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Courier New";">modparam("acc", "db_flag", 1)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Courier New";">modparam("acc", "db_missed_flag",
2)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Courier New";">modparam("acc",
"failed_transaction_flag", 3)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Courier New";">modparam("acc", "cdr_flag", 7)</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Courier New";"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Courier New";"> if (is_method("INVITE")) {</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Courier New";"> ... </span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Courier New";"> setflag(1); # do
accounting</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Courier New";"> setflag(2); # do
accounting</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Courier New";"> setflag(3); # do
accounting</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Courier New";"> setflag(7); # do cdr
accounting</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Everything works fine and confirmed calls
go to the acc database and missed calls go to the missed calls
database.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">However I need to translate the error codes
I receive from upstream to a more generic code for callers.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I have done this as follows...<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">At the end of the failure route...<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Courier New";"> t_reply("486","Busy");</span><o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family:
"Courier New";"> exit;</span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">which works and converts all returned
errors to 486 fine but I get 2 records in the missed calls db
the original and the translated. Is it possible to only log
the original somehow apart from retrospectively removing them
from the db?<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family:
"Times New Roman","serif";">This was a
bug which was fixed today - normally, the missed call event
is generated by the received reply, not by the outgoing
reply. Because of a bug, in some cases, both were generated
- if you update from SVN, you should have the right code.<br>
<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Also for internally generated failure codes
(408 timeouts etc) I cannot see anyway of translating them.<o:p></o:p></p>
<p class="MsoNormal"><span style="font-size: 12pt; font-family:
"Times New Roman","serif";">You mean you
do not get any missed calls for internal 408 ? is the missed
call flag set for that transaction ?<br>
<br>
Regards,<br>
Bogdan<br>
<br>
<br>
<o:p></o:p></span></p>
<pre>-- <o:p></o:p></pre>
<pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
<pre>OpenSIPS solutions and "know-how"<o:p></o:p></pre>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Bogdan-Andrei Iancu
OpenSIPS solutions and "know-how"</pre>
</body>
</html>