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.
I can't reserve ports for FS 100% reliable, the FS box works as NAT router
also and kernel can catch any port for NAT mapping.
Why not just try next available port from the allocated range if the current
selected port is not available? Up to 10 retries.
On Friday 30 July 2010, Anthony Minessale wrote:
> no, like I said you must reserve the ports you allocated to FreeSWITCH, to
> FreeSWITCH.
> It is smart enough to not use the same ports but it won't deal with
> something else stealing one of them, it will hangup the call with a port
> error.
>
> The port is already reserved before it is ever actually open and by the
> time you realize it's already taken it's too late to do anything about it.
> Opening it ahead is a giant waste of resources and would cost you in call
> volume and CPS.
>
> On Fri, Jul 30, 2010 at 1:33 PM, Nyamul Hassan <mnhassan@usa.net> wrote:
> > Is there a workaround for trying to bind to another port within the
> > range, instead of dropping the call?
> >
> > Regards
> > HASSAN
> >
> > On Sat, Jul 31, 2010 at 00:11, Madovsky <infos@madovsky.org> wrote:
> >> ok.
> >> to be sure the UDP port range is for 127.0.0.1 or the ext-rtp-ip ?
> >>
> >> ----- Original Message -----
> >>>s http://www.freeswitch.org> >> *From:* Anthony Minessale <anthony.minessale@gmail.com>
> >> *To:* FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org>
> >> *Sent:* Friday, July 30, 2010 2:04 PM
> >> *Subject:* Re: [Freeswitch-users] udp port range
> >>
> >> failure to bind to a port results in a dropped call.
> >> you must allocate the ports to be exclusive to FreeSWITCH if you want to
> >> a avoid that.
> >>
> >> On Fri, Jul 30, 2010 at 12:49 PM, Madovsky <infos@madovsky.org> wrote:
> >>> I mean the UDP ports inside the range set in switch conf
> >>> not port 5060 or 5080
> >>>
> >>> ----- Original Message -----
> >>> From: "Sergey Okhapkin" <sos@sokhapkin.dyndns.org>
> >>> To: "FreeSWITCH Users Help" <freeswitch-users@lists.freeswitch.org>
> >>> Sent: Friday, July 30, 2010 6:15 AM
> >>> Subject: Re: [Freeswitch-users] udp port range
> >>>
> >>> > No :-(
> >>> >
> >>> > On Friday 30 July 2010, Madovsky wrote:
> >>> >> If FS chooses a busy UDP port taken by another app,
> >>> >> is it recheck another available UDP port ?
> >>> >>
> >>> >> Thx
> >>> >>
> >>> >> F
> >>> >
> >>> > _______________________________________________
> >>> > FreeSWITCH-users mailing list
> >>> > FreeSWITCH-users@lists.freeswitch.org
> >>> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> >>> > UNSUBSCRIBE:
> >>>
> >>> http://lists.freeswitch.org/mailman/options/freeswitch-users
> >>>
> >>> > http://www.freeswitch.org
> >>>
> >>> _______________________________________________
> >>> FreeSWITCH-users mailing list
> >>> FreeSWITCH-users@lists.freeswitch.org
> >>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> >>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-user
> >>> >> MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com>
> >> --
> >> Anthony Minessale II
> >>
> >> FreeSWITCH http://www.freeswitch.org/
> >> ClueCon http://www.cluecon.com/
> >> Twitter: http://twitter.com/FreeSWITCH_wire
> >>
> >> AIM: anthm
> >> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessa
> >> sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org>
> >> googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@co
> >>nference.freeswitch.org> pstn:+19193869900
> >>
> >> ------------------------------
> >>
> >> _______________________________________________
> >> FreeSWITCH-users mailing list
> >> FreeSWITCH-users@lists.freeswitch.org
> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> >> http://www.freeswitch.org
> >>
> >>
> >> _______________________________________________
> >> FreeSWITCH-users mailing list
> >> FreeSWITCH-users@lists.freeswitch.org
> >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> >> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> >> http://www.freeswitch.org
> >
> > _______________________________________________
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users@lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
>
_______________________________________________
FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org