[OpenSIPS-Users] trying to understand the E_DLG_STATE_CHANGED

Răzvan Crainea razvan at opensips.org
Mon Sep 18 03:47:52 EDT 2017


Hi, Khalil!

To be honest, I think this event was initially made to be used with the 
MI dlg_end_dlg command, which only terminates a dialog. However, you 
could run 'opensipsctl fifo dlg_list' and match the hash_id and 
hash_entry against the returned values, and then identify the callid.

If you would also like to receive the callid in the event, please open a 
feature request[1].

[1] https://github.com/OpenSIPS/opensips/issues

Best regards,

Răzvan Crainea
OpenSIPS Developer
www.opensips-solutions.com

On 09/15/2017 10:46 PM, Khalil Khamlichi wrote:
> Hi everyone,
>
> I am trying to understand dialog module eventing system.
>
> I have added this route :
>
>
> event_route[E_DLG_STATE_CHANGED] {
>
> fetch_event_params("$avp(a);$avp(b);$avp(c);$avp(d);$avp(e);$avp(f)");
>
>     cache_raw_query("redis:0", "PUBLISH serv1 
> fetch_event_params=$avp(a),$avp(b),$avp(c),$avp(d),$avp(e),$avp(f)", 
> "$avp(res)");
>
> }
>
>
> so for each event I can watch an entry
>
> 1505503997.413642 [0 127.0.0.1:39734 <http://127.0.0.1:39734>] 
> "PUBLISH" "serv1" "fetch_event_params=3917,339471624,1,3,<null>,<null>"
> 1505503997.524535 [0 127.0.0.1:39762 <http://127.0.0.1:39762>] 
> "PUBLISH" "serv1" "fetch_event_params=3917,339471624,3,4,<null>,<null>"
> 1505504018.809746 [0 127.0.0.1:39840 <http://127.0.0.1:39840>] 
> "PUBLISH" "serv1" "fetch_event_params=3917,339471624,4,5,<null>,<null>"
>
>
> I understand that
>
> a = hash_id of dialog
> b= hash_entry of dialog
> c = old_state
> d = new_state
> e & f = do not exist and here just to prove that they do not exist.
>
> but I don't understand how to use the information of a & b to track 
> dialogs ? if there a function that when fed those parameters gives us 
> callid for example ?
>
> Thanks in advance.
>
> Kkh
>
>
>
> _______________________________________________
> 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/20170918/b9b9ffb3/attachment.html>


More information about the Users mailing list