Hello,
I have subscribers that have 2 devices in the location table. These can make and receive call correctly and I can account for the calls.
However I need to account which device has made or received the call as there are charges for one device type but not the other.
I can modify the contact string from the device to add a parameter for example but I can't see how to add that into the accounting records using tm and acc modules.
Thanks for your help.
Regards
John
John Murray writes:
I can modify the contact string from the device to add a parameter for example but I can't see how to add that into the accounting records using tm and acc modules.
acc module has extra param that you can use to add whatever to your accounting record, e.g. device info.
-- juha
Thanks Juha,
Does this also work for forked calls? So if I add an RURI parameter to the contact of each device I can get the one that answered the call?
Thanks
John
On 22 May 2014 12:48, Juha Heinanen jh@tutpro.com wrote:
John Murray writes:
I can modify the contact string from the device to add a parameter for example but I can't see how to add that into the accounting records using tm and acc modules.
acc module has extra param that you can use to add whatever to your accounting record, e.g. device info.
-- juha
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
John Murray writes:
Does this also work for forked calls? So if I add an RURI parameter to the contact of each device I can get the one that answered the call?
accounting record is created when sip proxy gets final reply to invite.
so if you define, for example,
modparam("acc", "db_extra", "translated_ruri=$avp(acc_translated_ruri))
and set $avp(acc_translated_ruri) in branch route, then $ru of winning branch should show up in your accounting record.
give it a try to check if this theory works.
-- juha