[OpenSIPS-Devel] [opensips] EventRoute blocking sip listening (#504)

Dan Christian Bogos notifications at github.com
Sun May 17 13:48:13 CEST 2015


Hey @razvancrainea 

Thanks for this.

I can confirm that the route does not longer block.

```
U 2015/05/17 13:44:12.159061 127.0.0.1:60731 -> 127.0.0.1:2020
E_CGR_DIALOG_START
dialog_id::375:33756007
created::1431863052
```

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

This small event was generated out of the following template (obviously the other vars missing):
```
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));
    }
}
```

Other than this the bug should be gone I think

Thanks,
DanB

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/504#issuecomment-102788267
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20150517/cd75e9df/attachment.htm>


More information about the Devel mailing list