My idea for now is using DROYTUNG for all trunks because i have to work
with prefix and priorities.
Then in failure route use *uac_auth* function for user password trunks
?
---
I'm SoCIaL, MayBe
El 29/02/2024 a las 6:30 p. m., Jehanzaib Younis escribió:
Hi,
You can use drouting for IP based authentication trunks.
For username/password based i think you can use digest_auth somethin like
digest_domain("MySIPTrunkRealm", "sip.trunk1.com
<http://sip.trunk1.com>", "username1", "password1")
digest_domain("MySIPTrunkRealm", "sip.trunk2.com
<http://sip.trunk2.com>", "username2", "password2")
in the routing you can do something like the following:-
if (is_method("INVITE") && has_totag()) {
$var(dest_ip) = $si;
if (!digest_auth_check("$var(dest_ip)", "MySIPTrunkRealm",
"username", "password")) {
xlog("L_ERR", "Failed to authenticate call to
$var(dest_ip)\n");
sl_send_reply("403", "Forbidden");
exit;
}
# Route the call to the trunk
route(SOME_OTHER_ROUTE);
}
Regards,
Jehanzaib
On Fri, Mar 1, 2024 at 12:21 PM Social Boh <soc...@bohboh.info> wrote:
First reply;
UAC, UAC AUTH and DROUTING Modules
?
---
I'm SoCIaL, MayBe
El 29/02/2024 a las 4:05 p. m., Social Boh escribió:
> Hello list,
>
> I have to make calls to PSTN using trunks con IP auth y trunks with
> user and password
>
> I'd like use DROUTING module but I don't know how solve
user/password
> auth trunk
>
> Any idea?
>
> Thank you
>
> Regards
>
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users