Hi Daniel, I've opened it here: https://github.com/kamailio/kamailio/issues/646 Regards, Minh
2016-05-30 11:09 GMT+02:00 Daniel-Constantin Mierla <[email protected]>: > Hello, > > can you open an issue on the tracker from github kamailio project on this > topic? Once I get some time I would like to investigate why dlg vars are > not available in the event routes. It is good to have it on tracker, not to > forget about it. > > Cheers, > Daniel > > On 28/05/16 10:16, Minh Phan wrote: > > I managed to make it work by using $dlg(callid) and $dlg(from_tag) as > dialog identifier: > > event_route[dialog:start] { > evapi_relay("{'callid':* '*$dlg(callid)'*,* 'from_tag': > '$dlg(from_tag)', 'event': 'answered'}"); > } > event_route[dialog:end] { > evapi_relay("{'callid':* '*$dlg(callid)'*,* 'from_tag': > '$dlg(from_tag)', 'event': 'ended'}"); > } > > event_route[dialog:failed] { > evapi_relay("{'callid':* '*$dlg(callid)'*,* 'from_tag': > '$dlg(from_tag)', 'event': 'failed'}"); > } > > Regards, > Minh > > > 2016-05-27 18:25 GMT+02:00 Minh Phan <[email protected]>: > >> Hi List, >> >> 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. >> >> What are the variables available in dialog event route? Any suggestion on >> how to achieve what I'm trying to do? >> >> Best regards, >> Minh >> >> >> > > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing > [email protected]http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > > > -- > Daniel-Constantin Mierlahttp://www.asipto.com - > http://www.kamailio.orghttp://twitter.com/#!/miconda - > http://www.linkedin.com/in/miconda > > > _______________________________________________ > SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list > [email protected] > http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users > >
_______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
