IP add is not working then, I will double check, but check_to is definantly failing
Iqbal
On 9/2/2005, "Greger V. Teigre" greger@teigre.com wrote:
Yes, you should insert any FQDN or IP. I don't think any DNS resolving is done. g-) ----- Original Message ----- From: "Iqbal" iqbal@gigo.co.uk To: "Greger V. Teigre" greger@teigre.com Cc: serusers@lists.iptel.org Sent: Thursday, September 01, 2005 02:19 PM Subject: Re: [Serusers] is_uri_host_local
can you put IP address instead of FQDN,
Iqbal
Greger V. Teigre wrote:
This is an example: # ---------------------------------------------------------------- # Stop Open Relay Section # ---------------------------------------------------------------- if (method=="INVITE") { # If this call does not originate from us and is not for a local user, we do not accept call if (!(is_from_local() || is_uri_host_local())) { sl_send_reply("403", "Please register to use our services"); break; }; };
If the table is populated properly. g-)
Iqbal wrote:
Hi
Will this detect IP address also in the domain table, I have moved part of my setup to domain and IP mode, to support quintum boxes, but the call is failing on when I check
else if (!is_from_local() && !is_uri_host_local()) {
sl_send_reply("403", "Please register to use our service"); break;
in my setup.
The from part is not local, hence the is_from_local will fail, the is_uri_host_local should work since the RURI contains the Ip address of my proxy, normally it would contain the FQDN.
Iqbal
Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
.