[OpenSIPS-Users] UAC_Auth with multiple gateway

Satish Patel satish.txt at gmail.com
Thu Sep 11 17:28:29 CEST 2014


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");
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140911/982edfcc/attachment.htm>


More information about the Users mailing list