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
Ysroel, First of all you have a root access to the machine. Secondly, you have mod_curl_xml, but it adds things dynamically to FS, and after a restart it will be gone. Ido On Mon, Jan 20, 2014 at 12:55 PM, Yisroel M. Olewski <yisroel@machshevet.com
wrote:
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*
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
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
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 [cid:image001.png@01CF15D2.570A1DF0] +1 (718) 514-2721 +972 (52) 764-9971 Websites * CRM * ERP * Telephony * Inventory * Content Management
participants (3)
-
Hector Geraldino
-
ik
-
Yisroel M. Olewski