On Fri, Nov 2, 2012 at 3:49 PM, Rudy <span dir="ltr">&lt;<a href="mailto:rudy@dynamicpacket.com" target="_blank">rudy@dynamicpacket.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Bogdan,<div><br></div><div> Its great to hear all these ideas for 1.9 from the community. One thing that may also be useful, is some enhancements to the rabbit_mq module. It would be great if this module could also push/send events to a any rabbitmq queue or exchange (maybe based on an avp) . Another thing that may be worth exploring is being able to send ACC via a rabbitmq event. What do you think?</div>

</blockquote><div><br></div><div><br></div><div>I just wanted to throw in my $0.02 here.. And I apologize for pandering. Once I got on it, I realized there&#39;s a lot around this that I&#39;d like to see..</div><div><br>

</div><div>I think this is a great idea. Both being able to dynamically control which rabbit queue to send and to have it native in acc.</div><div><br></div><div>** What about having native acc callbacks in the routing script? that&#39;d make adopting new technologies for accounting really easy. Like this:</div>

<div><br></div><div>on_dialog_complete {</div><div>    new_tech_acc_write(&quot;$avp(extra_params)&quot;);</div><div>}</div><div><br></div><div>on_dialog_established {</div><div>    new_tech_notify_new_call(&quot;$avp(extra_params)&quot;)</div>

<div>}</div><div><br></div><div>(these new_tech_* funcs are just examples of new modules in the future, like couchbase or perhaps a REST query.</div><div><br></div><div>I&#39;m not entirely sure how to go about doing it. But the idea is that the custom &quot;acc callback&quot; routes would be called on specific acc events that would cause acc records to be written. I recognize what I posted above is more of a dialog callback. For my cases specifically, I&#39;d use the cdr flag, and I&#39;d like to know when a call ends. Then I&#39;d write the acc details to the &quot;new technology&quot; backend. So I&#39;m not sure if this is an acc feature or a dialog feature (or perhaps some combination of both).</div>

<div><br></div><div>I&#39;d probably want all the dialog data in a single object (like maybe a json object) or something else easily passable and parsable. A $dlg_json variable would be really awesome for this purpose. I image if cdr_flag was set, it&#39;d have the duration and all in there as well (all the normal stuff it&#39;d be writing to the db).</div>

<div><br></div><div>Bah, Sorry about that, I really went on.</div><div><br></div><div>tl/dr: </div><div>1. new $dlg_json variable that stores all data that would normally be written by a acc write (and maybe some additional dialog specific data)</div>

<div>2. new special routes to act as acc module callbacks to be called at specific acc events, which should also work with the cdr_flag. </div><div><br></div><div>Thanks! </div><div>-Brett</div><div><br></div><div><br></div>

<div><br></div><div><br></div><div><br></div><div><br></div><div> </div></div>