[OpenSIPS-Users] Fwd: a little question about uac module

Чалков Артём achalkov at ya.ru
Wed Sep 24 18:58:22 CEST 2014


Sorry, i did a typo.
I want to use opensips as uac to register on foreign servers and make calls.
All discribed below is about processing initial INVITE and process of authenticating a call.


-------- Пересылаемое сообщение  --------
24.09.2014, 20:51, "Чалков Артём" <achalkov at ya.ru>:

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