[OpenSIPS-Users] a little question about uac module
    Чалков Артём 
    achalkov at ya.ru
       
    Wed Sep 24 18:50:48 CEST 2014
    
    
  
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?
    
    
More information about the Users
mailing list