I've done like Rafael told in the e-mail shown bellow for 1.1.x version,
although I was expecting to see in acc table to be written A B and C
contacts of forwarded calls (when A calls B and B forwards to C), but
there is never written B contact, the one who should be billed for that
call... the entries in my acc table for forwarded calls are like this:
| sip_from | sip_to | i_uri | o_uri | from_uri | to_uri | src_leg |
dst_leg |
|---------------------------------------------------------------------------|
| A | C | C | C | A | C | A |
C |
As seen, my acc table doesn't show B contact!!
How should I edit my openser.cfg file so that B contact be shown in acc
table for forwarded calls?
Thanks,
Ricardo.
Rafael J. Risco G.V. wrote:
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