Hello,
do you want to preserve the R-URI before uac_reg_request_to() or you want to change it to To header URI?
Cheers,
Daniel
Hi again,
There is another issue on my setup. The request URI is being replaced with my registration info while being proxied.How can I keep my original request URI on proxied request?When I set $rU to $tU in the script, then it works but I don’t know this is the way it should be?
route[SENDTOREMOTE] {if(uac_reg_request_to("$fU", 1)){xlog("L_NOTICE", "Found remote user [$rU] on [$rd] via [$du]");$rU = $tU;t_on_failure("REMOTE_AUTH");return;}}
Thanks,
On 1 Aug 2017, at 11:22, Daniel-Constantin Mierla <miconda@gmail.com> wrote:
Hello,
ok, glad it worked as you wanted at the end.
Cheers,
Daniel
On 01.08.17 09:09, Volkan Oransoy wrote:
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@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@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
-- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - www.asipto.com Kamailio World Conference - www.kamailioworld.com
-- Daniel-Constantin Mierla www.twitter.com/miconda -- www.linkedin.com/in/miconda Kamailio Advanced Training - www.asipto.com Kamailio World Conference - www.kamailioworld.com