<div dir="ltr">Hi Stefano,<br>Please check <b>avp type</b> that you are using, use type 0 instead of 2<br><span><br>See </span><span>below </span><span>the different types for avps:<br></span><span> 0 - <b class="highlight">AVP</b> with string name and string value
</span><br><span>1 - <b class="highlight">AVP</b> with string name and integer value
</span><br><span>2 - <b class="highlight">AVP</b> with integer name and string value
</span><br><span>3 - <b class="highlight">AVP</b> with integer name and integer value
</span><br><br>Regards,<br><br>Gustavo<br><br><div class="gmail_quote">On Wed, Sep 3, 2008 at 7:10 AM, Stefano Palleschi <span dir="ltr"><<a href="mailto:stefano.palleschi@okcom.it">stefano.palleschi@okcom.it</a>></span> 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 all,<br>
<br>
i'm trying to do an unconditional call forward with openser. I've added<br>
the instructions below in the script:<br>
<br>
if (avp_db_load("$ru/username", "$avp(s:callfwd)")) {<br>
avp_pushto("$ru", "$avp(s:callfwd)");<br>
xlog("$avp(s:callfwd)");<br>
route(1);<br>
exit;<br>
}<br>
<br>
<br>
and i've created a record on the usr_preferences table of openser database:<br>
<br>
mysql> select * from usr_preferences;<br>
+------+------------+-----------------------------+-----------+-----------------------------+------+---------------------+<br>
| uuid | username | domain | attribute |<br>
value | type | modified |<br>
+------+------------+-----------------------------+-----------+-----------------------------+------+---------------------+<br>
| 1 | 0666620996 | <a href="http://81.29.176.57" target="_blank">81.29.176.57</a> | callfwd |<br>
<a href="mailto:sip%3A0666653218@81.29.176.57">sip:0666653218@81.29.176.57</a> | 2 | 2008-09-03 09:51:33 |<br>
+------+------------+-----------------------------+-----------+-----------------------------+------+---------------------+<br>
1 row in set (0.00 sec)<br>
<br>
like showed, i would like forward the call that arrive at the sip client<br>
0666620996 to the pstn number 0666653218.<br>
At openser restarting I get always this error:<br>
<br>
ERROR:avpops:load_avps: incomplet uri <sip:<a href="http://81.29.176.57" target="_blank">81.29.176.57</a>><br>
<br>
without make any call.<br>
<br>
Why in the uri there isn't the first part (username@)?<br>
<br>
Thanks in advance.<br>
<br>
Stefano Palleschi<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.kamailio.org">Users@lists.kamailio.org</a><br>
<a href="http://lists.kamailio.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.kamailio.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Gustavo Mistrinelli<br>
</div>