[OpenSIPS-Users] question about uac_auth and gateway authentication

Jozsef CZOMPO czompo.jozsef at bitnet.hu
Wed Jul 28 18:43:24 CEST 2010


Hi

I'm try to configure opensips for the following scenario:
- 'A' VoIP Phone
- 'B' My opensips proxy
- 'C' PSTN Gateway with auth

The problem is: 'A' need to authenticate for 'B', it's OK. 'A' sends  
an INVITE to 'B' with auth credentials, to a public PSTN number. But i  
need to authenticate to 'C'. I'm trying the uac_auth but, when i'm  
running wireshark i'm seeing 'B' sending the wrong credentials (sends  
'A' to 'B', not 'B' to 'C'). How can i use uac_auth? What is the the  
correct way for gateway auth? If i try to replace some words in  
failure_route with 'replace_all', is working so opensips processing  
failure_route[2], but don't insert the proper authentication  
information.

from my route script (with replaced fake host names, and passwords):

modparam("uac","credential","username:domain:password")

route {
....
	    t_on_failure("2");
	    t_relay( "udp:ip_addr:5060" );
...
}

failure_route[2] {
     uac_auth();
     t_relay("udp:ip_addr:5060");
}

	Czo




More information about the Users mailing list