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
Example:/bOn 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