<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
the default reply route is executed by the core, before any matching
for transaction. Therefore, the list of avps for transaction is not
known yet at that point.<br>
<br>
You have to set a tm onreply_route and there you will have the avps.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 26/05/14 09:41, Seudin Kasumovic
wrote:<br>
</div>
<blockquote
cite="mid:CAHbz3+2yjuowig11n981Lo7woEXt6m7Fd+zcXu-uvP0yKxwGsA@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>In next example $avp(test)=<null> in onreply_route.</div>
<div><br>
</div>
<div>...</div>
<div>loadmodule "tm"</div>
<div>...</div>
<div>request_route {</div>
<div>...</div>
<div>
$avp(test)='test';</div>
<div>...</div>
<div> t_relay();</div>
<div>...</div>
<div>}<br clear="all">
<div><br>
</div>
<div>onreply_route {</div>
<div> log("L_DEBUG","onreply_route:
$$avp(test)=$avp(test)\n";</div>
<div>}</div>
<div><br>
</div>
<div>But, if add t_on_reply:</div>
<div><br>
</div>
<div>
<div>...</div>
<div>loadmodule "tm"</div>
<div>...</div>
<div>request_route {</div>
<div>...</div>
<div> $avp(test)='test';</div>
<div>...</div>
<div>
<div> t_on_reply("MANAGE_REPLY");</div>
</div>
<div>...</div>
<div> t_relay();</div>
<div>...</div>
<div>}<br clear="all">
<div><br>
</div>
<div>onreply_route {</div>
<div>
log("L_DEBUG","onreply_route: $$avp(test)=$avp(test)\n";</div>
<div>}</div>
</div>
</div>
<div><br>
</div>
<div>
<div>onreply_route["MANAGE_REPLY"] {</div>
<div>
log("L_DEBUG","MANAGE_REPLY:$$avp(test)=$avp(test)\n";</div>
<div>}</div>
</div>
<div><br>
</div>
<div>
log output is:</div>
<div><br>
</div>
<div>onreply_route: $avp(test)=<null></div>
<div>MANAGE_REPLY: $avp(test)=test<br>
</div>
<div><br>
</div>
<div>Why there is no AVPs in onreply_route?</div>
<div>
<p class="">version: kamailio 4.1.3 (i386/linux) </p>
<p class="">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</p>
<p class="">ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE
262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535,
DEFAULT PKG_SIZE 4MB</p>
<p class="">poll method support: poll, epoll_lt, epoll_et,
sigio_rt, select.</p>
<p class="">id: </p>
<p class="">compiled on 17:23:27 Apr 25 2014 with gcc 4.5.4</p>
</div>
<div><br>
</div>
<div>Thanks,</div>
Seudin Kasumovic<br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
</body>
</html>