Re: [asterisk-users] Sending Calls via SIP trunk from several different IP addresses from same Asterisk Machine, to the same destination IP

2016-05-27 Thread Trey Hilyard
If you are using PJSIP, you should be able to define a different transport
for each source IP that you want to use and simply tie the endpoint to your
provider to the appropriate transport. Obviously, you'd need to define the
IP on the interface as well. You could use the same interface with multiple
IPs or, if you need to separate the traffic over unique links (not likely,
I imagine), you could always tie them to different interfaces if needed.

On Fri, May 27, 2016 at 1:09 AM Attila Megyeri <amegy...@minerva-soft.com>
wrote:

>
> If I had just two such users, I would be fine.
> But having 10-20 or even more? It is not a nice, scalable solution...
>
>
> -Original Message-
> From: asterisk-users-boun...@lists.digium.com [mailto:
> asterisk-users-boun...@lists.digium.com] On Behalf Of Neeraj Chand
> Sent: Thursday, May 26, 2016 11:14 PM
> To: Asterisk Users Mailing List - Non-Commercial Discussion <
> asterisk-users@lists.digium.com>
> Subject: Re: [asterisk-users] Sending Calls via SIP trunk from several
> different IP addresses from same Asterisk Machine, to the same destination
> IP
>
> How about running a second asterisk instance on the same box with
> different IP/Port combo
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Sending Calls via SIP trunk from several different IP addresses from same Asterisk Machine, to the same destination IP

2016-05-27 Thread Attila Megyeri

If I had just two such users, I would be fine.
But having 10-20 or even more? It is not a nice, scalable solution...


-Original Message-
From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Neeraj Chand
Sent: Thursday, May 26, 2016 11:14 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion 
<asterisk-users@lists.digium.com>
Subject: Re: [asterisk-users] Sending Calls via SIP trunk from several 
different IP addresses from same Asterisk Machine, to the same destination IP

How about running a second asterisk instance on the same box with different 
IP/Port combo
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Sending Calls via SIP trunk from several different IP addresses from same Asterisk Machine, to the same destination IP

2016-05-26 Thread Neeraj Chand
How about running a second asterisk instance on the same box with different 
IP/Port combo
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Sending Calls via SIP trunk from several different IP addresses from same Asterisk Machine, to the same destination IP

2016-05-26 Thread Attila Megyeri
Hi,

Unfortunately this is not the case.
For some reasons (separation, fraud detection) they separate the customer using 
their source IP address. So I am still looking for some solution.

Thanks,
Attila

From: asterisk-users-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Glenn Geller 
(VDOPh)
Sent: Wednesday, May 25, 2016 11:47 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion 
<asterisk-users@lists.digium.com>
Subject: Re: [asterisk-users] Sending Calls via SIP trunk from several 
different IP addresses from same Asterisk Machine, to the same destination IP

Hi,

Usually, the trunk provider(s) provide a mechanism to support this, and it's 
the "Tech Prefix" or just "Prefix".

So, for Tenant 1, send 12348005551212 and for Tenant 2, send 56788005551212.

They'll then strip the prefix, and send along to 8005551212

Most trunk providers worth anything will support this type of termination.

Hope this helps,

Glenn @ VDO

On Wed, May 25, 2016 at 2:13 PM, Attila Megyeri 
<amegy...@minerva-soft.com<mailto:amegy...@minerva-soft.com>> wrote:
Hi!

I would like to reopen a discussion that I saw a couple of years ago, with the 
subject  “Sending Calls via SIP trunk from two different IP addresses from same 
Asterisk Machine”

The use case is simpe: There are providers that want to see a separate source 
IP address for each of their customers SIP trunks. Now, if we have an asterisk 
box with several customers, we have a problem.

Does anyone have experience in this topic? How could we send outgoing calls (to 
the same destination IP) from different source IPs depending on the caller ID 
(Based on From: field, sip account, preferred-identity, whatever).

