Hello, Alex.
mhomed=1 exactly what is required, however, using this option is not solved my problem.
Packets are passing OK, but when the call is made, for instance from 100->101, then INVITE is generated from 100 to K ( kamailio ). K is passing this INVITE to A ( Asterisk ). Asterisk is generating backward INVITE for 101.
But in From and To headers changes to From: 100@ASTERISK To: 101@KAMAILIO
where ASTERISK and KAMAILIO are private network addresses. This makes sense as Asterisk do not have any public IP, but it seems to me that I'm missing something.
Is it possible to process INVITES sent from A to K before releasing to public network?
Right now INVITES look like:
From: 100@PUBLIC To: 101@PUBLIC
Backward: From: 101@PRIVATE_ASTERISK_IP To: 100@PRIVATE_KAMAILIO_IP
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 at lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Alex Balashov - Principal Evariste Systems LLC 260 Peachtree Street NW Suite 2200 Atlanta, GA 30303 Tel: +1-678-954-0670 Fax: +1-404-961-1892 Web: http://www.evaristesys.com/