Re: [Freeswitch-users] Best way to run originate calls through dial plan
http://wiki.freeswitch.org/wiki/Mod_commands#originate Usage: originate call_url exten|application_name(app_args) [dialplan] [context] [cid_name] [cid_num] [timeout_sec] You can do this via shelling out to fs_cli like your example below or using esl directly from php: http://wiki.freeswitch.org/wiki/Esl Mike On Dec 2, 2009, at 1:23 PM, eaf wrote: I need a way to start a call from the PHP script to the originating number, tell the party on that number to hold on, start another call to destination number, and bridge everything together. On both legs I need to pass custom caller ID. I can of course open direct connections to VOIP gateways right from PHP, but I want to reuse existing routing rules in the dial plan, hence I want to know what's the best way of making originate go through a specific context of the dial plan. As for the number of calls per second, it's going to be only occasionally used. mercutioviz wrote: On Wed, Dec 2, 2009 at 6:47 AM, eaf erandr-j...@usa.net wrote: What would be the best way of making originate() run call through a dial plan (compared to directly going to a specified VOIP gateway). Would it be loopbacks, i.e. smth like this? /opt/freeswitch/bin/fs_cli -x originate {ignore_early_media=true,origination_caller_id_number=xx}loopback/yy/default/XML 'javascript(/opt/freeswitch/conf/dialplan/public/webcall.js zz)' The idea of this is that originate() sets up the first call, then webcall.js plays back a WAV, and bridges the first call with the second one (also set up via loopback). Could you describe the problem that you're trying to solve? That would make it easier to know if what you've come up with is the best solution. How many calls per second were you wanting to generate with this setup? -MC ___ 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 -- View this message in context: http://old.nabble.com/Best-way-to-run-originate-calls-through-dial-plan-tp26610094p26613841.html Sent from the Freeswitch-users mailing list archive at Nabble.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 ___ 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
Re: [Freeswitch-users] Best way to run originate calls through dial plan
On Wed, Dec 2, 2009 at 6:47 AM, eaf erandr-j...@usa.net wrote: What would be the best way of making originate() run call through a dial plan (compared to directly going to a specified VOIP gateway). Would it be loopbacks, i.e. smth like this? /opt/freeswitch/bin/fs_cli -x originate {ignore_early_media=true,origination_caller_id_number=xx}loopback/yy/default/XML 'javascript(/opt/freeswitch/conf/dialplan/public/webcall.js zz)' The idea of this is that originate() sets up the first call, then webcall.js plays back a WAV, and bridges the first call with the second one (also set up via loopback). Could you describe the problem that you're trying to solve? That would make it easier to know if what you've come up with is the best solution. How many calls per second were you wanting to generate with this setup? -MC ___ 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
Re: [Freeswitch-users] Best way to run originate calls through dial plan
I need a way to start a call from the PHP script to the originating number, tell the party on that number to hold on, start another call to destination number, and bridge everything together. On both legs I need to pass custom caller ID. I can of course open direct connections to VOIP gateways right from PHP, but I want to reuse existing routing rules in the dial plan, hence I want to know what's the best way of making originate go through a specific context of the dial plan. As for the number of calls per second, it's going to be only occasionally used. mercutioviz wrote: On Wed, Dec 2, 2009 at 6:47 AM, eaf erandr-j...@usa.net wrote: What would be the best way of making originate() run call through a dial plan (compared to directly going to a specified VOIP gateway). Would it be loopbacks, i.e. smth like this? /opt/freeswitch/bin/fs_cli -x originate {ignore_early_media=true,origination_caller_id_number=xx}loopback/yy/default/XML 'javascript(/opt/freeswitch/conf/dialplan/public/webcall.js zz)' The idea of this is that originate() sets up the first call, then webcall.js plays back a WAV, and bridges the first call with the second one (also set up via loopback). Could you describe the problem that you're trying to solve? That would make it easier to know if what you've come up with is the best solution. How many calls per second were you wanting to generate with this setup? -MC ___ 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 -- View this message in context: http://old.nabble.com/Best-way-to-run-originate-calls-through-dial-plan-tp26610094p26613841.html Sent from the Freeswitch-users mailing list archive at Nabble.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