Hi all,
I'm using OpenSER v1.0.1 and i have done an accounting compatible with my billing system. Now i have problem with detection of flow direction for billing reason.
i'm talking about openser 1.0.x:
the problem is when the BYE come from callee. i know the problem is solved in openser1.1.x with the
modparam("acc", "detect_direction", 1)
i have read in modules documentation of 1.0.x that i can use is_direction() of RR module for detect call flow direction but it says that this must be called after loose_route()
so for the accounting i must call setflag before loose_route() but what can i do if i want detect call flow before of exec setflag?
Hmmm i think that i must install OpenSER 1.1.x and test with it
:tele
Ok guys same problem with latest CVS version of OpenSER.
i have in the configuration:
modparam("acc","detect_direction", 1) modparam("acc","radius_flag", 3) modparam("acc","radius_missed_flag", 5)
and something like that:
if (is_method("BYE|CANCEL")) { setflag(3); setflag(4); };
if (loose_route()) { append_hf("P-hint: rr-enforced\r\n"); route(1); }
For the radius accounting i must call setflag before loose_route().
I'm call from my UA to PSTN. when callee hangup the BYE arrived and the radius acct is generated. after radius acct sent i can see in the debug log:
DEBUG:rr:is_direction: param ftag not found
i don't call anywhere is_direction in the config, OpenSER try to match direction because i have activated the modparam "detect_direction" but the incorrect accounting packet was just sent.
any hints?
thanks
:tele