Thanks Vlad.<br><br>I'm using Dialog's CDR auto generation:<br><br>modparam("acc", "cdr_flag", 3)<br><br>The local_route acc_db_request insert 2 lines into DB - one for "downstream" and another for "upstream" , however the dialog specific AVPs usually inserted into the DB is lacking, and more importantly, the duration and setup time show as "0". Is there a way to force auto generation of CDR upon sending BYE after timeout?<br>
<br>Thanks,<br><br>Peter<br><br><br><div class="gmail_quote">On Mon, Apr 2, 2012 at 5:09 AM, Vlad Paiu <span dir="ltr"><<a href="mailto:vladpaiu@opensips.org">vladpaiu@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<u></u>
<div bgcolor="#ffffff" text="#000000">
Hello,<br>
<br>
If you want in-dialog pinging or BYE timeout to be used with
topology_hiding(), you can easily just create the dialog before, and
then apply topology_hiding() on top of the existing dialog,
something like :<br>
if (is_method("INVITE")) {<br>
create_dialog("PpB");<br>
topology_hiding();<br>
}<br>
<br>
When the timeout limit is reached, or when one end-point does not
reply to pings anymore, you can catch the BYEs in local_route, where
you can trigger manual accounting for that call, like :<br>
<br>
local_route {<br>
if (is_method("BYE")) {<br>
acc_db_request("200 Dialog Timeout", "acc");<br>
}<br>
}<br>
<br>
Regards,<br>
<pre cols="72">Vlad Paiu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a> </pre><div><div class="h5">
<br>
On 04/02/2012 07:32 AM, Peter King wrote:
</div></div><blockquote type="cite"><div><div class="h5">A quick question for the group: In reading Dialog
module's topology_hiding feature the following is mentioned:
<div><br>
</div>
<div><span style="text-align:justify;font-size:12px;font-family:Helvetica,Arial">"The great advantage of using
the topology hiding functionality built inside dialog module
is that you can use all the dialog modules functionalities:
profiles, dialog variables, dialog timeouts, etc.."</span></div>
<div><span style="text-align:justify;font-size:12px;font-family:Helvetica,Arial"><br>
</span></div>
<div><span style="text-align:justify;font-size:12px;font-family:Helvetica,Arial">While it's true that
default_timeout and a value set for timeout_avp are enforced,
i</span><span style="font-size:12px;font-family:Helvetica,Arial;text-align:justify">s it possible to use
the BYE on timeout and ping callee/caller features available
with create_dialog("BPb")? topology_hiding does not take any
parameters within the parenthesis it seems. Is there a plan on
the roadmap to add BYE on timeout and pinging to
topology_hiding?</span></div>
<div><span style="font-size:12px;font-family:Helvetica,Arial;text-align:justify"><br>
</span></div>
<div style="text-align:justify"><font face="Helvetica, Arial"><span style="font-size:12px">Also, when the timeout limit is
reached, BYE messages are not trasmitted from upstream to
downstream, which is expected, however, CDRs are also not
written for such calls. Is this function as designed or a
bug?</span></font></div>
<div style="text-align:justify"><font face="Helvetica, Arial"><span style="font-size:12px"><br>
</span></font></div>
<div><span style="font-size:12px;font-family:Helvetica,Arial;text-align:justify">Thanks,</span></div>
<div>
<span style="font-size:12px;font-family:Helvetica,Arial;text-align:justify"><br>
</span></div>
<div style="text-align:justify"><font face="Helvetica, Arial"><span style="font-size:12px">Peer</span></font></div>
</div></div><pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
<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>
<br></blockquote></div><br>