<div dir="ltr">Hi All,<div><br></div><div>  After shipping out my first patch to ARI, I became hungry :-)</div><div><br></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><br></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><br></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><br></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><br></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><br></div><div>  So, assuming that I'm reading the <a class="" href="http://doxygen.asterisk.org/trunk/db/d0b/resource__bridges_8c.html#f456b35967dc37f869de264ee800f2b8" title="List all active bridges in Asterisk." style="font-family:monospace,fixed;font-size:13px;color:rgb(0,0,255);text-decoration:none">ast_ari_bridges_list</a> function from resouce_bridges.c correctly, we retrieve<br>a snapshot of all active bridges via the <span style="color:rgb(0,0,0);font-family:monospace,fixed;font-size:13px;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><br></div><div>  Now, my questions:</div><div><br></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><br></div><div>  The floor is now open :-)</div><div><br></div><div>Nir S</div></div>