Re: [SR-Users] Accounting CDR generation

2016-10-14 Thread Daniel-Constantin Mierla
Well, some devices add a header in the BYE with the disconnect cause, but you have to check with those you use. The it will be possible to take that header and write it in the accounting. Cheers, Daniel On 14/10/16 09:32, Ivan Dudko wrote: > Daniel, > > Of course you are rigth. )) > Nothing to w

Re: [SR-Users] Accounting CDR generation

2016-10-14 Thread Ivan Dudko
Daniel, Of course you are rigth. )) Nothing to write to DB. SIP does not have code for this state, i confuse with q.931 disconnection causes. Thank you! чт, 13 окт. 2016 г. в 11:05, Daniel-Constantin Mierla : > Hello, > > where is this in sip signaling? The header in BYE request? > > Cheers, >

Re: [SR-Users] Accounting CDR generation

2016-10-13 Thread Daniel-Constantin Mierla
Hello, where is this in sip signaling? The header in BYE request? Cheers, Daniel On 12/10/16 17:32, Ivan Dudko wrote: > > I want to write final SIP disconnect cause. > > > ср, 12 Окт 2016, 18:01 Daniel-Constantin Mierla >: > > Which reply code do you want, from in

Re: [SR-Users] Accounting CDR generation

2016-10-12 Thread Ivan Dudko
I want to write final SIP disconnect cause. ср, 12 Окт 2016, 18:01 Daniel-Constantin Mierla : > Which reply code do you want, from initial INVITE of the call? > Cheers, > Daniel > > > On 12/10/16 15:55, Ivan Dudko wrote: > > Thank you, Daniel! > > It's works via dlg_vars. > But i can't write in a

Re: [SR-Users] Accounting CDR generation

2016-10-12 Thread Daniel-Constantin Mierla
Which reply code do you want, from initial INVITE of the call? Cheers, Daniel On 12/10/16 15:55, Ivan Dudko wrote: > Thank you, Daniel! > > It's works via dlg_vars. > But i can't write in acc_crds SIP reply code in same way. > > $dlg_var(sip_cause)=$rs; > > ср, 12 окт. 2016 г. в 17:33, Daniel-Con

Re: [SR-Users] Accounting CDR generation

2016-10-12 Thread Ivan Dudko
Thank you, Daniel! It's works via dlg_vars. But i can't write in acc_crds SIP reply code in same way. $dlg_var(sip_cause)=$rs; ср, 12 окт. 2016 г. в 17:33, Daniel-Constantin Mierla : > Hello, > > for acc_cdr you have to load the dialog module and track the active calls > with it. It may require

Re: [SR-Users] Accounting CDR generation

2016-10-12 Thread Daniel-Constantin Mierla
Hello, for acc_cdr you have to load the dialog module and track the active calls with it. It may require that you store in dlg vars the values you want inside acc_cdr. Cheers, Daniel On 11/10/16 13:08, Ivan Dudko wrote: > Hello! > > I am setting this in kamailio.cfg > > #!ifdef WITH_ACCDB > mod

[SR-Users] Accounting CDR generation

2016-10-11 Thread Ivan Dudko
Hello! I am setting this in kamailio.cfg #!ifdef WITH_ACCDB modparam("acc", "db_flag", FLT_ACC) modparam("acc", "db_missed_flag", FLT_ACCMISSED) modparam("acc", "db_url", DBURL) modparam("acc", "db_extra", "src_user=$fU;src_domain=$fd;src_ip=$si;dst_ouser=$tU;dst_user=$rU;dst_domain=$rd") modpara