In my opinion hostnames should not be used in header fields which are
processed by machines, like Via, Route & Record-Route, and Contact.
Resolving hostnames puts too much burden on the server, it can be
ambiguous (you can get several IPs for a single hostname). Just remember
that you have to send a DNS query each time you resolve a hostname, in a
single message it can be Via, one or more Route headers, and Contact.
The main purpose of hostnames is to allow humans to remember (otherwise hard
to remember) IP addresses. It makes no sense to me to put them in header
fields which are not for humans.
Jan.
On 12-03 04:46, Chuck Ramirez wrote:
Hello Andrei,
What do you mean by 'is generally a bad ideea', the
only point I see is the SRV problem in the FQDN. What
else makes you think it is a bad idea?
Thanks a lot,
Chuck.
--- Andrei Pelinescu-Onciul
<pelinescu-onciul(a)fokus.fraunhofer.de> wrote:
On Mar 11, 2004 at 13:26, zeusng
<zeus.ng(a)isquare.com.au> wrote:
Hi,
Is it possible to have FQDN in the Via and
Record-route header instead of IP
address in SER?
This is generally a bad ideea, but if you really
want to, there is a
way: set advertised_address="myname.com" in your
config and all your
messages will have "myname.com" in their Via (this
can be any string, no
check will be made). If you want to do it only on a
per message basis
(and not for all messages), use
set_advertised_address("...").
Notice however that in this case any compliant sip
proxy will add a
received=ip to your via, and they will use that ip
when sending the
replies back (and not your fqdn).
More info in sip_router/NEWS, grep after
"advertised".
Andrei
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you?re looking for faster
http://search.yahoo.com
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers