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
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
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
.
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
.
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
.
worked out why this was not working, the From address in the Invite was not that of my proxy, it was that of the client....which is what it should not be (see recent post) , so if I add that to trusted all is resolved .....
Iqbal
Greger V. Teigre 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
.
.