[OpenSIPS-Users] Two or more users for one realm using uac_auth

Thomas Gelf thomas at gelf.net
Wed Jun 10 16:02:04 CEST 2009


You're welcome ;-)

Ricardo Martins schrieb:
> That's it! Thank you very much Thomas. I was realy missing a tiny point.
> Now my script is becoming nice!
> 
> Regards, Ricardo.
> 
> 
> Thomas Gelf escreveu:
>> I'm not sure what you're missing - it's pretty straight-forward. All
>> you need to do should be something like:
>>
>> modparam("uac", "auth_username_avp", "$avp(i:1)")
>> modparam("uac", "auth_password_avp", "$avp(i:2)")
>> modparam("uac", "auth_realm_avp", "$avp(i:3)")
>>
>> avp_db_query("SELECT user, pass, realm FROM whatever WHERE <some-voodoo>
>> AND owner = '$avp(s:caller)'", "$avp(i:1);$avp(i:2);$avp(i:3)");
>>
>> (and of course uac_replace_from, rewrite_host_port, t_on_failure,
>> uac_auth - as without AVPs)
>>
>> Cheers,
>> Thomas Gelf




More information about the Users mailing list