<!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">
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 class="moz-signature" cols="72">Vlad Paiu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a> </pre>
<br>
On 04/02/2012 07:32 AM, Peter King wrote:
<blockquote
cite="mid:CAH2+9zq89w0Th-0c3Nsiswom+LpHqAQsKO9iyVfcbcMma5n5fw@mail.gmail.com"
type="cite">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>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>