[OpenSIPS-Users] UAC_Auth with multiple gateway

Bogdan-Andrei Iancu bogdan at opensips.org
Thu Sep 11 19:20:48 CEST 2014


Hi,

Keep the CLI and AUTH info per GW in the attrs field (in dr_gateways) - 
when that GW is used, attrs will become available so you can use them.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 11.09.2014 18:28, Satish Patel wrote:
> Currently i have UAC_AUTH working with single gateway and 
> configuration look like following, How do i configure multiple gateway 
> trunk account? what would be the best way to make it happen, also i am 
> worried about "uac_replace_from" address, in multiple gateway account 
> won't be same so i how i map that name with gateway IPs.. Please 
> suggest me best way to handle this kind of scenario, also what happen 
> if i use drouting module instead of rewritehostport
>
> loadmodule "uac_auth.so"
>
> modparam("uac_auth","auth_username_avp", "$avp(user)")
> modparam("uac_auth","auth_password_avp", "$avp(pass)")
> modparam("uac_auth","auth_realm_avp", "$avp(realm)")
>
>
> route{
>
>         $avp(user) := "1000";
>         $avp(pass) :="1000";
>         $avp(realm) := "freeswitch";
> ...
> ...
>          # PSTN Outside dialiing code
>         if (is_method("INVITE") && (src_ip==xxx.xxx.xxx.xxx)) {
>         if  ( 
> uri=~"^sip:[1-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]*@.*") {
>         uac_replace_from("sip:1000 at xx.xxx.xxx.xxx:5060");
>         rewritehostport("xxx.xxx.xxx.xxx:5060");
>
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140911/353c29a2/attachment.htm>


More information about the Users mailing list