[sr-dev] [tracker] Task opened: "unsupported route type: 64" after calling event route dialog:end

sip-router bugtracker at sip-router.org
Thu Jul 31 16:11:59 CEST 2014


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - Andrew Pogrebennyk (marduk) 

Attached to Project - sip-router
Summary - "unsupported route type: 64" after calling event route dialog:end 
Task Type - Bug Report
Category - Core
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Normal
Reported Version - Development
Due in Version - Undecided
Due Date - Undecided
Details - We are using event route dialog:end to execute some lua scripts:

event_route[dialog:end]
{
        if (!lua_run("del_dlg_profile", "$ci"))
        {
                xlog("L_ERROR", "Failed to decrease redis counters - R=$ru ID=$ci\n");
        }
        else
        {
                xlog("L_INFO", "removed redis counters - R=$ru ID=$ci\n");
        }
}

The problem is that when we have a BYE message, which triggers the event route above and is then processed by the loose_route() and finally goes to t_relay(), 

Jul 31 15:56:44 prx01a proxy[12447]: NOTICE: <script>: New request - M=BYE R=sip:172.30.52.132:5080;prxroute=1 F=sip:sipwise-test2 at 172.30.52.103 T=sip:43991001 at 172.30.52.103 IP=172.17.135.86:41748 (172.30.52.135:5060) ID=0ik1N5ahpzAzCaIQmtMeqkeA1yoK1l4j
Jul 31 15:56:44 prx01a proxy[12447]: INFO: <script>: removed redis counters - R=sip:172.30.52.132:5080;prxroute=1 ID=0ik1N5ahpzAzCaIQmtMeqkeA1yoK1l4j
Jul 31 15:56:44 prx01a proxy[12447]: INFO: <script>: Stop mediaproxy for all branches - R=sip:172.30.52.132:5080;prxroute=1 ID=0ik1N5ahpzAzCaIQmtMeqkeA1yoK1l4j
Jul 31 15:56:44 prx01a proxy[12447]: INFO: <script>: Relaying request, du='<null>' - R=sip:172.30.52.132:5080;prxroute=1 ID=0ik1N5ahpzAzCaIQmtMeqkeA1yoK1l4j

the t_relay fails with "unsupported route type: 64":

Jul 31 15:56:44 prx01a proxy[12447]: : tm [tm.c:1518]: _w_t_relay_to(): ERROR: w_t_relay_to: unsupported route type: 64

it looks like event route dialog:end does not clear breaks internal state of the kamailio process.

When UAC retransmits the BYE there is no event route called and there is no problem.

root at prx01a:~# kamailio -V
version: kamailio 4.1.4 (x86_64/linux) 
flags: STATS: Off, USE_TCP, USE_TLS, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 4MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown 
compiled on 20:52:15 Jul 24 2014 with gcc 4.7.2


More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=456

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the sr-dev mailing list