Are you sure you are calling `match_dialog()` for the sequential requests? Also, are you loading the `event_route` module in your script?

Best regards,
Răzvan

On 10/2/19 10:20 AM, Антон Ершов wrote:
Hello,
I want to catch dialog changes in event_route, but nothing happens
here is an example config

event_route[E_DLG_STATE_CHANGED] {
   xlog("L_INFO", "NEW CALL DIALOG STATE $param(new_state)");
   $avp(attrs) = "Call-Id";
   $avp(vals) = $ci;
   $avp(attrs) = "State";
   $avp(vals) = $param(new_state);
   if (!raise_event("E_SIP_DIALOG", $avp(attrs), $avp(vals)))
     xlog("L_ERR", "cannot raise E_SIP_DIALOG event\n");
   exit;
}

when calling in the logs there are no messages from event_route

# opensips -V
version: opensips 3.0.1 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
git revision: dac56fa49
main.c compiled on 05:45:10 Oct  2 2019 with gcc 4.8.5


_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


--
Răzvan Crainea
OpenSIPS Core Developer
  http://www.opensips-solutions.com

_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to