[Kamailio-Devel] extra accounting from replies
miconda at gmail.com
Tue Dec 9 10:51:14 CET 2008
On 11/21/08 15:08, Henning Westerholt wrote:
> On Thursday 20 November 2008, Daniel-Constantin Mierla wrote:
>> This looks to me like half-hack and has to be reviewed if the contexts
>> of request and reply don't get messed up. I was looking for something
>> else that fixes also this requirement, but not time to check properly
>> the impact to contexts, see next...
>> I was playing with the idea of more generic approach. While the
>> accounting of values from reply can be done now in Kamailio via AVPs (or
>> $var(...) in some cases) set in onreply_route plus onreply_avp_mode, and
>> of course, some more script lines, in particular cases I needed to
>> access reply attributes in failure_route or request attributes in
>> My first thought was to add to TM module two new PV classes:
>> - $req(PV) to be used in onreply_route to access attributes from the
>> request of the transaction
>> - $rpl(PV) to be used in failure_route to access attributes from the reply
>> To solve what you pointed, one has to account $rpl(PV), because acc
>> event is done on a transaction callback.
>> PV will be another valid PV name (e.g., $ru, $hdr(...)), but not
>> $req(...) or $rpl(...).
> Hi Daniel,
> for the moment it possible to work around this limitiation by just copying the
> wanted values in the reply route, as you also mentioned. But the approach you
> suggested is of course more intuitive and has probably a lower overhead.
the functionality has been committed to trunk. Testing and feedback is
More information about the Devel