Hi,

In next example $avp(test)=<null> in onreply_route.

...
loadmodule "tm"
...
request_route {
...
  $avp(test)='test';
...
  t_relay();
...
}

onreply_route {
  log("L_DEBUG","onreply_route: $$avp(test)=$avp(test)\n";
}

But, if add t_on_reply:

...
loadmodule "tm"
...
request_route {
...
  $avp(test)='test';
...
  t_on_reply("MANAGE_REPLY");
...
  t_relay();
...
}

onreply_route {
  log("L_DEBUG","onreply_route: $$avp(test)=$avp(test)\n";
}

onreply_route["MANAGE_REPLY"] {
  log("L_DEBUG","MANAGE_REPLY:$$avp(test)=$avp(test)\n";
}

log output is:

onreply_route: $avp(test)=<null>
MANAGE_REPLY: $avp(test)=test

Why there is no AVPs in onreply_route?

version: kamailio 4.1.3 (i386/linux) 

flags: STATS: Off, EXTRA_DEBUG, 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:  

compiled on 17:23:27 Apr 25 2014 with gcc 4.5.4


Thanks,
Seudin Kasumovic