<br><br><div class="gmail_quote">On Sat, Dec 11, 2010 at 2:28 PM, Abid Saleem <span dir="ltr">&lt;<a href="mailto:abid_freeswitch@live.com">abid_freeswitch@live.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">




<div>




Hi,<div><br></div><div>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.</div>
<div><br></div><div>Please help if you FS supports this feature.</div><div><br></div><div>Regards</div><div>-----------</div><div>Abid Saleem<br><br><hr>Date: Mon, 15 Nov 2010 08:53:23 +0100<br>From: <a href="mailto:tculjaga@gmail.com" target="_blank">tculjaga@gmail.com</a><br>
To: <a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a><br>Subject: Re: [Freeswitch-users] Radius AAA<br><br><br>
<div><blockquote style="padding-left: 1ex;"><div><br>
     &lt;action application=&quot;log&quot; data=&quot;INFO  credit_time=${credit_time}&quot;/&gt;<br>
</div><div>     &lt;action application=&quot;sched_hangup&quot; data=&quot;+${credit_time:17:-1} ${Core-UUID}&quot;/&gt;<br>
<br>
</div>In this scenario you don&#39;t have to check for return code, because you will get hangup<br>
if authentication fails.<br>
<br></blockquote></div></div></div></blockquote><div><br><br>Hi, <br><br>i do it like this:<br><br><br>put this somewhere in the DP before you bridge the call ...<br><br>     &lt;action inline=&quot;true&quot; application=&quot;export&quot; data=&quot;nolocal:CTIME=${regex(${credit_time}|.*=(.*)|%1)}&quot;/&gt;<br>
     &lt;action application=&quot;export&quot; data=&quot;nolocal:execute_on_answer=execute_extension ANSWERED_CALL XML NXIVR bleg&quot;/&gt;<br><br>WTIME is your delay time you want the prompt to be played before the hangup.<br>
<br><br><br>  &lt;extension name=&quot;ANSWERED_CALL&quot;&gt;<br>    &lt;condition field=&quot;destination_number&quot; expression=&quot;^ANSWERED_CALL$&quot;&gt;<br>      &lt;action application=&quot;export&quot; data=&quot;send_accounting_stop_enable=true&quot;/&gt;<br>
      &lt;action inline=&quot;true&quot; application=&quot;export&quot; data=&quot;ANSWERED_STATE=ANSWERED&quot;/&gt;<br>      &lt;action application=&quot;set&quot; data=&quot;playback_delimiter=!&quot;/&gt;<br>      &lt;action application=&quot;sched_broadcast&quot; data=&quot;+${CTIME} playback::${KILL_CALL_PR} bleg&quot;/&gt;<br>
      &lt;action application=&quot;sched_broadcast&quot; data=&quot;+${expr(${CTIME}-${WTIME})} playback::${ACC_EXP_PR} bleg&quot;/&gt;<br>      &lt;action application=&quot;sched_hangup&quot; data=&quot;+${CTIME} alloted_timeout aleg&quot;/&gt;<br>
      &lt;action application=&quot;app_init&quot;/&gt;<br>    &lt;/condition&gt;<br>  &lt;/extension&gt;<br><br><br><br><br><br> </div></div><br>