[SR-Users] 403 Forbidden

Daniel-Constantin Mierla miconda at gmail.com
Fri Jun 14 09:06:36 CEST 2019


Hello,

I don't think that you can get a dialog-based CDR for calls that were
not answered with 200ok. But you can get a record in acc table, by
storing failed transaction record (see the mod params for acc and failed
transaction flag or use acc_db_request()).

Cheers,
Daniel

On 13.06.19 22:45, Pejic, Miroslav wrote:
>
> Hi :)
>
>
> I'm trying to save a failed call in the kamailio_router.acc_cdrs database 
>
> after sending the 403 Forbidden by router, using the module acc, if is
> it possible?
>
>
> https://www.kamailio.org/docs/modules/5.2.x/modules/acc.html
>
>
> Something like this:
>
>
> route[IS_CALLER_BLACKLISTED] {
>
>
>   python_exec("check_caller_blacklisted");
>
>
>   if ($var(callerBlacklisted) == 1){
>
>
>      t_send_reply("403", "Forbidden");
>
>
>   IT’S POSSIBLE HERE SAVE A CALL ON KAMAILIO_ROUTER.ACC_CDRS?
>
>  
>
>   exit;
>
>   }
>
>
> Thanks in advance!
>
> Miro
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

-- 
Daniel-Constantin Mierla -- www.asipto.com
www.twitter.com/miconda -- www.linkedin.com/in/miconda

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190614/359f5547/attachment.html>


More information about the sr-users mailing list