[sr-dev] [kamailio/kamailio] EVAPI generating disconnect event 3 times (#1512)

Daniel-Constantin Mierla notifications at github.com
Wed Apr 25 13:59:26 CEST 2018


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 `sr-users at lists.kamailio.org` 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180425/0ace3021/attachment.html>


More information about the sr-dev mailing list