-----
Original Message -----
From: "Arek Bekiersz" <sip(a)perceval.net>
To: <serusers(a)lists.iptel.org>
Sent: Friday, November 25, 2005 4:36 PM
Subject: Re: [Serusers] domain and "myself" question
Hello Kyriakos,
I have created a custom function in 'domain' module.
Function is called is_uri_host_local_rewrite()
It checks if host in Request URI is local more accurately.
If it is numeric IP, it search DNS for FQDN.
If found, function searches for it in 'domain' MySQL table.
If found as well, it rewrites Request URI with this FQDN.
It checks also DNS aliases.
I use it in production for few months now, have no problems.
If you want, I can send you this modification on priv or I can send it
on the list?
--
Arek
Kyriakos Mavromichalis wrote:
>Hi,
> currently i have a configuration that works when UA use ip
>adresseses for contacting the server. Also ip is used for the domain.
>
>What i would like users to do is use a domain ie
>sip1.otenet-telecom.net to register. Domain is setup A record and
>points to the ip of the server.
>Users register ok but when they try to make a call, if(uri!=myself)
>returns true and the call does not go through.
>
>uri is number(a)sip1.otenet-telecom.net
>sip1.otenet-telecom.net is in the domain mysql table.
>
>What do i do to get the server recognize the calls from users using the
>domain?
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org