I was thinking it should generate 9 records so it'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 <<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;">
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 & 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><div><div></div><div class="Wj3C7c">
On Wed, Jun 11, 2008 at 4:32 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>
Be sure you set the accounting flag before any t_relay() or<br>
t_newtran() for the INVITE. To be sure, try to use log/xlog to put<br>
some debugs in your script and check if the flag is really set<br>
before t_relay().<br>
<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Ruchir Lists wrote:<br>
<br>
I configured simple acc module to store records in acc table,<br>
set proper flags. Then tried to call number directly(not with<br>
forwarding) but still I get only BYE record. Any suggestion?<br>
<br>
On Wed, Jun 11, 2008 at 2:43 PM, Bogdan-Andrei Iancu<br>
<<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>><br>
<mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a><br>
<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<br>
record<br>
for INVITEs and BYEs (no multi leg accounting) - it this<br>
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<br>
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<br>
accounting<br>
and everywhere they talk about setting up multi-leg-info<br>
parameter of acc module to configure leg source &<br>
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<br>
write<br>
multiple records for one call in call forwarding<br>
scenario. I<br>
managed to get multiple records by calling<br>
acc_rad_request on<br>
INVITE, ACK, BYE & CANCEL. For instance, I have 4 users;<br>
90001, 90002, 90003, 90004. The call forwarding is<br>
setup as below:<br>
90004 -> 90001 -> 90003.<br>
<br>
I dial 90004 from 90002 user and it forwards the call<br>
to 90001<br>
& then 90003 and they're connected properlry. However I<br>
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<br>
direction<br>
if I'm doing anything wrong.<br>
<br>
Regards,<br>
Ruchir<br>
------------------------------------------------------------------------<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a><br>
<mailto:<a href="mailto:Users@lists.openser.org" target="_blank">Users@lists.openser.org</a>><br></div></div>
<mailto:<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>
<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>
<br>
</div></blockquote>
<br>
</blockquote></div><br>