[Kamailio-Devel] avpops avp_table column questions

Daniel-Constantin Mierla miconda at gmail.com
Sat Aug 9 10:52:05 CEST 2008


Hello,

On 08/09/08 11:45, Juha Heinanen wrote:
> i have never before had any use of avpops functions that deal  with
> avp_table.
>
> now i thought to store some avps related to peers to avp_able, but
> noticed that there is no general purpose "key" column where i could
> store the peer name, whose avps i would like to get access to using
> avp_db_load function.  instead, avp_table contains columns like "uuid",
> "username", and "domain".  also, i noticed that there is only one type
> column (for the value) and no type column for the attribute.
>
> can anyone familiar with avpops module tell, why those kind of special
> purpose columns are used instead of a generic "key" column?  also, it is
> somehow possible to tell that attribute name is integer instead of string?
>   
uuid can be used as a generic key column.

The type column is for both name and value:

- 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

Cheers,
Daniel

>
> -- juha
>
> _______________________________________________
> Devel mailing list
> Devel at lists.kamailio.org
> http://lists.kamailio.org/cgi-bin/mailman/listinfo/devel
>   

-- 
Daniel-Constantin Mierla
http://www.asipto.com




More information about the Devel mailing list