[sr-dev] [kamailio/kamailio] $dlg_var variables not available in event rotues (#646)

Minh PHAN notifications at github.com
Mon May 30 11:35:14 CEST 2016


I'm trying to have an external application to write CDR to a database by doing this:

event_route[dialog:start] {
        evapi_relay("{'cdr_id': $dlg_var(cdr_id), 'event': 'answered'}");
}
event_route[dialog:end] {
        evapi_relay("{'cdr_id': $dlg_var(cdr_id), 'event': 'ended'}");
}

event_route[dialog:failed] {
        evapi_relay("{'cdr_id': $dlg_var(cdr_id), 'event': 'failed'}");
}

$dlg_var(cdr_id) is set inside a request route. However, in these event routes, its value is always null. Its seems that $dlg_var variables are not available in those event routes.

---
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/646
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20160530/6a7b1c8f/attachment.html>


More information about the sr-dev mailing list