Hi, I have a question about originate in api_hangup_hook. I'm looking for call back the calling number after hang up, I made a test in dialplan but if I make a call with a mobile phone the originate is so fast that often goes to voicemail. Is there a way to call back after some seconds? My dialplan for this test is: <context name="cb_test"> <extension name="cb_test"> <condition> <action application="pre_answer"/> <action application="set" data="api_hangup_hook=originate sofia/external/${caller_id_number}@x.x.x.x CB000000"/> <action application="sleep" data="5000"/> <action application="hangup"/> </condition> </extension> </context>
You can use sched_api to do that. There is an example here. http://wiki.freeswitch.org/wiki/Mod_commands#sched_api On Mon, Aug 13, 2012 at 2:35 PM, cristian re <cristian.re.work@gmail.com>wrote:
Hi, I have a question about originate in api_hangup_hook. I'm looking for call back the calling number after hang up, I made a test in dialplan but if I make a call with a mobile phone the originate is so fast that often goes to voicemail. Is there a way to call back after some seconds?
My dialplan for this test is:
<context name="cb_test"> <extension name="cb_test"> <condition> <action application="pre_answer"/> <action application="set" data="api_hangup_hook=originate sofia/external/${caller_id_number}@x.x.x.x CB000000"/> <action application="sleep" data="5000"/> <action application="hangup"/> </condition> </extension> </context>
_________________________________________________________________________ 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
Join Us At ClueCon - Aug 7-9, 2012
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
-- Thanks & Regards, Godson Gera SIP Consultant <http://godson.in>
Yes, it works. Thanks 2012/8/13 Godson Gera <godson.g@gmail.com>
You can use sched_api to do that. There is an example here.
http://wiki.freeswitch.org/wiki/Mod_commands#sched_api
On Mon, Aug 13, 2012 at 2:35 PM, cristian re <cristian.re.work@gmail.com>wrote:
Hi, I have a question about originate in api_hangup_hook. I'm looking for call back the calling number after hang up, I made a test in dialplan but if I make a call with a mobile phone the originate is so fast that often goes to voicemail. Is there a way to call back after some seconds?
My dialplan for this test is:
<context name="cb_test"> <extension name="cb_test"> <condition> <action application="pre_answer"/> <action application="set" data="api_hangup_hook=originate sofia/external/${caller_id_number}@x.x.x.x CB000000"/> <action application="sleep" data="5000"/> <action application="hangup"/> </condition> </extension> </context>
_________________________________________________________________________ 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
Join Us At ClueCon - Aug 7-9, 2012
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
-- Thanks & Regards, Godson Gera SIP Consultant <http://godson.in>
_________________________________________________________________________ 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
Join Us At ClueCon - Aug 7-9, 2012
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 (2)
-
cristian re
-
Godson Gera