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, view it on GitHub, or mute the thread.