<div dir="ltr">A profile is FS listening on a specific IP:port. Associated with that port are various settings, such as auth codecs etc. The result is you can use multiple profiles to listen on multiple IPs and/or ports, and those can use different configurations so that you might for example have one port that anyone can send calls to you on and another more privileged port that requires you authenticate.<div>

<br></div><div>One way to send calls out is to use the dialstring sofia/profilename/destination@ipaddress ... this&#39;ll send the call out from the IP:port of that profile.</div><div><br></div><div>Gateways are configured on a profile. The profile they&#39;re configured on determines the IP:port they send the registrations and calls out from. Additionally they&#39;ll only be up if that profile is running.</div>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 22 April 2014 13:25, Oscar Franzen <span dir="ltr">&lt;<a href="mailto:oscar.franzen@advisa.se" target="_blank">oscar.franzen@advisa.se</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi!<div><br></div><div>I am trying to understand the relationship between profiles and gateways. Can someone explain the relationship or direct me in a direction where I can find more info? (I have already tried the wiki and googled quite a bit).</div>



<div>When would I want more than on external and one internal profile? Would I ever want less than those two? Do I always want to separate internal and external? When would I add more than one gateway for a profile?</div>



<div><br></div><div>I have a SIP trunk and my provider asked me to forward port 5060-5065. So I did that and then I set external_sip_port to 5060. I receive incoming calls on port 5060. Is there a standard way of registering an other port with my SIP trunk provider?</div>



<div><br></div><div>As I only have one gateway (a SIP trunk) for my external profile I don&#39;t really understand the relationship between the profile and gateway. I don&#39;t really understand when I would want more than one gateway for that profile.</div>



<div><br></div><div>I also want to use the internal profile for users to register their softphones directly to my freeswitch server. Do I have to do anything special to get this to work? Will there be any problems from letting two profiles listen on the same port (5060)?<br clear="all">



<div><br></div><br><div dir="ltr"><div><font color="#000000" face="arial, helvetica, sans-serif">Regards</font></div><font face="arial, helvetica, sans-serif" color="#000000">Oscar FranzĂ©n</font></div>
</div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><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" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>