<p>Hey Guys,</p>

<p>Not really an emergency but for the record, when using the dialog variable in event route, it will get opensips server unresponsive.</p>

<p>Following route will reproduce it:</p>

<pre><code>event_route[E_DLG_STATE_CHANGED] {
    fetch_event_params("new_state=$var(new_state)");
    if $var(new_state) == 3 {
        $avp(dialog_start) = "cgr_reqtype";
        $avp(dialog_start) = $avp(cgr_reqtype);
        $avp(dialog_start) = "callid";
        $avp(dialog_start) = $ci;
        $avp(dialog_start) = "from_tag";
        $avp(dialog_start) = $ft;
        $avp(dialog_start) = "cgr_account";
        $avp(dialog_start) = $avp(cgr_account);
        $avp(dialog_start) = "cgr_subject";
        $avp(dialog_start) = $avp(cgr_subject);
        $avp(dialog_start) = "cgr_destination";
        $avp(dialog_start) = $avp(cgr_destination);
        $avp(dialog_start) = "created";
        $avp(dialog_start) = $Ts;
        $avp(dialog_start) = "dialog_id";
        $avp(dialog_start) =  $DLG_did;
        raise_event("E_CGR_DIALOG_START", $avp(auth_keys), $avp(auth_vals));
    }
}
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/OpenSIPS/opensips/issues/504">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciYNgt5JvKKu9Zw2OV9N_BERd-DVdks5oHdkcgaJpZM4EUtpQ.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/OpenSIPS/opensips/issues/504"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>