Hello, all.
I'm having Kamailio 3.0.4. Server have 2 physical interfaces, one is private, second is public.
INVITE request is coming to Kamailio from public interface and being routed by Kamailio to one of ther asterisk boxes, which is in private network. Packet is routed to correct interface, but SRC address of packet, containing public Kamailio IP. As of that, asterisk is unable to communicate properly with Kamailio.
I'm not applying any packet changes in Kamailio config and cannot get why Kamailio is doing that?
Kamailio is listening both networks and able to send packets with correct IP, but somewhy sending an invalid one.
Am I doing something wrong?
Thank you.
Evgeniy,
Try enable mhomed=1 option in kamailio.cfg.
If this does not do what you want, explicitly force the outgoing interface by manipulating the $fs pseudovariable prior to relaying/forwarding, e.g.
$fs = "udp:xxx.xxx.xxx.xxx:5060";
t_relay(); ... etc.
Cheers,
-- Alex
On 02/18/2011 10:05 AM, Spinov Evgeniy wrote:
Hello, all.
I'm having Kamailio 3.0.4. Server have 2 physical interfaces, one is private, second is public.
INVITE request is coming to Kamailio from public interface and being routed by Kamailio to one of ther asterisk boxes, which is in private network. Packet is routed to correct interface, but SRC address of packet, containing public Kamailio IP. As of that, asterisk is unable to communicate properly with Kamailio.
I'm not applying any packet changes in Kamailio config and cannot get why Kamailio is doing that?
Kamailio is listening both networks and able to send packets with correct IP, but somewhy sending an invalid one.
Am I doing something wrong?
Thank you.
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users