[SR-Users] R: R: acc time mode 2 wrong timestamp

Daniel-Constantin Mierla miconda at gmail.com
Wed Jun 22 21:32:51 CEST 2016


Hello,

so you don't get the accounting record in syslog because acc is not
configured for that.

You need to add:

modparam("acc", "log_flag", FLAG_ACC_CALL)

Then do again a call and see the syslog for the log message with acc
details.

Cheers,
Daniel

On 22/06/16 20:09, pars3c wrote:
>
> Hi, these are all the param fora cc module:
>
>  
>
> modparam("acc", "db_flag", FLAG_ACC_CALL)
>
> modparam("acc", "db_missed_flag", FLAG_ACC_MISSED_CALL)
>
> modparam("acc", "failed_transaction_flag", FLAG_ACC_FAILED_CALL)
>
> modparam("acc", "db_table_acc", "acc")
>
> modparam("acc", "db_table_missed_calls", "missed_calls")
>
> modparam("acc", "db_extra",
> "src_user=$fU;src_ip=$si;src_domain=$fd;src_port=$sp;dst_user=$rU;dst_domain=$rd;
>
>                                                               
> invite_time=$dlg_var(invite_time);c_time=$dlg_var(c_time);hangup_time=$avp(s:hangup);
>
>                                                               
> duration=$dlg_var(duration);uniqueid=$dlg_var(uniqueid);a_id_operator=$dlg_var(a_id_operator);b_id_operator=$dlg_var(b_id_operator);
>
>                                                               
> alert_time=$dlg_var(alert_time);progress_time=$dlg_var(progress_time);techprefix_len=$dlg_var(lenprefix);
>
>                                                               
> parameters=$avp(s:parameters)")
>
> modparam("acc", "detect_direction", 1)                            
>
> modparam("acc", "report_cancels", 1)
>
> modparam("acc", "early_media", 0)
>
> modparam("acc", "time_mode", 2)
>
> modparam("acc", "time_attr", "seconds")
>
>  
>
> Thanks
>
>  
>
> *Da:*Daniel-Constantin Mierla [mailto:miconda at gmail.com]
> *Inviato:* mercoledì 22 giugno 2016 19:28
> *A:* pars3c; 'Kamailio (SER) - Users Mailing List'
> *Oggetto:* Re: R: [SR-Users] acc time mode 2 wrong timestamp
>
>  
>
> Hello,
>
> what are the parameters you set for acc module? Paste all modparams
> for acc here.
>
> Cheers,
> Daniel
>
>  
>
> On 22/06/16 10:31, pars3c wrote:
>
>     Hi Daniel,
>
>     thanks for your support, each instance has your own database.In
>     each table the coloumn is double.
>
>     I tried to enable the log , in debug level , but i havent found
>     any accounting record, only this type:
>
>      
>
>     DEBUG: acc [acc_logic.c:644]: tmcb_func(): acc callback called for
>     t(0x979e5af8) event type 2, reply code 200
>
>     May be , i don’t know where to find it.
>
>      
>
>     The server where i ‘ve this problem use Centos5.4 386
>
>      
>
>     Thanks
>
>      
>
>     *Da:*sr-users [mailto:sr-users-bounces at lists.sip-router.org] *Per
>     conto di *Daniel-Constantin Mierla
>     *Inviato:* mercoledì 22 giugno 2016 07:27
>     *A:* Kamailio (SER) - Users Mailing List
>     *Oggetto:* Re: [SR-Users] acc time mode 2 wrong timestamp
>
>      
>
>     Hello,
>
>     is the same database server used for both kamailio instances or
>     each kamailio instance has its own kamailio server?
>
>     Can you enable logging to syslog the accounting record and see if
>     the values are likes in the database? I am trying to isolate if
>     the issue is in code or somehow in the database column type.
>
>     Cheers,
>     Daniel
>
>     On 21/06/16 10:19, pars3c wrote:
>
>         Hello,
>
>         i’ve installled the new version of kamailio 4.4.1 . in 2
>         different server , with acc module and these parameters:
>
>         modparam("acc", "time_mode", 2)
>
>         modparam("acc", "time_attr", "seconds")  should be
>         seconds.millisec
>
>          
>
>         On the first server in acc table , in field seconds i have
>         values like this 1466493457.85,  this is correct timestamp  (
>         this server have centos 86_64)
>
>         In the other server , i have values like 1913113.702 , that is
>         wrong timestamp . (this is old centos 32 bit )
>
>          
>
>         What can be the problem? The different version 32,64 bit ? or
>         some compiler option ?
>
>          
>
>         Thanks
>
>          
>
>          
>
>          
>
>          
>
>
>
>
>
>         _______________________________________________
>
>         SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>
>         sr-users at lists.sip-router.org
>         <mailto:sr-users at lists.sip-router.org>
>
>         http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
>
>     -- 
>
>     Daniel-Constantin Mierla
>
>     http://www.asipto.com - http://www.kamailio.org
>
>     http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
>
>
>
> -- 
> Daniel-Constantin Mierla
> http://www.asipto.com - http://www.kamailio.org
> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda

-- 
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160622/7fbaf2cf/attachment.html>


More information about the sr-users mailing list