route your inbound call to the "info" app.  You will see the dozens of things you can parse in the dialplan.
You can make a single extension that determines if it is a local domain or not and formulate the dial string.

You have a lot of reading to do before you are authorized to comment on if it's a bad design or not.
http://wiki.freeswitch.org/wiki/Dialplan_XML



On Mon, Jun 23, 2008 at 7:44 AM, Brian West <brian@freeswitch.org> wrote:
Example:

sofia/profile/user@remotedomain.com


/b

On Jun 23, 2008, at 5:36 AM, Sandeep Ammaladinna wrote:

Hi all,
 
  Is it a mandatory requirement that for all outbound calls to an external domain (domains that freeswitch is not responsible for), an entry in the dial plan is required.
 To be more precise, is it a pre condition that the name of the external domain need to be know before making a call. If YES, then I feel it is a bad design, because each time a user wants to call a user from different external domain a new entry in dial plan is required. If the answer is NO, please tell me what is the configuration required apart from DNS records, to be there at the freeswitch.
 
Thanks and Regards,
-Sandeep A
_______________________________________________
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




--
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale@hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888@conference.freeswitch.org
iax:guest@conference.freeswitch.org/888
googletalk:conf+888@conference.freeswitch.org
pstn:213-799-1400