<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">(note, lots of useful discussion removed - if you are just joining us, please <DIV>read the thread to this point).<BR><DIV><DIV>On 30 Jan 2006, at 18:42, Olle E Johansson wrote:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I don't think AST_CONTROL frames is the way to go. We must be able</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">to handle this in a more generic way, like I proposed earlier, with either dialplan variables</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">or a dialplan function. Transmission of cost between call legs seems to me like something you want to be in control of in the dial plan. (Your service provider's cost should not be transmitted to your customers).</DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>But sometimes it should be passed through asterisk. Like when you put an asterisk between an existing PBX</DIV><DIV>and the PRI the pbx was connected to. If that PBX does stuff with the AOC (like charging cost centers or</DIV><DIV>limiting call costs) then Asterisk needs to pass it through.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>In at least one of the modes the AOC value is time dependent, you keep getting new (higher !) values</DIV><DIV>through the life of the call, so just setting a single variable is not enough, you want to know when it was last set too.</DIV><BR><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">But I do understand why he wants it in AST_CONTROL frames on the other hand, so it's not an easy fix. Anyone with a suggestion?</DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV>It isn't CONTROL, but it probably should be in a frame. It strikes me as being more like the HTML or TEXT frames</DIV><DIV>in IAX. It would be nice to try and piggy back it on a voice frame, but that might get ugly.</DIV><BR><BLOCKQUOTE type="cite"><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Before you contract KPJ about it, make sure that he agrees to disclaim the code to Digium - otherwise you won't see it in Asterisk but only in his patches.</DIV></BLOCKQUOTE><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Tim.</DIV><DIV><BR class="khtml-block-placeholder"></DIV></DIV><BR><DIV> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica"><A href="http://www.westhawk.co.uk">http://www.westhawk.co.uk</A>/</FONT></P> </DIV><BR></DIV></BODY></HTML>