Appreciate your answer but can you please provide sample code or kind of script example... I don't know how to fetch attributes values etc..
Sent from my iPhone On Sep 11, 2014, at 1:20 PM, Bogdan-Andrei Iancu <[email protected]> wrote: > 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:[email protected]:5060"); >> rewritehostport("xxx.xxx.xxx.xxx:5060"); >> >> >> >> >> >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
