Well, of course you were right, I just made some wrong assumption.
Openser was working, so I assumed DNS was working, but it was just reading
hosts file.
I assumed I configured correctly DNS (and I did) but I didn't know that one eth
with dhcp rewrites resolv.conf every reboot.
Now it works but I have another problem.
I am binding sofia to sip:*:5067 and apparently can receive messages correctly,
but when I try to send one, it uses the first eth it finds, not the proper one
from route.
E.g.:
[EMAIL PROTECTED]:~/nec/libvoip$ route -e
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
192.168.100.0 192.168.150.11 255.255.255.0 UG 0 0 0 eth2
10.10.150.0 * 255.255.255.0 U 0 0 0 eth1
192.168.150.0 * 255.255.255.0 U 0 0 0 eth2
10.0.2.0 * 255.255.255.0 U 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 eth1
default 10.0.2.2 0.0.0.0 UG 0 0 0 eth0
default 192.168.150.11 0.0.0.0 UG 0 0 0 eth2
when I send to 10.10.150.101, the source is 10.0.2.15, so the message is lost.
The correct outgoing interface should be 10.10.150.100
Am I missing a sofia tag to use the correct souce IP for every message, or it
is not supported (or a bug)?
=============================
Diego Costantini
NEC Europe Ltd.
NEC Laboratories Europe
Network Research Division
Kurfuersten-Anlage 36
69115 Heidelberg
Germany
[EMAIL PROTECTED]
http://www.nw.neclab.eu
=============================
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Freitag, 5. September 2008 12:09
To: Diego Costantini
Subject: RE: [Sofia-sip-devel] Can NUA resolve domain names?
Hi,
________________________________
From: ext Diego Costantini [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2008 1:04 PM
To: Zabaluev Mikhail (Nokia-D/Helsinki);
sofia-sip-devel@lists.sourceforge.net
Subject: RE: [Sofia-sip-devel] Can NUA resolve domain names?
I mapped such domain in both hosts file and DNS configuration, thus it
should be resolved somehow (as all the other application do, like Openser).
I am not very familiar with DNS configuration, so could you tell me
exactly where it should definitely be present?
You may first try with dig or nslookup if DNS really works for that host.
Best regards,
Mikhail
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Freitag, 5. September 2008 11:57
To: Diego Costantini; sofia-sip-devel@lists.sourceforge.net
Subject: RE: [Sofia-sip-devel] Can NUA resolve domain names?
Hi,
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
ext Diego Costantini
Sent: Friday, September 05, 2008 12:32 PM
To: sofia-sip-devel@lists.sourceforge.net
Subject: [Sofia-sip-devel] Can NUA resolve domain names?
In a previous thread with different topic I mentioned this
problem, but now I try to make it more clear:
handle = nua_handle(nua, NULL, SIPTAG_TO_STR(to), TAG_END());
or
nua_message(handle,
SIPTAG_TO_STR(to),
SIPTAG_FROM_STR(from),
...
With to = sip:[EMAIL PROTECTED]:5068 doesn't work, with to =
sip:[EMAIL PROTECTED]:5068 it works.
Any hint?
Is japan.lan really resolvable in your DNS configuration? Sofia-SIP
doesn't use the system resolver, so /etc/hosts and such do not work.
Best regards,
Mikhail
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel