[SR-Users] How to detect miss call and accomplished call

Henning Westerholt hw at skalatan.de
Wed Sep 4 22:44:30 CEST 2019


Hello Anuran,

first you can also try it with simple acc logging to the kamailio log file. This is maybe easier for a start to see how its working. So there is no need to enable WITH_ACCDB. So bascially it works like this that you set the appropriate flags and then the acc module will account the call.

Have a look to your kamailio log, there should be some entries from the acc module after you placed a test call.

Cheers,

Henning

Am 04.09.19 um 08:57 schrieb Anuran Barman:
So I need to enable WITH_ACCDB so that it can alter the database table as it seems. I enabled this and restarted kamailio but it is not logging the misscall in the "acc" or "missed_calls" tables. In the config file there is something like this,
$avp(oexten) = $rU;
        if (!lookup("location")) {
                $var(rc) = $rc;
                route(TOVOICEMAIL);
                t_newtran();
                switch ($var(rc)) {
                        case -1:
                        case -3:
                                send_reply("404", "Not Found");
                                exit;
                        case -2:
                                send_reply("405", "Method Not Allowed");
                                exit;
                }
        }

        # when routing via usrloc, log the missed calls also
        if (is_method("INVITE")) {
                setflag(FLT_ACCMISSED);
        }

but I am not able to understand what it's doing. How can I get the missed calls logs?

On Tue, Sep 3, 2019 at 12:07 PM Henning Westerholt <hw at skalatan.de<mailto:hw at skalatan.de>> wrote:

Hello Anuran,

you are probably want to look into the "acc" accounting module. The default cfg already has some code for this. It can account e.g. succesful and failed calls.

Cheers,

Henning

Am 03.09.19 um 06:36 schrieb Anuran Barman:
Hi,
I want to show call logs in my SIP app. How can I do this with Kamailio? I want to do it from the kamailio.cfg file. Is it possible to do it from where? I guess Dialog module should be used for this, but can not figure out how to do it. I want minimalist feature like who call whom with timestamp, thats all. How can I do this?



_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org<mailto:sr-users at lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services

--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20190904/4b72df8e/attachment.html>


More information about the sr-users mailing list