Hi all! In the FreeSWITCH default configuration, a call to a registered extension is routed to voicemail after 30 seconds. If the extension is not registered, the call is routed immediately to voicemail. I would like to always wait 30 seconds before the call goes to voicemail. From the outside you should not be able to find out if an extension is registered or not. I have already experimented with the following setting: <action application = "set" data = "continue_on_fail = USER_NOT_REGISTERED" /> Unfortunately unsuccessful. Can someone give me a hint? /micha
I guess you could do a dialplan condition based on the return from sofia_contact or something of the sort to replace the bridge with just ringback tones for the same amount of time? On Sep 8, 2014, at 4:02 AM, Micha Knop <micha.knop@gmail.com> wrote:
Hi all!
In the FreeSWITCH default configuration, a call to a registered extension is routed to voicemail after 30 seconds. If the extension is not registered, the call is routed immediately to voicemail.
I would like to always wait 30 seconds before the call goes to voicemail. From the outside you should not be able to find out if an extension is registered or not.
I have already experimented with the following setting:
<action application = "set" data = "continue_on_fail = USER_NOT_REGISTERED" />
Unfortunately unsuccessful. Can someone give me a hint?
/micha
Do you mean something like that? <condition field="sofia_contact" expression="error/user_not_registered"> <action application="ring_ready"/> <action application="sleep" data="30000"/> <action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/> <anti-action application="set" data="call_timeout=30"/> <anti-action application="set" data="hangup_after_bridge=true"/> <anti-action application="set" data="continue_on_fail=true"/> <anti-action application="bridge" data="user/${dialed_extension}@${domain_name}"/> <anti-action application="answer"/> <anti-action application="sleep" data="2000"/> <anti-action application="bridge" data="loopback/app=voicemail:default ${domain_name} ${dialed_extension}"/> </condition> 2014-09-08 16:28 GMT+02:00 Michael Jerris <mike@jerris.com>:
I guess you could do a dialplan condition based on the return from sofia_contact or something of the sort to replace the bridge with just ringback tones for the same amount of time?
Why not: <action application="set" data="continue_on_fail=USER_NOT_REGISTERED"/> <action application="bridge" data="user/1002"/> <action application="playback" data="tone_stream://L=6;%(2000,4000,440,480)" /> This work for me,
Hm, now the call is no longer going to the voice box, if the extension is logged... /micha 2014-09-10 18:01 GMT+02:00 Phillip Jones <pjintheusa@gmail.com>:
Why not:
<action application="set" data="continue_on_fail=USER_NOT_REGISTERED"/> <action application="bridge" data="user/1002"/> <action application="playback" data="tone_stream://L=6;%(2000,4000,440,480)" />
This work for me,
_________________________________________________________________________ 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-powered IP PBX: The CudaTel Communication Server http://www.cudatel.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)
-
Micha Knop
-
Michael Jerris
-
Phillip Jones