Hello.
Take your accounting code for INVITE and copy and modify it like this:
if (is_method("OPTIONS")) {
setflag(FLT_ACC); # do accounting
}
08.09.2017 8:30, Vidja Prashant пишет:
Hello,
I have some feature required changes in acc module.
In acc module we getting cdrs in database only which have
METHOD=INVITE
METHOD=BYE
but in my setup I also get
METHOD=OPTIONS
so I need this entry also in acc table in kamailio database.
so which changes i need to do in kamailio acc module.... or other......
my cdrs log I paste below which have mehod=options
"Sep 7 07:16:53 sip /usr/local/sbin/kamailio[29264]: NOTICE: acc
[acc.c:317]: acc_log_request(): ACC: request accounted:
timestamp=1504783013;method=OPTIONS;from_tag=eUC9UgGrD;to_tag=j90H6yy5pU6Xc…
<http://kamailio.org>;src_ip=1.0.0.127;to=sip:+918866213320@sip.call.org
<mailto:sip%3A%2B918866213320@sip.call.org>;tag=j90H6yy5pU6Xc;from=sip:918888888888@localhost;contact=;pai=;uri=sip:you@kamailio.org
<mailto:you@kamailio.org>;onnet=0;rate=0.000333333"
Thanks.. # #
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users