I was thinking about some Kamailio, or SBC that would take the calls from 
asterisk using a user/pass authentication on a single interface, and initiate 
calls from a dedicated IP address for each customer.
Any better idea?

Thanks

Attila

--
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Sending Calls via SIP trunk from several different IP addresses from same Asterisk Machine, to the same destination IP

2016-05-25 Thread Neeraj Chand
And if we were the trunk provider in this case - I would probably trunk it to a 
separate machine, or run a second instance of asterisk on the same machine and 
bind it to the secondary IP address / sip port combo, peer the two instances 
and then send it out via the second instance. 



Sent from my iPhone

> On 26 May 2016, at 7:46 AM, Glenn Geller (VDOPh)  wrote:
> 
> Hi,
> 
> Usually, the trunk provider(s) provide a mechanism to support this, and it's 
> the "Tech Prefix" or just "Prefix".
> 
> So, for Tenant 1, send 12348005551212 and for Tenant 2, send 56788005551212.
> 
> They'll then strip the prefix, and send along to 8005551212
> 
> Most trunk providers worth anything will support this type of termination.
> 
> Hope this helps,
> 
> Glenn @ VDO
> 
>> On Wed, May 25, 2016 at 2:13 PM, Attila Megyeri  
>> wrote:
>> Hi!
>> 
>>  
>> 
>> I would like to reopen a discussion that I saw a couple of years ago, with 
>> the subject  “Sending Calls via SIP trunk from two different IP addresses 
>> from same Asterisk Machine”
>> 
>>  
>> 
>> The use case is simpe: There are providers that want to see a separate 
>> source IP address for each of their customers SIP trunks. Now, if we have an 
>> asterisk box with several customers, we have a problem.
>> 
>>  
>> 
>> Does anyone have experience in this topic? How could we send outgoing calls 
>> (to the same destination IP) from different source IPs depending on the 
>> caller ID (Based on From: field, sip account, preferred-identity, whatever).
>> 
>>  
>> 
>> I was thinking about some Kamailio, or SBC that would take the calls from 
>> asterisk using a user/pass authentication on a single interface, and 
>> initiate calls from a dedicated IP address for each customer.
>> 
>> Any better idea?
>> 
>>  
>> 
>> Thanks
>> 
>>  
>> 
>> 
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [asterisk-users] Sending Calls via SIP trunk from several different IP addresses from same Asterisk Machine, to the same destination IP

2016-05-25 Thread Glenn Geller (VDOPh)
Hi,

Usually, the trunk provider(s) provide a mechanism to support this, and
it's the "Tech Prefix" or just "Prefix".

So, for Tenant 1, send 12348005551212 and for Tenant 2, send 56788005551212.

They'll then strip the prefix, and send along to 8005551212

Most trunk providers worth anything will support this type of termination.

Hope this helps,

*Glenn @ VDO*


On Wed, May 25, 2016 at 2:13 PM, Attila Megyeri 
wrote:

> Hi!
>
>
>
> I would like to reopen a discussion that I saw a couple of years ago, with
> the subject  “Sending Calls via SIP trunk from two different IP addresses
> from same Asterisk Machine”
>
>
>
> The use case is simpe: There are providers that want to see a separate
> source IP address for each of their customers SIP trunks. Now, if we have
> an asterisk box with several customers, we have a problem.
>
>
>
> Does anyone have experience in this topic? How could we send outgoing
> calls (to the same destination IP) from different source IPs depending on
> the caller ID (Based on From: field, sip account, preferred-identity,
> whatever).
>
>
>
> I was thinking about some Kamailio, or SBC that would take the calls from
> asterisk using a user/pass authentication on a single interface, and
> initiate calls from a dedicated IP address for each customer.
>
> Any better idea?
>
>
>
> Thanks
>
>
>
> Attila
>
> --
> _
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>http://www.asterisk.org/hello
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>http://lists.digium.com/mailman/listinfo/asterisk-users
>
-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
   http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users