[OpenSIPS-Users] avp not saved or restored. Usrloc/Registrar module

Liviu Chircu liviu at opensips.org
Fri Sep 27 14:04:22 CEST 2013


Hello,

Tarballs are regenerated once in 6 hours (0, 6, 12, 18). To make sure 
you get the fixed version right away, you could checkout the 1.10 git 
branch:

/git clone https://github.com/OpenSIPS/opensips.git -b 1.10 opensips_1_10/

Regards,

Liviu Chircu
OpenSIPS Developer
http://www.opensips-solutions.com

On 09/27/2013 02:29 PM, Rik Broers wrote:
>
> Where can I obtain the fixed version, Is it this one? Appeared today 
> at 12:10 J
>
> http://opensips.org/pub/opensips/1.10.0/src/opensips-1.9.1-svn10260_src.tar.gz
>
> Thanks a lot for looking into it!
>
> Regards,
>
> Met vriendelijke groet,
>
> *Rik Broers*
> */Voice engineer/*
>
> *From:*users-bounces at lists.opensips.org 
> [mailto:users-bounces at lists.opensips.org] *On Behalf Of *Liviu Chircu
> *Sent:* vrijdag 27 september 2013 11:24
> *To:* users at lists.opensips.org
> *Subject:* Re: [OpenSIPS-Users] avp not saved or restored. 
> Usrloc/Registrar module
>
> Hello Rik,
>
> Both issues happened because of a bug in the contact-DB translation 
> function. It is now fixed. Thank you for reporting!
>
> Best regards,
>
> Liviu Chircu
> OpenSIPS Developer
> http://www.opensips-solutions.com
>
> On 09/27/2013 09:08 AM, Rik Broers wrote:
>
>     The problem of getting the Variable into the database is now solved!
>
>     The was some integer and char mismatch in the database. Putting
>     every used column on the same type (char) it worked!
>
>     But I am still struggling to get the AVP filled after a lookup, I
>     have a successful match according to logging. But the AVP is not
>     there.
>
>     Regards,
>
>     Met vriendelijke groet,
>
>     *Rik Broers*
>     */Voice engineer/*
>
>     *From:*users-bounces at lists.opensips.org
>     <mailto:users-bounces at lists.opensips.org>
>     [mailto:users-bounces at lists.opensips.org] *On Behalf Of *Rik Broers
>     *Sent:* donderdag 26 september 2013 11:37
>     *To:* users at lists.opensips.org <mailto:users at lists.opensips.org>
>     *Subject:* [OpenSIPS-Users] avp not saved or restored.
>     Usrloc/Registrar module
>
>     Hello List,
>
>     I'm having trouble getting $avp(attr) filled after the
>     lookup("location")
>
>     I do the following:
>
>     On incoming register
>
>     modparam("auth_db", "load_credentials", "$avp(type)=type")
>
>     modparam("registrar", "attr_avp", "$avp(attr)")
>
>     modparam("usrloc", "attr_column", "attr")
>
>     if (is_method("REGISTER"))
>
>             {
>
>                     xlog("Register incoming");
>
>     # authenticate the REGISTER requests
>
>                     if (!www_authorize("", "subscriber"))
>
>                     {
>
>                           www_challenge("", "0");
>
>                             exit;
>
>                     }
>
>                         ......
>
>     $avp(attr)=$avp(type);
>
>                     xlog("attr avp : $avp(attr) ... type avp :
>     $avp(type)");
>
>                     if (!save("location"))
>
>     sl_reply_error();
>
>                     exit;
>
>             }
>
>     This works. It prints nicely both values in the Log but when I
>     check the location table the ATTR column is still NULL.
>
>     Also when I put it by hand on a value in the DB after
>     Lookup("location") the AVP is still not filled..
>
>     I'm trying to have a custom value ready from DB on every incoming
>     INVITE so I can decide on different scenario's.
>
>     During invite I do the following:
>
>     lookup("location","m", "$fu");
>
>     If I understand the documentation the $avp(attr) should be filled
>     with the value provided during save.
>
>     In testing I got the value during every invite with
>     proxy_authorize (which filled $avp(type) ). Unfortunately it seems
>     that the other end is incapable of authorizing on invites so I
>     have to save the value during register..
>
>     What's going wrong? And is there maybe an easier module to achieve
>     what I want?
>
>     I'm using version: opensips 1.10.0-notls (x86_64/linux)
>
>     Kind regards,
>
>     Met vriendelijke groet,
>
>     *Rik Broers*
>     */Voice engineer/*
>
>
>
>
>     _______________________________________________
>
>     Users mailing list
>
>     Users at lists.opensips.org  <mailto:Users at lists.opensips.org>
>
>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130927/84c5d089/attachment-0001.htm>


More information about the Users mailing list