<div dir="ltr">Hi Chen-Che<div><br></div><div style>If you are using CDR_FLAG, you must create the dialog. BYEs are accounted in the loose_route (sequential request) section, toplogy_hiding also depends on the dialog. </div>
<div style><br></div><div style><div>Failed calls are astore in the ACC table, but if your call was forwarded to a voicemail or to other gateway, the ACC record will contain only the 200OK. Intermediary branches will log to the missed_calls table. </div>
<div><br></div></div><div class="gmail_extra"><div><div dir="ltr">Flavio E. Goncalves<br></div></div><div dir="ltr"><br></div><div class="gmail_quote">2013/7/19 microx <span dir="ltr"><<a href="mailto:acmicrox@gmail.com" target="_blank">acmicrox@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I want to keep track of call history into the db. After referring to the ACC<br>
module document and several threads in this forum, I set the following in my<br>
config file. Successful calls are recorded in the db as expected. However,<br>
nothing is recorded in the db when the callee rejects the INVITE or ignore<br>
the INVITE. Please help take a look at what is missed in my setting. Many<br>
thanks.<br>
<br>
modparam("acc", "db_flag", "DB_FLAG")<br>
modparam("acc", "db_flag", "DB_MISSED_FLAG")<br>
modparam("acc", "failed_transaction_flag", "FAIL_TRANS_FLAG")<br>
modparam("acc", "report_cancels", 1)<br>
modparam("acc", "cdr_flag", "CDR_FLAG")<br>
modparam("acc", "db_extra", "caller=$fU; callee=$tU")<br>
modparam("acc", "db_url",<br>
"postgres://<a href="http://thvc:quantacdrc@10.100.13.8:5432/opensips" target="_blank">thvc:quantacdrc@10.100.13.8:5432/opensips</a>")<br>
<br>
if (is_method("INVITE") {<br>
t_on_reply("Invite");<br>
t_on_branch("Invite");<br>
t_on_failure("Invite");<br>
topology_hiding();<br>
setflag(DB_FLAG);<br>
setflag(DB_MISSED_FLAG);<br>
setflag(FAIL_TRANS_FLAG);<br>
setflag(CDR_FLAG);<br>
}<br>
<br>
Best regards,<br>
Chen-Che<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/Config-for-miss-failed-calls-tp7587221.html" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/Config-for-miss-failed-calls-tp7587221.html</a><br>
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div></div>