Hi <div><br></div><div>AVPs are tied to transactions, after the processing the avp is cleaned, you can't test for duplicate messages in this way. I suggest you check the core functions cache_store() and cache_fetch(). You can save in memory the call-id of each message ($ci) and if it is duplicated, drop. </div>
<div class="gmail_extra"><br clear="all"><div><div>Flavio E. Goncalves</div><div> </div></div>
<br><br><div class="gmail_quote">2013/1/1 Dragomir Haralambiev <span dir="ltr"><<a href="mailto:goup2010@gmail.com" target="_blank">goup2010@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
My opensips receive a lot of a same messages.<br>
I try to fix this with follow part of script.<br>
Why not working?<br>
<br>
if (is_method("MESSAGE")) {<br>
<br>
if ( $avp(receive_message) == $ci ) {<br>
xlog("L_ERR", "I receive already this MESSAGE");<br>
exit;<br>
}<br>
$avp(receive_message) = $ci;<br>
.............................<br>
}<br>
<br>
Regards,<br>
PlayMen<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br></div>