[Kamailio-Users] Unconditional call forward
Gustavo Mistrinelli
gmistrinelli at gmail.com
Wed Sep 3 15:38:42 CEST 2008
Hi Stefano,
Please check *avp type* that you are using, use type 0 instead of 2
See below the different types for avps:
0 - *AVP* with string name and string value
1 - *AVP* with string name and integer value
2 - *AVP* with integer name and string value
3 - *AVP* with integer name and integer value
Regards,
Gustavo
On Wed, Sep 3, 2008 at 7:10 AM, Stefano Palleschi <
stefano.palleschi at okcom.it> wrote:
> Hello all,
>
> i'm trying to do an unconditional call forward with openser. I've added
> the instructions below in the script:
>
> if (avp_db_load("$ru/username", "$avp(s:callfwd)")) {
> avp_pushto("$ru", "$avp(s:callfwd)");
> xlog("$avp(s:callfwd)");
> route(1);
> exit;
> }
>
>
> and i've created a record on the usr_preferences table of openser database:
>
> mysql> select * from usr_preferences;
>
> +------+------------+-----------------------------+-----------+-----------------------------+------+---------------------+
> | uuid | username | domain | attribute |
> value | type | modified |
>
> +------+------------+-----------------------------+-----------+-----------------------------+------+---------------------+
> | 1 | 0666620996 | 81.29.176.57 | callfwd |
> sip:0666653218 at 81.29.176.57 <sip%3A0666653218 at 81.29.176.57> | 2 |
> 2008-09-03 09:51:33 |
>
> +------+------------+-----------------------------+-----------+-----------------------------+------+---------------------+
> 1 row in set (0.00 sec)
>
> like showed, i would like forward the call that arrive at the sip client
> 0666620996 to the pstn number 0666653218.
> At openser restarting I get always this error:
>
> ERROR:avpops:load_avps: incomplet uri <sip:81.29.176.57>
>
> without make any call.
>
> Why in the uri there isn't the first part (username@)?
>
> Thanks in advance.
>
> Stefano Palleschi
>
> _______________________________________________
> Users mailing list
> Users at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
>
--
Gustavo Mistrinelli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20080903/d3c8ba2a/attachment.htm
More information about the Users
mailing list