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(a)gmail.com
<mailto:voransoy@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(a)gmail.com <mailto:miconda@gmail.com>> wrote:
>
> Hello,
>
> see:
>
> -
>
https://www.kamailio.org/docs/modules/stable/modules/uac.html#uac.f.uac_reg…
>
> 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(a)lists.kamailio.org <mailto:sr-users@lists.kamailio.org>
>>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
> --
> Daniel-Constantin Mierla
>
www.twitter.com/miconda <http://www.twitter.com/miconda> --
>
www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda>
> Kamailio Advanced Training -
www.asipto.com <http://www.asipto.com/>
> Kamailio World Conference -
www.kamailioworld.com
> <http://www.kamailioworld.com/>
>