Delay and exec after answer
Hello Is it possible to execute some api with delay after answer received? Trying api_on_answer_1='sleep 5000',api_on_answer_2='log -------delayed 5sec after answer------' but 'api_on_answer_2' executed at once Any ideas?
you could use api on answer to schedule an api command On Tuesday, September 1, 2015, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
Hello
Is it possible to execute some api with delay after answer received?
Trying
api_on_answer_1='sleep 5000',api_on_answer_2='log -------delayed 5sec after answer------'
but 'api_on_answer_2' executed at once
Any ideas?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <javascript:;> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <javascript:;> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
api_on_answer_1='sched_api +10 none send_dtmf 1234@100' In Console [DEBUG] switch_event.c:1698 Parsing variable [api_on_answer_1]=[sched_api +10 none send_dtmf 1234@100] Looks good, ... But in 10 seconds: [DEBUG] mod_commands.c:4575 Command send_dtmf(1234@100): INVALID COMMAND! What is wrong?? On 09/01/2015 06:40 PM, Michael Jerris wrote:
you could use api on answer to schedule an api command
On Tuesday, September 1, 2015, Dmitry Mordovin <d.mordovin@dwide.com <mailto:d.mordovin@dwide.com>> wrote:
Hello
Is it possible to execute some api with delay after answer received?
Trying
api_on_answer_1='sleep 5000',api_on_answer_2='log -------delayed 5sec after answer------'
but 'api_on_answer_2' executed at once
Any ideas?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <javascript:;> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <javascript:;> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
send_dtmf isn't an API call, you'll probably want to use an api call like uuid_send_dtmf. On Tue, Sep 1, 2015 at 9:59 AM, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
api_on_answer_1='sched_api +10 none send_dtmf 1234@100'
In Console
[DEBUG] switch_event.c:1698 Parsing variable [api_on_answer_1]=[sched_api +10 none send_dtmf 1234@100]
Looks good, ... But in 10 seconds:
[DEBUG] mod_commands.c:4575 Command send_dtmf(1234@100): INVALID COMMAND!
What is wrong??
On 09/01/2015 06:40 PM, Michael Jerris wrote:
you could use api on answer to schedule an api command
On Tuesday, September 1, 2015, Dmitry Mordovin <d.mordovin@dwide.com> wrote:
Hello
Is it possible to execute some api with delay after answer received?
Trying
api_on_answer_1='sleep 5000',api_on_answer_2='log -------delayed 5sec after answer------'
but 'api_on_answer_2' executed at once
Any ideas?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
-- *Brian West* brian@freeswitch.org *Twitter: @FreeSWITCH , @briankwest* http://www.freeswitchbook.com http://www.freeswitchcookbook.com Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch> *T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
Yes, thank you! Now other issue.. In Console: Parsing variable [api_on_answer_1]=[sched_api +10 none uuid_send_dtmf ${uuid} 1234@100] [CRIT] switch_channel.c:1407 Invalid data (${api_on_answer_1} contains a variable) So, how can I set UUID of originated leg? (Which connected) On 09/01/2015 07:56 PM, Brian West wrote:
send_dtmf isn't an API call, you'll probably want to use an api call like uuid_send_dtmf.
On Tue, Sep 1, 2015 at 9:59 AM, Dmitry Mordovin <d.mordovin@dwide.com <mailto:d.mordovin@dwide.com>> wrote:
api_on_answer_1='sched_api +10 none send_dtmf 1234@100'
In Console
[DEBUG] switch_event.c:1698 Parsing variable [api_on_answer_1]=[sched_api +10 none send_dtmf 1234@100]
Looks good, ... But in 10 seconds:
[DEBUG] mod_commands.c:4575 Command send_dtmf(1234@100): INVALID COMMAND!
What is wrong??
On 09/01/2015 06:40 PM, Michael Jerris wrote:
you could use api on answer to schedule an api command
On Tuesday, September 1, 2015, Dmitry Mordovin <d.mordovin@dwide.com <mailto:d.mordovin@dwide.com>> wrote:
Hello
Is it possible to execute some api with delay after answer received?
Trying
api_on_answer_1='sleep 5000',api_on_answer_2='log -------delayed 5sec after answer------'
but 'api_on_answer_2' executed at once
Any ideas?
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org <mailto:consulting@freeswitch.org> http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org <mailto: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
--
*/Brian West/* brian@freeswitch.org <mailto:brian@freeswitch.org>
*/Twitter: @FreeSWITCH , @briankwest/* http://www.freeswitchbook.com http://www.freeswitchcookbook.com
Got Bugs? Report them here <https://freeswitch.org/jira>! | Reddit: /r/freeswitch <https://www.reddit.com/r/freeswitch>
*T:*+19184209001 | *F:*+19184209002 | *M:*+1918424WEST (9378) *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
participants (3)
-
Brian West
-
Dmitry Mordovin
-
Michael Jerris