Hello. I found the difference between my config and yours. I have t_newtran at the beginning of the request route for all INVITE messages without to-tag.<div>Looks like without t_newtran all works fine.</div><div><br></div>
<div>As i understand t_relay creates a new transaction and while first invite waiting for a db / radius or "100 Trying" re-transmit may come. And till first invite call t_relay re-transmitted copy will go through all request-route.<br>
<br></div><div>Could you pls explain why i can't call t_newtran() before uac_req_send() ?</div><div><br><div class="gmail_quote">On Wed, Sep 14, 2011 at 12:31 AM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
I did a small test myself with following config and avp(x) was
printed ok in failure route. All looks fine, so check to see if you
don't delete them directly somehow, avp_print() should help printing
all avps, as I said in previous email.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
route {<br>
<br>
$avp(x) = "abc";<br>
xlog("====-RR avp(x) [$avp(x)]\n");<br>
<br>
$uac_req(method)="OPTIONS";<br>
$uac_req(ruri)=<a>"sip:127.0.0.1:9"</a>;<br>
$uac_req(furi)=<a>"sip:127.0.0.1"</a>;<br>
$uac_req(turi)=<a>"sip:127.0.0.1"</a>;<br>
uac_req_send();<br>
<br>
xlog("====#RR avp(x) [$avp(x)]\n");<br>
<br>
t_on_failure("x");<br>
t_relay_to("udp:<a href="http://127.0.0.1:9" target="_blank">127.0.0.1:9</a>");<br>
xlog("====*RR avp(x) [$avp(x)]\n");<br>
exit;<br>
}<br>
<br>
failure_route[x] {<br>
xlog("====+FR avp(x) [$avp(x)]\n");<div><div></div><div class="h5"><br>
}<br>
<br>
On 9/13/11 5:02 PM, Daniel-Constantin Mierla wrote:
<blockquote type="cite">
Hello,<br>
<br>
On 9/13/11 3:04 PM, Vitaliy Aleksandrov wrote:
<blockquote type="cite">Hello,
<div>i tried with a latest 3.1 and now avps works after
uac_req_send, but i can't get avp values from onreply and
failure routes.</div>
</blockquote>
<br>
do you mean no avp is available in onreply and failure routes but
they are available in request route block up to t_relay()? Have
you used avp_print() from avpops to print the list of all avps (at
INFO level)?<br>
<br>
Cheers,<br>
Daniel<br>
<blockquote type="cite">
<div><br>
<div class="gmail_quote">On Mon, Sep 12, 2011 at 10:21 AM,
Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
the bug was associated with an internal tm function used
to send the request. Can you try again with latest
branch 3.1, over the weekend I backported the fix. Let
me know if works now for you.<br>
<br>
Thanks,<br>
Daniel
<div>
<div><br>
<br>
On 9/9/11 3:33 PM, Vitaliy Aleksandrov wrote: </div>
</div>
<blockquote type="cite">
<div>
<div>There is a bug in UAC module. uac_req_send
doesn't restore avps.
<div>I tried to backport your patch to 3.1 but
with no success. </div>
<div><br>
</div>
<div>Could you add this patch to a new stable
release ?</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<font color="#888888"> <br>
<pre cols="72">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre>
</font></div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre>
<br>
<fieldset></fieldset>
<br>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre cols="72">--
Daniel-Constantin Mierla -- <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
Kamailio Advanced Training, Oct 10-13, Berlin: <a href="http://asipto.com/u/kat" target="_blank">http://asipto.com/u/kat</a>
<a href="http://linkedin.com/in/miconda" target="_blank">http://linkedin.com/in/miconda</a> -- <a href="http://twitter.com/miconda" target="_blank">http://twitter.com/miconda</a></pre>
</div></div></div>
</blockquote></div><br></div>