hi ricardo,
for 1.1.x version, try this:
modparam("acc", "multi_leg_enabled", 1)
modparam("acc", "src_leg_avp_id", 110)
modparam("acc", "dst_leg_avp_id", 111)
...
route {
## populate the avps (for Multi call leg accounting):
if (!method=="REGISTER" && !method=="NOTIFY") {
avp_write("$from/username", "$avp(i:110)");
avp_write("$ruri/username", "$avp(i:111)");
};
.....
for 1.2 or cvs :
# for mysql-based accouting, use the names of the columns
modparam("acc", "multi_leg_info",
"leg_src=$avp(i:110);leg_dst=$avp(i:111)")
Do not forget to add src_leg and dst_leg columns in acc table
(leg_src, leg_dst for 1.2)
rafael
On 10/6/06, Ricardo Carvalho <rcarvalho(a)iric.up.pt> wrote:
I want to use Multi Call-Legs accounting to properly
account forwarded
calls made "in the phones". For example user A calls user B which
forwards the call to user C. There is only one SIP call but with 2 legs
( A to B and B to C). Accounting the legs of a call is required for
proper billing of the calls.
As can be seen in acc module documentation, I've added the following 3
lines to my openser.cfg script:
modparam("acc", "multi_leg_enabled", 1)
modparam("acc", "src_leg_avp_id", 110)
modparam("acc", "dst_leg_avp_id", 110)
Although, after testing some forwarded calls, nothing has been written
to src_leg or dst_leg columns of acc table!!
What have I done wrong? How may I implement this feature correctly?
Regards,
Ricardo.
_______________________________________________
Users mailing list
Users(a)openser.org
http://openser.org/cgi-bin/mailman/listinfo/users