For example:
Asterisk: sip.conf (depends on wether you use Asterisk TCP or UDP):
udpbindaddr=10.98.6.5:4444
tcpenable=yes
tcpbindaddr=10.98.6.5:4444
Kamailio:
listen=tcp:10.98.6.5:5060
listen=tcp:10.98.6.5:....
Asterisk >1.6 supports TCP, so maybe you do not even need Kamailio.
If you want to sniff the SIP communication between Asterisk and Kamailio
you have to sniff on the loopback device, e.g.:
tcpdump -i lo port 5060
ngrep -d lo port 5060
you can also sniff on all interfaces, using "any" interface.
regards
Klaus
Am 20.05.2010 15:25, schrieb Nelson Pereira:
Ok, I found out that the firewall was not setup to
allow connection...
So can someone explain to me how I need to setup asterisk and Kamailio so that they both
use the same interface eth0?
10.98.6.5 is Asterisk
10.98.6.5 is Kamailio
10.98.118.20 is the UM
So basically, the connection would look like this:
Asterisk -UDP-> Kamailio -TCP-> UM
So how can I setup all this this way?
Nelson Pereira
-----Original Message-----
From: Klaus Darilion [mailto:klaus.mailinglists@pernau.at]
Sent: Thursday, May 20, 2010 7:51 AM
To: Nelson Pereira
Cc: sr-users(a)lists.sip-router.org
Subject: Re: [SR-Users] Need help in routing configuration
I do not know if having 2 identical routes via 2 different infterfaces
can cause any problems. Just for testing I would remove one of the
redundant routes just to find out if causes a problem.
Further, for testing remove all iptables: iptables -F
Further, Kamailio logs that it is trying to establish a TCP connection
but it fails. Thus, use tcpdump/wireshark to verify if Kamailio really
tries to create a TCP connection. Use 2 tcpdump processes and capture
eth0 and eth1 separately. Then analyze the tcpdump and watch for the SYN
messages. Analyze on which interface they are sent. Analyze the source
IP address of the SYN packages. Are there any TCP responses from the
other party?
Try to start with a simple setup - e.g. only 1 IP address, and only if
it works then make the setup more complex (multiple IP addresses,
multiple routes, ...)
regards
klaus