If you re-read Anthony's email, you would get a better idea of how FS gets the ports. There is probably a very good reason why the ports are chosen at an earlier stage that they cannot be changed if binding fails.<div>
<br></div><div>In any case, if changing this affects CPS and stability, it's better not to change at all!</div><div>Regards</div><div>HASSAN</div><div><br></div><div><br><br><div class="gmail_quote">On Sat, Jul 31, 2010 at 01:06, Sergey Okhapkin <span dir="ltr"><<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I can't reserve ports for FS 100% reliable, the FS box works as NAT router<br>
also and kernel can catch any port for NAT mapping.<br>
<br>
Why not just try next available port from the allocated range if the current<br>
selected port is not available? Up to 10 retries.<br>
<div class="im"><br>
On Friday 30 July 2010, Anthony Minessale wrote:<br>
> no, like I said you must reserve the ports you allocated to FreeSWITCH, to<br>
> FreeSWITCH.<br>
> It is smart enough to not use the same ports but it won't deal with<br>
> something else stealing one of them, it will hangup the call with a port<br>
> error.<br>
><br>
> The port is already reserved before it is ever actually open and by the<br>
> time you realize it's already taken it's too late to do anything about it.<br>
> Opening it ahead is a giant waste of resources and would cost you in call<br>
> volume and CPS.<br>
><br>
> On Fri, Jul 30, 2010 at 1:33 PM, Nyamul Hassan <<a href="mailto:mnhassan@usa.net">mnhassan@usa.net</a>> wrote:<br>
> > Is there a workaround for trying to bind to another port within the<br>
> > range, instead of dropping the call?<br>
> ><br>
> > Regards<br>
> > HASSAN<br>
> ><br>
> > On Sat, Jul 31, 2010 at 00:11, Madovsky <<a href="mailto:infos@madovsky.org">infos@madovsky.org</a>> wrote:<br>
> >> ok.<br>
> >> to be sure the UDP port range is for 127.0.0.1 or the ext-rtp-ip ?<br>
> >><br>
> >> ----- Original Message -----<br>
</div><div><div></div><div class="h5">> >> *From:* Anthony Minessale <<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>><br>
> >> *To:* FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
> >> *Sent:* Friday, July 30, 2010 2:04 PM<br>
> >> *Subject:* Re: [Freeswitch-users] udp port range<br>
> >><br>
> >> failure to bind to a port results in a dropped call.<br>
> >> you must allocate the ports to be exclusive to FreeSWITCH if you want to<br>
> >> a avoid that.<br>
> >><br>
> >> On Fri, Jul 30, 2010 at 12:49 PM, Madovsky <<a href="mailto:infos@madovsky.org">infos@madovsky.org</a>> wrote:<br>
> >>> I mean the UDP ports inside the range set in switch conf<br>
> >>> not port 5060 or 5080<br>
> >>><br>
> >>> ----- Original Message -----<br>
> >>> From: "Sergey Okhapkin" <<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>><br>
> >>> To: "FreeSWITCH Users Help" <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
> >>> Sent: Friday, July 30, 2010 6:15 AM<br>
> >>> Subject: Re: [Freeswitch-users] udp port range<br>
> >>><br>
> >>> > No :-(<br>
> >>> ><br>
> >>> > On Friday 30 July 2010, Madovsky wrote:<br>
> >>> >> If FS chooses a busy UDP port taken by another app,<br>
> >>> >> is it recheck another available UDP port ?<br>
> >>> >><br>
> >>> >> Thx<br>
> >>> >><br>
> >>> >> F<br>
> >>> ><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:<br>
> >>><br>
> >>> <a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> >>><br>
> >>> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> >>><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-user" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-user</a><br>
</div></div>> >>>s <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<div class="im">> >><br>
> >> --<br>
> >> Anthony Minessale II<br>
> >><br>
> >> FreeSWITCH <a href="http://www.freeswitch.org/" target="_blank">http://www.freeswitch.org/</a><br>
> >> ClueCon <a href="http://www.cluecon.com/" target="_blank">http://www.cluecon.com/</a><br>
> >> Twitter: <a href="http://twitter.com/FreeSWITCH_wire" target="_blank">http://twitter.com/FreeSWITCH_wire</a><br>
> >><br>
> >> AIM: anthm<br>
</div>> >> <a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a> <<a href="mailto:MSN%253Aanthony_minessale@hotmail.com">MSN%3Aanthony_minessale@hotmail.com</a>><br>
> >> GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><PAYPAL%3Aanthony.minessa<br>
<div class="im">> >><a href="mailto:le@gmail.com">le@gmail.com</a>> IRC: <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch<br>
> >><br>
> >> FreeSWITCH Developer Conference<br>
</div>> >> <a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a> <<a href="mailto:sip%253A888@conference.freeswitch.org">sip%3A888@conference.freeswitch.org</a>><br>
> >> <a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><googletalk%3Aconf%2B888@co<br>
<div class="im">> >><a href="http://nference.freeswitch.org" target="_blank">nference.freeswitch.org</a>> pstn:+19193869900<br>
> >><br>
> >> ------------------------------<br>
> >><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>
> >><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>
> > _______________________________________________<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>
<br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br></div>