<div dir="ltr">=P<br><br>Thanks for your help Daniel.<br>I really appreciate it.<br><br>Pablo Saro<br>psaro at google dot com<br><br><div class="gmail_quote">On Fri, Jul 18, 2008 at 11:21 AM, Daniel-Constantin Mierla &lt;<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<div class="Ih2E3d"><br>
<br>
On 07/18/08 02:04, Pablo Saro wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi everyone,<br>
<br>
I have a doubt about the function avp_pushto(). When I do the following:<br>
<br>
...<br>
avp_pushto(&quot;$ru&quot;, &quot;$avp(s:devices)/g&quot;);<br>
...<br>
<br>
If $ru is an array with more than 1 position,<br>
</blockquote></div>
$ru is not an array, it is the pseudo-variable for R-URI which is single value.<div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
avp_pushto works fine, but if both $ru and $avp(s:devices) have only 1 position, the function avp_pushto replace $ru with the new value. It cause loosing of the previous $ru.<br>
I believe that avp_pushto function shouldn&#39;t replace a value. Any idea?<br>
</blockquote></div>
It replaces the value because it was intended to do. If there are more values to be pushed in the $ru, first goes in R-URI and the rest in branches. If you don&#39;t want to overwrite the R-URI just push directly to branches.<br>

<br>
Cheers,<br>
Daniel<div><div></div><div class="Wj3C7c"><br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;m using OpenSER 1.3.2<br>
Thanks in advance.<br>
<br>
Pablo Saro<br>
psaro at google dot com<br>
</blockquote></div></div><font color="#888888">
-- <br>
<br>
Daniel-Constantin Mierla<br>
<a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a><br>
<br>
</font></blockquote></div><br></div>