[OpenSIPS-Users] E_DLG_STATE_CHANGED event parameters and values.
Răzvan Crainea
razvan at opensips.org
Wed May 17 07:16:53 EDT 2017
Hi, Kirill!
There's no mistake in your code, but in our documentation :). We've
recently added two more parameters[1] in the dialog event that contain
the hash_entry and hash_id, but we didn't document the change. I've just
updated the page[1].
So in order to get the state, you need to add two more AVPs before the
state, to also fetch the dialog hash entry and id. If you only need the
state, you can fetch the parameters by their name:
fetch_event_params("ostate=$avp(ostate); nstate=$avp(nstate)");
[1] http://www.opensips.org/html/docs/modules/2.3.x/dialog#idp6390288
Best regards,
Răzvan Crainea
OpenSIPS Solutions
www.opensips-solutions.com
On 05/17/2017 09:09 AM, Kirill Galinurov wrote:
> Hi all. I try to monitoring opensips using new rabbitmq module and
> EVENT_ROUTE. I try to trace dialog state.
> My config is
> event_route[E_DLG_STATE_CHANGED] {
> fetch_event_params("$avp(nstate);$avp(ostate)");
> xlog("L_INFO", "newstate $avp(nstate) oldstate $avp(ostate) of
> dialog );
> }
> I thought $avp(nstate) variables like $DLG_status. But in logs I see:
>
> DBG:event_route:scriptroute_fetch: Fetching parameters for event
> E_DLG_STATE_CHANGED
> May 17 09:24:14 [44736] DBG:event_route:scriptroute_fetch:
> Successfully fetched 2 parameters
> May 17 09:24:14 [44736] newstate 3984 oldstate 171237808 of dialog to
> Not 1-5. Where is my mistake?
>
> Thank you.
> Best regards Kirill Galinurov
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170517/e93586a2/attachment.html>
More information about the Users
mailing list