[OpenSIPS-Users] event_route doesn't catch events

Антон Ершов suharik71 at gmail.com
Wed Oct 2 03:20:03 EDT 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20191002/a1c6159c/attachment.html>


More information about the Users mailing list