Hello,
the avps are available only for the duration of a transaction. They
don't persist between register and invite. But you should authenticate
invites as well, not only registrations, and then the avp will be loaded
and set for invites.
Cheers,
Daniel
On 19/10/16 10:36, Ivan Dudko wrote:
> H
Hello?
Is avp value live only for one request dialog?
Or i am doing this wrong?
Or it lives until user is unregistered?
вт, 18 окт. 2016 г. в 16:10, Ivan Dudko :
> And I check. While kamailio process REGISTER request $avp(i:123) value
> equals table column call_limit.
> But after that while it
And I check. While kamailio process REGISTER request $avp(i:123) value
equals table column call_limit.
But after that while it process INVITE request $avp(i:123) is
вт, 18 окт. 2016 г. в 11:59, Ivan Dudko :
> Thank you, Daniel
> I am trying to do this.
> modparam("auth_db", "load_credentials", "
Thank you, Daniel
I am trying to do this.
modparam("auth_db", "load_credentials", "$avp(i:123)=call_limit")
After auth:
This from mysql log:
2016-10-18T07:14:02.598195Z 4451 Queryselect
`password`,`call_limit` from `subscriber` where `username`='2000'
2016-10-18T07:14:02.599166Z 4451
Hello,
you can use sqlops module to load data from database and store in an xavp.
If you want to load from subscriber table along with auth credentials,
look at load_credentials parameter from auth_db module.
Cheers,
Daniel
On 14/10/16 12:05, Ivan Dudko wrote:
> Hello!
>
> I am trying to imple