[SR-Users] uac_auth credentials

Volkan Oransoy voransoy at gmail.com
Tue Aug 1 09:09:33 CEST 2017


Hi again,

After I set auth params in module config, it worked. Thank you for your help.

modparam("uac","auth_realm_avp","$avp(i:10)")
modparam("uac","auth_username_avp","$avp(i:11)")
modparam("uac","auth_password_avp","$avp(i:12)")

> On 1 Aug 2017, at 10:04, Volkan Oransoy <voransoy at gmail.com> wrote:
> 
> Hi Daniel,
> 
> I have applied this solution but failure_route doesn’t add Authorization header to the request after 401.
> Is there anything missing in my failure_route block?
> 
> failure_route[REMOTE_AUTH] {
>         if ($T_reply_code == 401 or $T_reply_code == 407) {
>                 xlog("L_NOTICE", "Remote asked for authentication");
>                 append_branch();
>                 uac_auth();
>                 t_relay();
>         }
> }
> 
> 
>> On 1 Aug 2017, at 09:40, Daniel-Constantin Mierla <miconda at gmail.com <mailto:miconda at gmail.com>> wrote:
>> 
>> Hello,
>> 
>> see:
>> 
>>  -
>> https://www.kamailio.org/docs/modules/stable/modules/uac.html#uac.f.uac_reg_request_to <https://www.kamailio.org/docs/modules/stable/modules/uac.html#uac.f.uac_reg_request_to>
>> 
>> Might offer what you are looking for.
>> 
>> Cheers,
>> Daniel
>> 
>> On 31.07.17 17:05, Volkan Oransoy wrote:
>>> Hi all,
>>> 
>>> I use UAC module for remote registrations on my proxy box. There is no problem with incoming calls and I successfully register and receive calls. 
>>> I have a Freeswitch box behind this proxy box and I want my proxy to add authorisation headers for outgoing calls transparently. I already have credentials at uacreg table for remote registrations. Is it possible use same credentials at uac_auth() function? Or should I run SQL to retrieve necessary fields to feed uac_auth?
>>> 
>>> Thanks!
>>> 
>>> /Volkan
>>> _______________________________________________
>>> Kamailio (SER) - Users Mailing List
>>> sr-users at lists.kamailio.org
>>> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>> 
>> -- 
>> Daniel-Constantin Mierla
>> www.twitter.com/miconda -- www.linkedin.com/in/miconda
>> Kamailio Advanced Training - www.asipto.com
>> Kamailio World Conference - www.kamailioworld.com
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20170801/65dd9062/attachment.html>


More information about the sr-users mailing list