Re: [SR-Users] Dialog Module - how???

2010-10-15 Thread Nicolas Rüger
Hi all, ok I figured out now, that dialog module is not the right choice for me, as it stores the data not after the dialog is closed. I could see the traces during the dialog in datbase finally. Thanks for your help... I'll post my question for a tracing mechanism with another more accurate

Re: [SR-Users] Dialog Module - how???

2010-10-15 Thread Nicolas Rüger
Hi Nathan, thanks for your help, but I was actually looking for a possibility to enable a tracing machanism on per call basis. I need something like... caller | callee | start_time | end_time | ... | as a table in the kamailio database because I want to evaluate these CDRs. I thought dialog m

Re: [SR-Users] Dialog Module - how???

2010-10-14 Thread Nathan Angelacos
Hi Nicolas, On 10/14/10 11:58, "Nicolas Rüger" wrote: Hey all, thanks for all your advices. I changed the route as you told me, but still nothing in DB table "dialog"... :( You should see something in the DB only as long as the call is in progress. The XLOG message you suggested (see belo

Re: [SR-Users] Dialog Module - how???

2010-10-14 Thread Nicolas Rüger
Hey all, thanks for all your advices. I changed the route as you told me, but still nothing in DB table "dialog"... :( The XLOG message you suggested (see below) says the following: INFO:

Re: [SR-Users] Dialog Module - how???

2010-10-14 Thread Nathan Angelacos
Timo & Ovidiu, Yes, you are correct. Thanks! So, hopefully this is better: route { # Initial invite only if (is_method("INVITE") && (! has_totag() ) ) { dlg_manage(); } if (is_method("BYE")) { xlog ("L_INFO", "Completed $dlg(from_uri) to $dlg(to_

Re: [SR-Users] Dialog Module - how???

2010-10-14 Thread Ovidiu Sas
dlg_manage() is to be called _only_ for initial INVITEs. Once the dialog is created, all the subsequent in-dialog requests will be automatically handled: http://www.kamailio.org/docs/modules/3.1.x/modules_k/dialog.html#id2715451 Calling dlg_manage() on requests that are not generating a SIP dialo

Re: [SR-Users] Dialog Module - how???

2010-10-14 Thread Nathan Angelacos
On 10/14/10 09:41, Ovidiu Sas wrote: For CDR purposes, the duration of a call is for how long that call was in conversation, which is reflected by $DLG_lifetime: Thanks Ovidiu! ___ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailin

Re: [SR-Users] Dialog Module - how???

2010-10-14 Thread Ovidiu Sas
For CDR purposes, the duration of a call is for how long that call was in conversation, which is reflected by $DLG_lifetime: http://www.kamailio.org/docs/modules/3.1.x/modules_k/dialog.html#id2745926 There's no need for 'fancy' duration computation like $var(elapsed) = ( $Ts - $dlg(start_ts) ); R

Re: [SR-Users] Dialog Module - how???

2010-10-14 Thread Timo Reimann
Hey, On 14.10.2010 18:22, Nathan Angelacos wrote: > Actually, you want dlg_manage() to be called for every message, not just > "INVITES" > > route { > dlg_manage(); > } > >> >>[...] Are you sure dlg_manage() is really required to be called on every message of the dialog (or suppo

Re: [SR-Users] Dialog Module - how???

2010-10-14 Thread Nathan Angelacos
Hi Nicolas, On 10/14/10 08:50, "Nicolas Rüger" wrote: Hello, I'm trying to get dialog module working.. ...my problem is that nothing is stored in the database in table "dialog" yet. I'm looking for CDRs there... Can anyone please help me, so that I can see the CDRs in the database!??? The d

Re: [SR-Users] Dialog Module - how???

2010-10-14 Thread Timo Reimann
Hi, On 14.10.2010 17:50, "Nicolas Rüger" wrote: > I'm trying to get dialog module working.. > > ...my problem is that nothing is stored in the database in table "dialog" > yet. I'm looking for CDRs there... > > I inserted in kamailio.cfg: > > [...] > > loadmodule "dialog.so" > > [

[SR-Users] Dialog Module - how???

2010-10-14 Thread Nicolas Rüger
Hello, I'm trying to get dialog module working.. ...my problem is that nothing is stored in the database in table "dialog" yet. I'm looking for CDRs there... Can anyone please help me, so that I can see the CDRs in the database!??? I inserted in kamailio.cfg: [...] loadmodule "dialog.