You’ll be better served if you change both your dialplan and your application to work in “outbound mode”:
http://wiki.freeswitch.org/wiki/Mod_event_socket#Outbound
I don’t think you can achieve #1 from within your application – at least not consistently – without adding a “park” entry to the dialplan.
For #2, yes, it’s possible. Just add the gateway info to the bridge string. I usually do something like: bridge sofia/internal/destination@GATEWAY_IP, but you can use “sofia/gateway/destination” if you have
the gateways defined on the XML files.
From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org]
On Behalf Of Yisroel M. Olewski
Sent: Monday, January 20, 2014 5:55 AM
To: freeswitch-users@lists.freeswitch.org
Subject: [Freeswitch-users] Dynamic Xml (extension includes and gateway bridging)
Hello everybody
I have a .net application that connects to a FreeSWITCH instance and handles incoming calls
I do not have easy access to the xml files
I have 2 issues which I think might be similar
1.
Parking: I need to preconfigure all incoming calls to park right away, otherwise the esl commands are ignored (as
http://wiki.freeswitch.org/wiki/Mod_event_socket#Inbound ). How can I do this via code without needing to change the files physically? I haven’t found any documentation for anything like
this
2.
Bridging: I need to be able to dynamically bridge to gateways listed in an external database, so it wouldn’t be practical to keep updating the gateway files. Is it possible to bridge via esl to an arbitrary gateway with me providing
host and credentials etc?
Sincerely,
Yisroel M. Olewski
CEO

+1 (718) 514-2721
+972 (52) 764-9971
Websites · CRM · ERP · Telephony · Inventory · Content Management