Kamailio doesn't send internally anything to evapi, so it is a config issue.

At a quick look, you execute route(CGR_CALL_END) twice, once the dialog is 
ended and once a local request is generated, respectively:

```
# Called by Kamailio on dialog end
event_route[dialog:end] {
        route(CGR_CALL_END);
}
# Called by Kamailio on local disconnect
event_route[tm:local-request] {
        route(CGR_CALL_END);
}
```

If what you get is when kamailio ends the dialog, then 
event_route[tm:local-request] is executed for each BYE sent, one to caller and 
one to callee, so you get three times execution of route(CGR_CALL_END).

Eventually you can use an htable to keep a key with call-id that you sent the 
call end event and do not do it again.

Not being a code issue, I am closing this one here, for more discussions use 
`[email protected]` mailing list

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1512#issuecomment-384261555
_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to