<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <tt>Hi, Khalil!<br>
    </tt><br>
    <tt><tt>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 </tt> run 'opensipsctl fifo
      dlg_list' and match the hash_id and hash_entry against the
      returned values, and then identify the callid.<br>
      <br>
      If you would also like to receive the callid in the event, please
      open a feature request[1].<br>
      <br>
      [1] <a class="moz-txt-link-freetext" href="https://github.com/OpenSIPS/opensips/issues">https://github.com/OpenSIPS/opensips/issues</a><br>
      <br>
      Best regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Răzvan Crainea
OpenSIPS Developer
<a class="moz-txt-link-abbreviated" href="http://www.opensips-solutions.com">www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 09/15/2017 10:46 PM, Khalil
      Khamlichi wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEK98Wai6vVtrwo_PvQHFUzshGo-ouObAbOxwjvT7nK-qf5WRg@mail.gmail.com">
      <div dir="ltr">
        <div>Hi everyone, </div>
        <div><br>
        </div>
        <div>I am trying to understand dialog module eventing system.</div>
        <div><br>
        </div>
        <div>I have added this route :</div>
        <div><br>
        </div>
        <div><br>
        </div>
        event_route[E_DLG_STATE_CHANGED] {
        <div><br>
        </div>
        <div>   
          fetch_event_params("$avp(a);$avp(b);$avp(c);$avp(d);$avp(e);$avp(f)");</div>
        <div><br>
        </div>
        <div>    cache_raw_query("redis:0", "PUBLISH serv1
          fetch_event_params=$avp(a),$avp(b),$avp(c),$avp(d),$avp(e),$avp(f)",
          "$avp(res)");</div>
        <div><br>
        </div>
        <div>}<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>so for each event I can watch an entry </div>
        <div><br>
        </div>
        <div>
          <div>1505503997.413642 [0 <a href="http://127.0.0.1:39734"
              moz-do-not-send="true">127.0.0.1:39734</a>] "PUBLISH"
            "serv1"
            "fetch_event_params=3917,339471624,1,3,<null>,<null>"</div>
          <div>1505503997.524535 [0 <a href="http://127.0.0.1:39762"
              moz-do-not-send="true">127.0.0.1:39762</a>] "PUBLISH"
            "serv1"
            "fetch_event_params=3917,339471624,3,4,<null>,<null>"</div>
          <div>1505504018.809746 [0 <a href="http://127.0.0.1:39840"
              moz-do-not-send="true">127.0.0.1:39840</a>] "PUBLISH"
            "serv1"
            "fetch_event_params=3917,339471624,4,5,<null>,<null>"<br>
          </div>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>I understand that </div>
        <div><br>
        </div>
        <div>a = hash_id of dialog</div>
        <div>b= hash_entry of dialog</div>
        <div>c = old_state </div>
        <div>d = new_state</div>
        <div>e & f = do not exist and here just to prove that they
          do not exist.</div>
        <div><br>
        </div>
        <div>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 ? <br>
        </div>
        <div><br>
        </div>
        <div>Thanks in advance.</div>
        <div><br>
        </div>
        <div>Kkh</div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>