<div dir="ltr">Hello friends,<div>I already wrote about this problem and there was no answer. </div><div><a href="http://lists.opensips.org/pipermail/users/2019-October/041771.html">http://lists.opensips.org/pipermail/users/2019-October/041771.html</a><br></div><div>I still want to process call profiles in event_route, but opensips falls into error at the same time.<br></div><div><br></div><div>opensips -V<br>version: opensips 3.0.1 (x86_64/linux)<br>flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, HP_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<br>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br>poll method support: poll, epoll, sigio_rt, select.<br>git revision: 3d2bd5318<br>main.c compiled on 02:53:35 Nov  7 2019 with gcc 4.8.5<br></div><div><br></div><div>my event_route<br><br>event_route[E_DLG_STATE_CHANGED] {<br>    xlog("L_INFO", "[$param(callid)] - new state dialog changed $param(new_state) old state $param(old_state) \n");<br><br>    cache_raw_query("redis:group3", "HGET callid $param(callid)","$avp(reknum)");<br>    if ($avp(reknum) != NULL) {<br>        xlog("L_INFO", "[$param(callid)] - get reknum $avp(reknum) \n");<br><br>   if ( get_dialogs_by_profile("reknumber", $avp(reknum), $avp(dlg_jsons), $avp(callcount)) ) {<br>            xlog("L_INFO", "[$param(callid)] - advertising number  $avp(reknum) has $avp(callcount) other calls \n");<br>  } else {<br>          xlog("L_INFO", "[$param(callid)] - this profile does not have active dialogs \n");<br>      $avp(callcount) = 0;<br>    }<br><br>   switch($param(new_state)) {<br>       case 4:<br>         xlog("L_INFO", "[$param(callid)] - write in REDIS \"callcount $avp(reknum) $avp(callcount) \n");<br>             if ($avp(reknum) != "" && $avp(callcount) != "") {<br>                    cache_raw_query("redis:group3","HSET callcount $avp(reknum) $avp(callcount)");<br>                  cache_raw_query("redis:group3","EXPIRE callconut 360");<br>                 xlog("L_INFO", "[$param(callid)] - call established. Now on number $avp(reknum) $avp(callcount) calls \n");<br>         }<br>             break;<br>            case 5:<br>         xlog("L_INFO", "[$param(callid)] - write in REDIS \"callcount $avp(reknum) $avp(callcount) \n");<br>             if ($avp(reknum) != "" && $avp(callcount) != "") {<br>                    cache_raw_query("redis:group3","HSET callcount $avp(reknum) $avp(callcount)");<br>                  cache_raw_query("redis:group3","EXPIRE callcount 360");<br>                 xlog("L_INFO", "[$param(callid)] - call end. Now on number $avp(reknum) $avp(callcount) calls \n");<br>             cache_raw_query("redis:group3","HDEL callid $param(callid)");<br>               }<br>             break;<br>        }<br>    } else {<br>        xlog("L_INFO", "[$param(callid)] - reknum vareable is NULL");<br>        exit;<br>    }<br>}<br></div><div><br></div><div>when we try to get a profile of an already dead dialog opensips falls.<br></div><div>please tell me is it possible to implement what I want or is it worth looking for another solution?<br></div><div><br></div></div>