[SR-Users] How to detect miss call and accomplished call
Anuran Barman
anuranbarman at gmail.com
Wed Sep 4 08:57:51 CEST 2019
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> 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 Listsr-users at lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> 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/4053acfa/attachment.html>
More information about the sr-users
mailing list