<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>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. </div><div id="AppleMailSignature"><br></div><div id="AppleMailSignature"><br><br>Sent from my iPhone</div><div><br>On 26 May 2016, at 7:46 AM, Glenn Geller (VDOPh) <<a href="mailto:ggeller@vdo-ph.com">ggeller@vdo-ph.com</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr">Hi,<div><br></div><div>Usually, the trunk provider(s) provide a mechanism to support this, and it's the "Tech Prefix" or just "Prefix".</div><div><br></div><div>So, for Tenant 1, send 12348005551212 and for Tenant 2, send 56788005551212.</div><div><br></div><div>They'll then strip the prefix, and send along to 8005551212</div><div><br></div><div>Most trunk providers worth anything will support this type of termination.</div><div><br></div><div>Hope this helps,</div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><font color="#222222" style="font-size:13px;border-collapse:collapse;font-family:arial,sans-serif"><b>Glenn @ VDO</b></font><p></p></div></div>
<br><div class="gmail_quote">On Wed, May 25, 2016 at 2:13 PM, Attila Megyeri <span dir="ltr"><<a href="mailto:amegyeri@minerva-soft.com" target="_blank">amegyeri@minerva-soft.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="HU" link="#0563C1" vlink="#954F72"><p class="MsoNormal"><span lang="EN-US">Hi!<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">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”<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">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.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">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).<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">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.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US">Any better idea?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">Thanks<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></span></p><span class="HOEnZb"><font color="#888888"><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><br></p></font></span></div></blockquote></div></div></div></blockquote></body></html>