Hi Gustavo, thanks for your reply. I've changed the *avp type* from "2" to "0" but I get always the same error:
ERROR:avpops:load_avps: incomplet uri sip:81.29.176.57
Now I'm going to reboot the server... If I'll have news I'll let you know.
Regards,
Stefano
-------- Messaggio Originale -------- Oggetto: Re: [Kamailio-Users] Unconditional call forward Data: Wed, 3 Sep 2008 10:38:42 -0300 Da: Gustavo Mistrinelli gmistrinelli@gmail.com A: Stefano Palleschi stefano.palleschi@okcom.it CC: users@lists.kamailio.org Referenze: 48BE6299.5000805@okcom.it
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@okcom.it mailto:stefano.palleschi@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 http://81.29.176.57 | callfwd | sip:0666653218@81.29.176.57 mailto:sip%3A0666653218@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 http://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@lists.kamailio.org mailto:Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
Hello,
On 09/03/08 16:54, Stefano Palleschi wrote:
Hi Gustavo, thanks for your reply. I've changed the *avp type* from "2" to "0" but I get always the same error:
ERROR:avpops:load_avps: incomplet uri sip:81.29.176.57
the URI has to have a username. Your call of avp_db_load() takes $ru as parameter and expects a username there.
Cheers, Daniel
Now I'm going to reboot the server... If I'll have news I'll let you know.
Regards,
Stefano
-------- Messaggio Originale -------- Oggetto: Re: [Kamailio-Users] Unconditional call forward Data: Wed, 3 Sep 2008 10:38:42 -0300 Da: Gustavo Mistrinelli gmistrinelli@gmail.com A: Stefano Palleschi stefano.palleschi@okcom.it CC: users@lists.kamailio.org Referenze: 48BE6299.5000805@okcom.it
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@okcom.it mailto:stefano.palleschi@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 <http://81.29.176.57> | callfwd | sip:0666653218@81.29.176.57 <mailto:sip%3A0666653218@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 <http://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@lists.kamailio.org <mailto:Users@lists.kamailio.org> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
Hi Daniel,
Unfotunately I'm fresh on Openser thus I done a mistake about placing the avp code. Thanks to Gustavo, I noticed that I placed the code into the REGISTER handler section instead INVITE section, thus the username didn't appear into the uri. Now I solved and all works fine!
Congratulation for your Openser, it is solving all my Voip problems that I had with others sip proxies!
Now I'm going to try the fax with openser. With other proxies it was nearly impossible! Obviously, I guess you have more experience on foip than me, thus what do you suggest me? Can I go ahead with tests or not..?
Sorry if I do this questions but I spent months and months for fax and honestly I am so bored...:)
Thanks for all.
Regards, Stefano.
Daniel-Constantin Mierla ha scritto:
Hello,
On 09/03/08 16:54, Stefano Palleschi wrote:
Hi Gustavo, thanks for your reply. I've changed the *avp type* from "2" to "0" but I get always the same error:
ERROR:avpops:load_avps: incomplet uri sip:81.29.176.57
the URI has to have a username. Your call of avp_db_load() takes $ru as parameter and expects a username there.
Cheers, Daniel
Now I'm going to reboot the server... If I'll have news I'll let you know.
Regards,
Stefano
-------- Messaggio Originale -------- Oggetto: Re: [Kamailio-Users] Unconditional call forward Data: Wed, 3 Sep 2008 10:38:42 -0300 Da: Gustavo Mistrinelli gmistrinelli@gmail.com A: Stefano Palleschi stefano.palleschi@okcom.it CC: users@lists.kamailio.org Referenze: 48BE6299.5000805@okcom.it
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@okcom.it mailto:stefano.palleschi@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 <http://81.29.176.57> |
callfwd | sip:0666653218@81.29.176.57 mailto:sip%3A0666653218@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 <http://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@lists.kamailio.org <mailto:Users@lists.kamailio.org> http://lists.kamailio.org/cgi-bin/mailman/listinfo/users