[SR-Users] need some help about acc module
Yu Boot
yu at yu-boot.ru
Fri Sep 8 09:27:57 CEST 2017
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;call_id=2xJd0KCt-P;code=200;reason=OK;calling=46566464645;called=you;egressIP=kamailio.org
> <http://kamailio.org>;src_ip=1.0.0.127;to=sip:+918866213320 at sip.call.org
> <mailto:sip%3A%2B918866213320 at sip.call.org>;tag=j90H6yy5pU6Xc;from=sip:918888888888 at localhost;contact=;pai=;uri=sip:you at kamailio.org
> <mailto:you at kamailio.org>;onnet=0;rate=0.000333333"
>
> Thanks.. # #
>
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170908/95dc8325/attachment.html>
More information about the sr-users
mailing list