<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Michael,<div><br></div><div>what you want to achieve is pretty simple to do with FreeSWITCH, and is quite close from what I do.</div><div><br></div><div>To get you started, here are the major changes you need to apply to the default conf:</div><div><br></div><div>-keep external SIP profile but change its port to 5060</div><div>-modify internal SIP profile to be identical to external profile and bind it to 5080 (you could also do everything with external profile, but I think it's simpler and easier to understand to have 2 profiles) -&gt; this is required because the default internal profile expects registration</div><div><br></div><div>Then you end up with 2 profiles using the public context.</div><div>Then if you prefer the simple way, you can change internal to use another context "younameit" (could be "internal").</div><div>Or you do like me: you split calls coming into public to a specific contex, based on source IP with such extensions in public.xml:</div><div><br></div><div><div>&nbsp;&nbsp;&lt;extension name="from_provider"&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;condition field="network_addr" expression="X.X.X.X"/&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;condition field="destination_number" expression="^(.*)$"&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;action application="transfer" data="$1 XML provider"/&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;/condition&gt;</div><div>&nbsp;&nbsp;&lt;/extension&gt;</div></div><div><br></div><div><div><div>&nbsp;&nbsp;&lt;extension name="from_sipxecs"&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;condition field="network_addr" expression="Y.Y.Y.Y"/&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;condition field="destination_number" expression="^(.*)$"&gt;</div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;action application="transfer" data="$1 XML sipxecs"/&gt;</div><div>&nbsp;&nbsp; &nbsp;&lt;/condition&gt;</div><div>&nbsp;&nbsp;&lt;/extension&gt;</div></div></div><div><br></div><div>Then you can add 2 dialplans, provider and sipxecs (I add them in specific files I put in dialplan/, I find it more readable).</div><div><br></div><div>And you just have to add the right extensions in those dialplans to bridge calls to the other side.</div><div>That's the easy part.</div><div><br></div><div>In other words, an Ingate Siparator for this would be quite overkill.</div><div>Remember that FS is not a proxy, so if your SipXecs sends some specific headers, you may need to deal with them and put them back on the B-leg to the provider.</div><div><br></div><div><div apple-content-edited="true"> <div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#1C00FF">David Ponzone &nbsp;</font><font class="Apple-style-span" color="#000000" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Direction Technique</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">email: <a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a></span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: &nbsp; &nbsp; &nbsp;01 74 03 18 97</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">gsm: &nbsp; 06 66 98 76 34</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'"><br></font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">Service Client<span class="Apple-converted-space">&nbsp;</span></font><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" color="#FF0000">IP</font></font><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'">eva</font></div><div><font class="Apple-style-span" color="#1C00FF" face="'Helvetica Neue'"><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; "><div><font class="Apple-style-span" face="'Helvetica Neue'"><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 13px; ">tel: &nbsp; &nbsp; &nbsp;0811 46 26 26</span></font></font></div><div><font class="Apple-style-span" face="'Helvetica Neue'" size="3"><span class="Apple-style-span" style="font-size: 13px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span style="text-decoration: underline; "><a href="BLOCKED::http://www.ipeva.fr/">www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149); ">&nbsp; -&nbsp; &nbsp;<span style="color: rgb(0, 34, 243); text-decoration: underline; "><a href="BLOCKED::http://www.ipeva-studio.com/">www.ipeva-studio.com</a></span></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span" style="text-decoration: underline; "><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 10px/normal Arial; color: rgb(0, 34, 243); "><span class="Apple-style-span"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-align: justify; font: normal normal normal 10px/normal Arial; color: rgb(192, 192, 192); "><i>Ce message et toutes les pièces jointes sont confidentiels et établis à l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d'altération.&nbsp;</i><b><i>IPeva</i></b><i>&nbsp;décline toute responsabilité au titre de ce message s'il a été altéré, déformé ou falsifié. Si vous n'êtes pas destinataire de ce message, merci de le détruire immédiatement et d'avertir l'expéditeur.</i></div><div style="text-decoration: underline; text-align: justify; "><font class="Apple-style-span" color="#C0C0C0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"> </div><br><div><div>Le 25/08/2010 à 02:17, Michael Scheidell a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div bgcolor="#ffffff" text="#000000">I am in need of putting a sbc or sip proxy in front of our existing sip solution to help solve a very specific problem.<br>The SIP Trunk provider won't send to anything but port 5060, and the existing sip solution listens to port 5080 ONLY.<br>(background:&nbsp;&nbsp; sipxecs.&nbsp; yes, they are using freeswitch inside for a couple of things)<br><br>I have tried simple port redirection with iptables, and while it SEEMS to work, the sip packets don't.<br><br>so, does anyone know of a simple solution? I don't really want to replicate all the users, dial plans, sip trunk accounts on freeswitch.<br><br>Just basically, anything coming in from a certain ip to the freeswitch port 5060, 'sipproxy' it to port 5080 on the internal system.<br>then, anything sent out from the one certain internal ip, sourced on port 5080 to port 5060, send it to the external sip trunk provider.<br><br>Using ip based authentication all around. I assume using an ip based condition with a FWD, (but the FWD would need to be generic)<br>if call comes in from siptrunkprovider&nbsp; to<span class="Apple-converted-space">&nbsp;</span><a class="moz-txt-link-abbreviated" href="mailto:1000@freeswitch.secnap.com:5060">1000@freeswitch.secnap.com:5060</a><span class="Apple-converted-space">&nbsp;</span>, I want it transparently forwarded to<span class="Apple-converted-space">&nbsp;</span><a class="moz-txt-link-abbreviated" href="mailto:1000@sipx.secnap.com:5080">1000@sipx.secnap.com:5080</a><br><br>if an internal call goes out to<span class="Apple-converted-space">&nbsp;</span><a class="moz-txt-link-abbreviated" href="mailto:5619995000@freeswitch.com:5060">5619995000@freeswitch.com:5060</a>, I want it transparently forwarded to<span class="Apple-converted-space">&nbsp;</span><a class="moz-txt-link-abbreviated" href="mailto:5619995000@siptrunkprovider.com:5060">5619995000@siptrunkprovider.com:5060</a><br><br>(yes, I tried simple port mapping.&nbsp; worked with tcp on http, and ALMOST worked with udp on tftp, but audio was mangled)<br><br>sipx suggested purchasing an ingate siperaor.&nbsp; hard to justify $4 or $5K when I could replace sipx with a commercial system for that price.<br>(yes, I could move everything to freeswitch, and I might, but I am under a deadline )<br><br><br><div class="moz-signature">--<span class="Apple-converted-space">&nbsp;</span><br>Michael Scheidell, CTO<br>o: 561-999-5000<br>d: 561-948-2259<br>ISN: 1259*1300<br><font color="#999999">&gt;</font><font color="#cc0000"><span class="Apple-converted-space">&nbsp;</span><b>|<span class="Apple-converted-space">&nbsp;</span></b></font>SECNAP Network Security Corporation<ul class="unnamed1" style="margin-top: 1em; margin-right: 1em; margin-bottom: 1em; margin-left: 1em; padding-top: 1px; padding-right: 1px; padding-bottom: 1px; padding-left: 1px; "><li>Certified SNORT Integrator</li><li>2008-9 Hot Company Award Winner, World Executive Alliance</li><li>Five-Star Partner Program 2009, VARBusiness</li><li>Best in Email Security,2010: Network Products Guide</li><li>King of Spam Filters, SC Magazine 2008</li></ul></div><br><div id="disclaimer.secnap.com"><hr><p>This email has been scanned and certified safe by SpammerTrap®.<span class="Apple-converted-space">&nbsp;</span><br>For Information please see<span class="Apple-converted-space">&nbsp;</span><a href="http://www.secnap.com/products/spammertrap/">http://www.secnap.com/products/spammertrap/</a></p><hr></div><br>_______________________________________________<br>FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><br></div></span></blockquote></div><br></div></body></html>