[prev in list] [next in list] [prev in thread] [next in thread] 

List:       serusers
Subject:    [SR-Users] Module acc - How to get sip_reason/code on log_write_cdr() messages
From:       David VILLAUME <david.villaume () sewan ! fr>
Date:       2019-10-29 9:52:05
Message-ID: MRXP264MB0325F6CEDF74D9B1F9506A52FD610 () MRXP264MB0325 ! FRAP264 ! PROD ! OUTLOOK ! COM
[Download RAW message or body]

Hello,

I'm trying to get the reason in my cdrs in log_write_cdr() messages while I see It in \
acc_log_request() messages.

Is there a way to retrieve it  in log_write_cdr() messages ?

Bellow is my config :

modparam("acc", "log_level", 1)
modparam("acc", "log_facility", "LOG_LOCAL3")
modparam("acc", "cdr_log_enable", 1)
modparam("acc", "log_flag", 1)
modparam("acc", "failed_transaction_flag", 2)
modparam("acc", "log_missed_flag", 3)
modparam("acc", "report_cancels", 1)
modparam("acc", "cdr_on_failed", 1)
modparam("acc", "cdr_enable", 1)
modparam("acc", "cdr_facility", "LOG_LOCAL3")
modparam("acc", "cdr_expired_dlg_enable", 1)
modparam("acc", "cdr_start_on_confirmed", 1)
modparam("acc", "cdr_extra", "call_id=$ci;src_ip=$si;fU=$fU;")"


David VILLAUME


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;
	mso-fareast-language:EN-US;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 70.85pt 70.85pt;}
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]-->
</head>
<body lang="FR" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><span lang="EN-GB">I&#8217;m trying to get the reason in my cdrs \
in log_write_cdr() messages while I see It in acc_log_request() \
messages.<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-GB"><o:p>&nbsp;</o:p></span></p> <p class="MsoNormal"><span lang="EN-GB">Is \
there a way to retrieve it &nbsp;in log_write_cdr() messages ? <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Bellow is my config : <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">modparam(&quot;acc&quot;, \
&quot;log_level&quot;, 1)<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-GB">modparam(&quot;acc&quot;, &quot;log_facility&quot;, \
&quot;LOG_LOCAL3&quot;)<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-GB">modparam(&quot;acc&quot;, &quot;cdr_log_enable&quot;, \
1)<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-GB">modparam(&quot;acc&quot;, &quot;log_flag&quot;, 1)<o:p></o:p></span></p> \
<p class="MsoNormal"><span lang="EN-GB">modparam(&quot;acc&quot;, \
&quot;failed_transaction_flag&quot;, 2)<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-GB">modparam(&quot;acc&quot;, \
&quot;log_missed_flag&quot;, 3)<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-GB">modparam(&quot;acc&quot;, &quot;report_cancels&quot;, \
1)<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-GB">modparam(&quot;acc&quot;, &quot;cdr_on_failed&quot;, \
1)<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-GB">modparam(&quot;acc&quot;, &quot;cdr_enable&quot;, \
1)<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-GB">modparam(&quot;acc&quot;, &quot;cdr_facility&quot;, \
&quot;LOG_LOCAL3&quot;)<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-GB">modparam(&quot;acc&quot;, &quot;cdr_expired_dlg_enable&quot;, \
1)<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-GB">modparam(&quot;acc&quot;, &quot;cdr_start_on_confirmed&quot;, \
1)<o:p></o:p></span></p> <p class="MsoNormal"><span \
lang="EN-GB">modparam(&quot;acc&quot;, &quot;cdr_extra&quot;, \
&quot;call_id=$ci;src_ip=$si;fU=$fU;&quot;)&quot;<o:p></o:p></span></p> <p \
class="MsoNormal"><span lang="EN-GB"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span lang="EN-GB"><o:p>&nbsp;</o:p></span></p> <p \
class="MsoNormal"><span lang="EN-GB">David VILLAUME<o:p></o:p></span></p> </div>
</body>
</html>


[Attachment #4 (unknown)]

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic