Hello,
when the call A -> B is forwarded to C, then you need to have in your
script:
avp_write("A", "$avp(i:110)");
avp_write("B", "$avp(i:111)");
avp_write("B", "$avp(i:110)");
avp_write("C", "$avp(i:111)");
A, B, C are the SIP addresses of the parties involved in this call.
Cheers,
Daniel
On 01/08/07 23:14, Howard Tang wrote:
Hi,
Did anyone successfully setup call accounting for call forward? I have
been searching for a working example for few days on google, I still
couldn't find any working example.
The config I have at the moment is
modparam("acc", "multi_leg_enabled", 1)
modparam("acc", "src_leg_avp_id", 110)
modparam("acc", "dst_leg_avp_id", 111)
In the main route,
if (!method=="REGISTER" && !method=="NOTIFY") {
avp_write("$from/username", "$avp(i:110)");
avp_write("$ruri/username", "$avp(i:111)");
};
Let say A call B and B forward call to C, the record in the acc table
is all
A to C without B in any one of the record for billing purpose. The
Call forward was set on the UA.
Can anyone give me a hand on this please?