Hi All,<div>I am trying to overwrite certain values at specific index of AVP and it doesn't work as expected. How I do it is:</div><div><br></div><div>$avp(variable) = $avp(value1);</div><div>$avp(i:999) = 0;</div><div>
$(avp(variable)[$avp(i:999)]) = $avp(value2);</div><div><br></div><div>While executing this, opensips logs an error saying unable to replace AVPs. Is the syntax wrong somewhere? I do this as I don't want to add multiple values into single AVP and also I dont want to call avp_delete function before assigning a new value to the AVP. Moreover the value at $avp(i:999) can change and thus it is assigned to another AVP.</div>
<div><br></div><div>Any help related to AVP overwriting function would be very helpful.</div><div><br></div><div>--- Jayesh</div><div><br></div>