Hello Eric,

You need to multihome Kamailio so that it is simultaneously present on the external and internal interfaces:

   listen=udp:external.ip:5060
   listen=udp:internal.ip:5060

Then, you need to force requests forwarded to the Asterisk boxes to go out the internal interface explicitly. Prior to t_relay(), set:

   $fs = "udp:internal.ip:5060";

If you want Kamailio to stay in the call path for the entire duration of the dialog, you'll also want to ensure Kamailio puts dual Record-Route headers in place for the ingress and egress interface. The 'enable_double_rr' modparam to the 'rr' module will ensure this.

-- Alex

On 05/15/2015 05:46 PM, Eric Koome wrote:

Hi
I have two boxes with internal and external interfaces. Each has Kamailio at 
the public interface and asterisk on the internal one.

Making calls within a box is fine but would like to load balance using the 
other asterisk box.

However using dispatcher I have noticed packets are not being routed from 
Kamailo to the second asterisk.
Packets from Kamailo are originating from the external interface and sent to 
the second asterisk box using private ip address. Off course this is not 
routable. I have tried masquerading but no joy. Do I  need to  change kamailio 
configuration?

I want to  have a set of asterisk boxes behind Kamailio using dispatcher. I'm I 
missing a trick?

Eric



_______________________________________________
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



--
Alex Balashov | Principal | Evariste Systems LLC
303 Perimeter Center North, Suite 300
Atlanta, GA 30346
United States

Tel: +1-800-250-5920 (toll-free) / +1-678-954-0671 (direct)
Web: http://www.evaristesys.com/, http://www.csrpswitch.com/

_______________________________________________
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

Reply via email to