<HTML><HEAD></HEAD>
<BODY dir=ltr>
<DIV dir=ltr>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: 'Calibri'; COLOR: #000000">
<DIV>This would be a very useful feature to have available in dialplan. To be
able vary the length of a call, during the call. </DIV>
<DIV> </DIV>
<DIV>I just emailed the dev list with the thought of adding this feature to
confbridge with the following type of commands:</DIV>
<DIV>same => n,Set(CONFBRIDGE(bridge,max_time)=</DIV>
<DIV>or</DIV>
<DIV>same => n,Set(CONFBRIDGE(bridge,max_datetime)=</DIV>
<DIV>or</DIV>
<DIV>same => n,Set(CONFBRIDGE(bridge,start_datetime)=</DIV>
<DIV>same => n,Set(CONFBRIDGE(bridge,stop_datetime)=</DIV>
<DIV> </DIV>
<DIV>with the following to add some notifications</DIV>
<DIV>same => n,Set(CONFBRIDGE(bridge,hangup_warning)=</DIV>
<DIV>same => n,Set(CONFBRIDGE(bridge,hangup_message)=</DIV>
<DIV> </DIV>
<DIV>The idea was that if you have some call credit it will reduce by the
variable number of callers which will join the same bridge. </DIV>
<DIV> </DIV>
<DIV>Using same => n,Set(TIMEOUT(absolute)= only sets the time out for an
individual call and not the bridge.</DIV>
<DIV> </DIV>
<DIV>Perhaps something that could be used for all call types would be a better
approach rather than modifying individual apps.</DIV>
<DIV> </DIV>
<DIV>Regards<BR></DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV style="FONT: 10pt tahoma">
<DIV><FONT size=3 face=Calibri></FONT> </DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=nir.simionovich@gmail.com
href="mailto:nir.simionovich@gmail.com">Nir Simionovich</A> </DIV>
<DIV><B>Sent:</B> Wednesday, December 17, 2014 8:16 PM</DIV>
<DIV><B>To:</B> <A title=asterisk-dev@lists.digium.com
href="mailto:asterisk-dev@lists.digium.com">Asterisk Developers Mailing List</A>
</DIV>
<DIV><B>Subject:</B> [asterisk-dev] ARI Extending Existing Feature: bridge
control</DIV></DIV></DIV>
<DIV> </DIV></DIV>
<DIV
style='FONT-SIZE: small; TEXT-DECORATION: none; FONT-FAMILY: "Calibri"; FONT-WEIGHT: normal; COLOR: #000000; FONT-STYLE: normal; DISPLAY: inline'>
<DIV dir=ltr>Hi All,
<DIV> </DIV>
<DIV> After shipping out my first patch to ARI, I became hungry :-)</DIV>
<DIV> </DIV>
<DIV> So, now I've set up a slightly higher goal, adding a much required
feature for ARI. I'll describe the problem first, then <BR>I have some
questions. </DIV>
<DIV> </DIV>
<DIV> The Asterisk dial application enables us to limit the duration of
the call and play a warning sound. Once this had been <BR>set, as far as I know,
you can't modify these values externally. When the feature was originally
introduced, over 10 years <BR>ago, the goal was simple: enable a calling card
system to limit the call according to a credit line.</DIV>
<DIV> </DIV>
<DIV> As time went by, people realized that this feature is useful,
however limited. In today's mobile application era, when a <BR>VoIP phone can
actually purchase credit while on the actual call, we need a way to control this
from an external source. </DIV>
<DIV> </DIV>
<DIV> Now, I've started digging into the code, and I've managed to
understand that following (feel free to bash me if I'm wrong):</DIV>
<DIV> </DIV>
<DIV> 1. The time limits are maintained at the bridge structure, not at
the channel - using the ast_bridge_config data structure</DIV>
<DIV> 2. The ARI bridges GET method only retrieves a list of bridges and
their associated channels, not their configurations</DIV>
<DIV> </DIV>
<DIV> So, assuming that I'm reading the <A
title="List all active bridges in Asterisk."
style="FONT-SIZE: 13px; TEXT-DECORATION: none; FONT-FAMILY: monospace,fixed; COLOR: rgb(0,0,255)"
href="http://doxygen.asterisk.org/trunk/db/d0b/resource__bridges_8c.html#f456b35967dc37f869de264ee800f2b8">ast_ari_bridges_list</A>
function from resouce_bridges.c correctly, we retrieve<BR>a snapshot of all
active bridges via the <SPAN
style="FONT-SIZE: 13px; FONT-FAMILY: monospace,fixed; COLOR: rgb(0,0,0); BACKGROUND-COLOR: rgb(245,245,245)">snapshots</SPAN>
variable (if you can call it that). The output is built by iterating through
it.</DIV>
<DIV> </DIV>
<DIV> Now, my questions:</DIV>
<DIV> </DIV>
<DIV> 1. Is there a way to obtain the information in ast_bridge_config for
each of the iterated bridges, then output it via the JSON response?</DIV>
<DIV> 2. Is there a way to manipulate the configuration of the bridge, via
modifying the associated bridge configuration?</DIV>
<DIV> </DIV>
<DIV> The floor is now open :-)</DIV>
<DIV> </DIV>
<DIV>Nir S</DIV></DIV>
<P>
<HR>
--
<BR>_____________________________________________________________________<BR>--
Bandwidth and Colocation Provided by http://www.api-digital.com
--<BR><BR>asterisk-dev mailing list<BR>To UNSUBSCRIBE or update options
visit:<BR>
http://lists.digium.com/mailman/listinfo/asterisk-dev</DIV></DIV></DIV></BODY></HTML>