[OpenSIPS-Users] Dialog Module - topology_hiding
Peter King
payamk at gmail.com
Mon Apr 2 15:35:01 CEST 2012
Thanks Vlad.
I'm using Dialog's CDR auto generation:
modparam("acc", "cdr_flag", 3)
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?
Thanks,
Peter
On Mon, Apr 2, 2012 at 5:09 AM, Vlad Paiu <vladpaiu at opensips.org> wrote:
> **
> Hello,
>
> 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 :
> if (is_method("INVITE")) {
> create_dialog("PpB");
> topology_hiding();
> }
>
> 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 :
>
> local_route {
> if (is_method("BYE")) {
> acc_db_request("200 Dialog Timeout", "acc");
> }
> }
>
> Regards,
>
> Vlad Paiu
> OpenSIPS Developerhttp://www.opensips-solutions.com
>
>
> On 04/02/2012 07:32 AM, Peter King wrote:
>
> A quick question for the group: In reading Dialog module's topology_hiding
> feature the following is mentioned:
>
> "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.."
>
> While it's true that default_timeout and a value set for timeout_avp are
> enforced, is 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?
>
> 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?
>
> Thanks,
>
> Peer
>
>
> _______________________________________________
> Users mailing listUsers at lists.opensips.orghttp://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20120402/b9c19744/attachment.htm>
More information about the Users
mailing list