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@gmail.com> wrote:

Hello,

see:

 -
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@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