<p>Hey <a href="https://github.com/razvancrainea" class="user-mention">@razvancrainea</a> </p>

<p>Thanks for this.</p>

<p>I can confirm that the route does not longer block.</p>

<pre><code>U 2015/05/17 13:44:12.159061 127.0.0.1:60731 -&gt; 127.0.0.1:2020
E_CGR_DIALOG_START
dialog_id::375:33756007
created::1431863052
</code></pre>

<p>The only question I would have here is whether there are no chance to add some other $avps (or at least dialog variables maybe)?</p>

<p>This small event was generated out of the following template (obviously the other vars missing):</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_keys) = "cgr_reqtype";
        $avp(dialog_start_values) = $avp(cgr_reqtype);
        $avp(dialog_start_keys) = "callid";
        $avp(dialog_start_values) = $ci;
        $avp(dialog_start_keys) = "from_tag";
        $avp(dialog_start_values) = $ft;
        $avp(dialog_start_keys) = "cgr_account";
        $avp(dialog_start_values) = $avp(cgr_account);
        $avp(dialog_start_keys) = "cgr_subject";
        $avp(dialog_start_values) = $avp(cgr_subject);
        $avp(dialog_start_keys) = "cgr_destination";
        $avp(dialog_start_values) = $avp(cgr_destination);
        $avp(dialog_start_keys) = "created";
        $avp(dialog_start_values) = $Ts;
        $avp(dialog_start_keys) = "dialog_id";
        $avp(dialog_start_values) =  $DLG_did;
        raise_event("E_CGR_DIALOG_START", $avp(dialog_start_keys), $avp(dialog_start_values));
    }
}
</code></pre>

<p>Other than this the bug should be gone I think</p>

<p>Thanks,<br>
DanB</p>

<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#issuecomment-102788267">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFOciVnWgYgBG7bZR9OZewFXjf3MtXxzks5oKHd9gaJpZM4EUtpQ.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#issuecomment-102788267"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>