<div dir="ltr">what i did was to put uac_replace_from() in branch_route instead of route[RELAY]<div><br></div><div>however, i also tried it on route[RELAY] but it is still the same problem.</div><div><br></div><div>i placed an xlog() just before uac_replace_from() to make sure that it is not </div>
<div>called twice while doing ngrep to inspect the outgoing packet.</div><div>using this experiment, i can conclude that it is indeed just once.</div><div><br></div><div>I am curious on your method daniel, what do you mean by </div>
<div>"store the changes in avps and commit the changes" ?</div></div><div class="gmail_extra"><br clear="all"><div>Kelvin Chua</div>
<br><br><div class="gmail_quote">On Fri, Apr 4, 2014 at 1:46 AM, Daniel Tryba <span dir="ltr"><<a href="mailto:daniel@pocos.nl" target="_blank">daniel@pocos.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="">On Friday 04 April 2014 09:53:48 Alex Balashov wrote:<br>
> I've seen this when calling uac_replace_from twice, which you cannot do.<br>
<br>
</div>I ran into this before, and based upon recommendations here I decided to store<br>
the changes in avps and commit the changes in route[RELAY].<br>
<br>
That works fine until something ends up in a failure route (redirects after a<br>
fr_inv_timeout). It appears I get double changes even though I reset the avps<br>
after calling uac_* in RELAY so uac_* shouldn't get called for a second time<br>
anywhere, but this is something I'll have to debug further before making more<br>
statements.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<br>
POCOS B.V. - Croy 9c - 5653 LC Eindhoven<br>
Telefoon: 040 293 8661 - Fax: 040 293 8658<br>
<a href="http://www.pocos.nl/" target="_blank">http://www.pocos.nl/</a>   - <a href="http://www.sipo.nl/" target="_blank">http://www.sipo.nl/</a><br>
K.v.K. Eindhoven 17097024<br>
<br>
_______________________________________________<br>
</font></span><div class="HOEnZb"><div class="h5">SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<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><br>
</div></div></blockquote></div><br></div>