On Sat, Dec 11, 2010 at 2:28 PM, Abid Saleem
<abid_freeswitch@live.com> wrote:
Hi,
Sorry I was away from work. Just recalling the radius AAA and credit-time stuff, I am wondering if there is a way to announce the remaining time of 1 minute or 30 seconds before the call has to disconnect.
Please help if you FS supports this feature.
Regards
-----------
Abid Saleem
Date: Mon, 15 Nov 2010 08:53:23 +0100
From:
tculjaga@gmail.com
To:
freeswitch-users@lists.freeswitch.orgSubject: Re: [Freeswitch-users] Radius AAA
<action application="log" data="INFO credit_time=${credit_time}"/>
<action application="sched_hangup" data="+${credit_time:17:-1} ${Core-UUID}"/>
In this scenario you don't have to check for return code, because you will get hangup
if authentication fails.
Hi,
i do it like this:
put this somewhere in the DP before you bridge the call ...
<action inline="true" application="export" data="nolocal:CTIME=${regex(${credit_time}|.*=(.*)|%1)}"/>
<action application="export" data="nolocal:execute_on_answer=execute_extension ANSWERED_CALL XML NXIVR bleg"/>
WTIME is your delay time you want the prompt to be played before the hangup.
<extension name="ANSWERED_CALL">
<condition field="destination_number" expression="^ANSWERED_CALL$">
<action application="export" data="send_accounting_stop_enable=true"/>
<action inline="true" application="export" data="ANSWERED_STATE=ANSWERED"/>
<action application="set" data="playback_delimiter=!"/>
<action application="sched_broadcast" data="+${CTIME} playback::${KILL_CALL_PR} bleg"/>
<action application="sched_broadcast" data="+${expr(${CTIME}-${WTIME})} playback::${ACC_EXP_PR} bleg"/>
<action application="sched_hangup" data="+${CTIME} alloted_timeout aleg"/>
<action application="app_init"/>
</condition>
</extension>