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