<div dir="ltr"><div>I've always had my servers have two or three different vlan interfaces. When I was using sip, I only bound to one interface with network segments dedicated to voip phones, but did a great deal of experimentation. I think if the endpoint devices are under your control and to specific groups of IPs or if you just had a few clients with fixed IPs, you can probably do it with a combination of appropriate firewall and routing tables and rules. The rules would have to be symmetrical so the inbound and outbound packets are restricted to a particular interface.</div><br><div>I gave in to the future and switched a big deployment to pjsip a couple of years ago. Since then I've had to connect to a couple of appliance devices that needed to reside in another network, and am operating as you describe - which as pointed out can be done with pjsip.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 17, 2022 at 8:25 PM Thomas Ray <<a href="mailto:tom.ray@blazestudios.com">tom.ray@blazestudios.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;" lang="EN-CA"><div class="gmail-m_5266897828263260796WordSection1"><p class="MsoNormal">Moving to chan_pjsip solves this problem.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><div style="border-color:rgb(181,196,223) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0cm 0cm"><p class="MsoNormal"><b><span style="font-size:12pt;color:black">From: </span></b><span style="font-size:12pt;color:black">asterisk-users <<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>> on behalf of David Cunningham <<a href="mailto:dcunningham@voisonics.com" target="_blank">dcunningham@voisonics.com</a>><br><b>Reply-To: </b>Asterisk Users Mailing List - Non-Commercial Discussion <<a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a>><br><b>Date: </b>Sunday, July 17, 2022 at 5:53 PM<br><b>To: </b>Asterisk Users Mailing List - Non-Commercial Discussion <<a href="mailto:asterisk-users@lists.digium.com" target="_blank">asterisk-users@lists.digium.com</a>><br><b>Subject: </b>Re: [asterisk-users] Listen on 2 of 3 IP addresses<u></u><u></u></span></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><div><p class="MsoNormal">Thank you for that reply, Joshua.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Henning, we can restrict access using the firewall, but unfortunately that doesn't solve the problem with the address that's put in the SDP.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">On Sat, 16 Jul 2022 at 03:14, Henning Follmann <<a href="mailto:hfollmann@itcfollmann.com" target="_blank">hfollmann@itcfollmann.com</a>> wrote:<u></u><u></u></p></div><blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm"><p class="MsoNormal">On Fri, Jul 15, 2022 at 08:57:46AM -0300, Joshua C. Colp wrote:<br>> On Fri, Jul 15, 2022 at 1:37 AM David Cunningham <<a href="mailto:dcunningham@voisonics.com" target="_blank">dcunningham@voisonics.com</a>><br>> wrote:<br>> <br>> > Hello,<br>> ><br>> > We have an Asterisk server with 3 IP addresses, and need to listen on only<br>> > 2 of those. This is with chan_sip. Does anyone know if it's possible?<br>> ><br>> > If Asterisk listens on the third address then it seems to cause problems<br>> > with the media address put in the SDP for our use case.<br>> ><br>> <br>> It's not. The chan_sip module allows you to bind to one thing, either a<br>> specific address or an any address.<br>> <br><br>Well...<br>maybe chan_sip cannot, but your OS can restrict traffic on any port/iface.<br><br>-H<br><br>-- <br>Henning Follmann | <a href="mailto:hfollmann@itcfollmann.com" target="_blank">hfollmann@itcfollmann.com</a><br><br><br>-- <br>_____________________________________________________________________<br>-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br><br>Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" target="_blank">https://community.asterisk.org/</a><br><br>New to Asterisk? Start here:<br> <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><u></u><u></u></p></blockquote></div><p class="MsoNormal"><br clear="all"><br>-- <u></u><u></u></p><div><div><div><div><div><div><div><div><div><div><div><p class="MsoNormal">David Cunningham, Voisonics Limited<br><a href="http://voisonics.com/" target="_blank">http://voisonics.com/</a><br>USA: +1 213 221 1092<br>New Zealand: +64 (0)28 2558 3782<u></u><u></u></p></div></div></div></div></div></div></div></div></div></div></div><p class="MsoNormal">-- _____________________________________________________________________ -- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> -- Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" target="_blank">https://community.asterisk.org/</a> New to Asterisk? Start here: <a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a> asterisk-users mailing list To UNSUBSCRIBE or update options visit: <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><u></u><u></u></p></div></div>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" rel="noreferrer" target="_blank">http://www.api-digital.com</a> --<br>
<br>
Check out the new Asterisk community forum at: <a href="https://community.asterisk.org/" rel="noreferrer" target="_blank">https://community.asterisk.org/</a><br>
<br>
New to Asterisk? Start here:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Getting+Started" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Getting+Started</a><br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" rel="noreferrer" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a></blockquote></div>