[OpenSIPS-Users] a little question about uac module
Bogdan-Andrei Iancu
bogdan at opensips.org
Tue Oct 7 12:28:28 CEST 2014
Hello
In failure route, after a successful uac_auth() call, you need to do
t_relay() to send out the a new branch (for the INVITE) containing the
credentials.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 24.09.2014 19:50, Чалков Артём wrote:
> my schema:
>
> sip-server (1) <--> opensips (2) <---> internet
>
> I want to use opensips (2) as uac for registering on foreign sip-servers in the internet.
>
> my very simple config in part of uac-functionality:
>
> ########################################################################
> loadmodule "uac_auth.so"
> ########################################################################
> modparam("uac_auth","auth_realm_avp","$avp(uac_realm)")
> modparam("uac_auth","auth_username_avp","$avp(uac_username)")
> modparam("uac_auth","auth_password_avp","$avp(uac_password)")
>
> ########################################################################
> loadmodule "uac.so"
> ########################################################################
>
> values for these AVPs i getting from some sources in my routing script.
>
>
> When i receive 401 or 407, in failure_route i call uac_auth() function and in (as i see in debug) opensips generates authorization header. But after that opensips relaying 401(or 407)-response to originator of call (i.e. sip server (1)) and this call ends because originator doesn't want response to any type of authentication requests.
>
> Can opensips somehow generate INVITEs with authorization header (with uac and uac_auth modules functionality) by himself or it is impossible?
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list