I was thinking it should generate 9 records so it&#39;ll show up as 3 different calls so we can show CDR properly in web interface as well as calculate billing for users as the user who forwarded the call should be charged for the call. Also if we get INVITE only then we may not get accurate duration of call as actual duration starts when callee accepts the call and ACK is received. Is this scenario wrong?<br>
<br><div class="gmail_quote">On Wed, Jun 11, 2008 at 5:19 PM, Bogdan-Andrei Iancu &lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Perfect !<br>
<br>
regarding multi-leg calls - first of all, there is no need to enabled in for ACK and BYEs - make no sense. usually you want to see all the legs of the call for INVITE.<br>
<br>
Now, about how many records you get - depends on how many AVPs (used of multi-leg acc) you set from the script. If you 3 INVITEs, means you add 3 values for at least of the AVPs .<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Ruchir wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
I had put setflag after t_newtran() previously. Now I moved it before t_newtran() and got records for INVITE, ACK &amp; BYE for normal call perfectly. :)<br>
Then I tested for call forwarding scenario. In this case forwarding is set as below:<br>
90004 -&gt; 90001 -&gt; 90003.<br>
<br>
I called 90004 from 90002 and I got 7 records in acc table. 3 INVITEs, 3 BYEs and only single ACK. Shouldn&#39;t it log 3 ACK messages?<br>
<br>
<br></div><div><div></div><div class="Wj3C7c">
On Wed, Jun 11, 2008 at 4:32 PM, Bogdan-Andrei Iancu &lt;<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>&gt;&gt; wrote:<br>

<br>
 &nbsp; &nbsp;Be sure you set the accounting flag before any t_relay() or<br>
 &nbsp; &nbsp;t_newtran() for the INVITE. To be sure, try to use log/xlog to put<br>
 &nbsp; &nbsp;some debugs in your script and check if the flag is really set<br>
 &nbsp; &nbsp;before t_relay().<br>
<br>
<br>
 &nbsp; &nbsp;Regards,<br>
 &nbsp; &nbsp;Bogdan<br>
<br>
 &nbsp; &nbsp;Ruchir Lists wrote:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;I configured simple acc module to store records in acc table,<br>
 &nbsp; &nbsp; &nbsp; &nbsp;set proper flags. Then tried to call number directly(not with<br>
 &nbsp; &nbsp; &nbsp; &nbsp;forwarding) but still I get only BYE record. Any suggestion?<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp;On Wed, Jun 11, 2008 at 2:43 PM, Bogdan-Andrei Iancu<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>&gt;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>&gt;&gt;&gt; wrote:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Hi Ruchir,<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; There are two aspects here:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1) making acc to work - setting the flags and getting the ACC<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; records<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 2) enabling multi-leg account and putting more info into the<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; accounted info<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; First you should to solve (1) - just getting a simple ACC<br>
 &nbsp; &nbsp; &nbsp; &nbsp;record<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for INVITEs and BYEs (no multi leg accounting) - it this<br>
 &nbsp; &nbsp; &nbsp; &nbsp;working<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for you or you get only BYE acc?<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Regards,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Bogdan<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ruchir Lists wrote:<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Hi All,<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; I&#39;m trying to configure OpenSER with multi-leg<br>
 &nbsp; &nbsp; &nbsp; &nbsp;accounting. I&#39;m<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; using OpenSER 1.2 &amp; radius. I&#39;m using acc_radius table for<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; writing cdr records. I&#39;ve searched through several articles<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and mailing list posts about configuring multi-leg<br>
 &nbsp; &nbsp; &nbsp; &nbsp;accounting<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and everywhere they talk about setting up multi-leg-info<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; parameter of acc module to configure leg source &amp;<br>
 &nbsp; &nbsp; &nbsp; &nbsp;destination<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; and setting up accounting flag. But this is not working for<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; me. I get only BYE record in table if I use this way to<br>
 &nbsp; &nbsp; &nbsp; &nbsp;write<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; multiple records for one call in call forwarding<br>
 &nbsp; &nbsp; &nbsp; &nbsp;scenario. I<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; managed to get multiple records by calling<br>
 &nbsp; &nbsp; &nbsp; &nbsp;acc_rad_request on<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; INVITE, ACK, BYE &amp; CANCEL. For instance, I have 4 users;<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 90001, 90002, 90003, 90004. The call forwarding is<br>
 &nbsp; &nbsp; &nbsp; &nbsp;setup as below:<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 90004 -&gt; 90001 -&gt; 90003.<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; I dial 90004 from 90002 user and it forwards the call<br>
 &nbsp; &nbsp; &nbsp; &nbsp;to 90001<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &amp; then 90003 and they&#39;re connected properlry. However I<br>
 &nbsp; &nbsp; &nbsp; &nbsp;don&#39;t<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get leg source/destination properly and also I get 7-8 bye<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; records for this call. Can anyone guide me in right<br>
 &nbsp; &nbsp; &nbsp; &nbsp;direction<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if I&#39;m doing anything wrong.<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Regards,<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Ruchir<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  &nbsp; &nbsp; &nbsp; &nbsp; ------------------------------------------------------------------------<br>
<br>
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; _______________________________________________<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Users mailing list<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a>&gt;<br></div></div>
 &nbsp; &nbsp; &nbsp; &nbsp;&lt;mailto:<a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a> &lt;mailto:<a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a>&gt;&gt;<div class="Ih2E3d">
<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br>
<br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br>