[SR-Users] Multihomed kamailio - one IP for each account
Daniel-Constantin Mierla
miconda at gmail.com
Fri May 27 10:04:32 CEST 2016
Hello,
you can set the local socket to be used for sending current sip message by:
$fs = "proto:ip:port";
provided that you have listen = proto:ip:port
There is also a function force_send_socket(...), but takes only static
string parameter.
Cheers,
Daniel
On 26/05/16 21:25, Attila Megyeri wrote:
>
> Hi Daniel,
>
>
>
> Listening is ok, incoming calls are my smallest concern.
>
> But how do I tell kamailio to initiate the call from a specific IP
> (depending ont he user/pass combo is something i can imagine how to do )
>
>
>
> Thanks
>
>
>
>
>
> *From:*sr-users [mailto:sr-users-bounces at lists.sip-router.org] *On
> Behalf Of *Daniel-Constantin Mierla
> *Sent:* Thursday, May 26, 2016 5:03 PM
> *To:* Kamailio (SER) - Users Mailing List <sr-users at lists.sip-router.org>
> *Subject:* Re: [SR-Users] Multihomed kamailio - one IP for each account
>
>
>
> Hello,
>
> if you don't have too many IP addresses that you have to use, then you
> can add many listen parameters in kamailio.cfg.
>
> Otherwise, I think you should considering a firewall that will do
> translation of a source IP based on receiving on a specific port from
> kamailio. It should be more lightweight and you can control it
> independent of kamailio.
>
> Cheers,
> Daniel
>
>
>
> On 25/05/16 17:07, Attila Megyeri wrote:
>
> Hi Folks,
>
>
>
> I am looking for a solution to do the following, basically an
> SBC-like solution.
>
>
>
> I have an internal asterisk system that should make outbound calls
> towards a provider, but that provider authenticates the customer
> based on IP address. And I have many such customers. The provider
> is not willing to make changes to his practice…
>
>
>
> Asterisk is bound to a single IP, so there is not much I can do.
>
> I was thinking about creating several outbound accounts for
> asterisk, and then a multi-homed Kamailio would do the following:
>
> If request comes from user1, Kamailio would send the request to
> the provider from IP1.
>
> If request comes from user2, Kamailio would send the request to
> the provider from IP2.
>
> And so on, for as many IPs as many customers I want to handle.
>
>
>
> Is there a more elegant way to do this?
>
> If not, how should I implement this?
>
>
>
>
>
> Thanks in advance,
>
>
>
> Attila
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
>
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
>
> sr-users at lists.sip-router.org <mailto:sr-users at lists.sip-router.org>
>
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
>
> --
> Daniel-Constantin Mierla
> http://www.asipto.com - http://www.kamailio.org
> http://twitter.com/#!/miconda <http://twitter.com/#%21/miconda> - http://www.linkedin.com/in/miconda
--
Daniel-Constantin Mierla
http://www.asipto.com - http://www.kamailio.org
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20160527/32501bfd/attachment.html>
More information about the sr-users
mailing list