Discussion:
[SR-Users] Listen to to 2 NIC's IP addresses and establish call between
Raj Roy Ghandhi
2014-07-08 07:13:58 UTC
Permalink
Hi Friends,
I have to configure a Kamailio in to meet following requirements

1. PC having 2 NICs (NIC-A and NIC-B) with 2 different IPs (IP-A and IP-B)
from 2 different service providers.

Totally 2 different IPs.

NIC-A attached to provider is a private SIP traffic provider and having
IP-A. (no internet access)
NIC-B attached to internet service provider and having IP-B.

2. I get SIP traffic to IP-A of NIC-A from SIP traffic provider.
3. I need to forward that SIP traffic to another SIP carrier in remote
location using IP-B of NIC-B through internet and have the call establish
without any issue.

How can I achieve this with single instance of Kamailio running on same
machine.

Please advice me.

Best Regards,
Roy.
Varadhan
2014-07-08 10:01:47 UTC
Permalink
you can create listening sockets on different ip addresses using listen

listen IP-A:IP-A-port
listen IP-B:IP-B-port

you can set the $fs (force send socket) which you wanted to use to forward
the packets before t_relay

$fs = IP-B:IP-B-port



-----
Thanks
Varadhan M
--
View this message in context: http://sip-router.1086192.n5.nabble.com/Listen-to-to-2-NIC-s-IP-addresses-and-establish-call-between-tp128866p128871.html
Sent from the Users mailing list archive at Nabble.com.
Raj Roy Ghandhi
2014-07-10 08:16:57 UTC
Permalink
Hi Vardhan,
Thanks for the reply.
That means I have to do that in configuration file?

Best Regards,
Roy
Post by Varadhan
you can create listening sockets on different ip addresses using listen
listen IP-A:IP-A-port
listen IP-B:IP-B-port
you can set the $fs (force send socket) which you wanted to use to forward
the packets before t_relay
$fs = IP-B:IP-B-port
-----
Thanks
Varadhan M
--
http://sip-router.1086192.n5.nabble.com/Listen-to-to-2-NIC-s-IP-addresses-and-establish-call-between-tp128866p128871.html
Sent from the Users mailing list archive at Nabble.com.
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Loading...