Hi,
I have a scenario, where call arrives to freeswitch where it's handled on IVR (toll-free number) and there is an option to forward call to external number.
My first idea was to use derived charging option to rate event twice, but user can stay in IVR way longer than on call with forward targed. I tried to do following:
account for both legs
<action application="export" data="cgr_account=%{tenant}"/>
<action application="set" data="cgr_destination=${translate(${destination_number} NO_PLUS)}"/>
<action application="set" data="cgr_subject=${translate(${caller_id_number} NO_PLUS)}"/>
<action application="set" data="cgr_category=USD*inbound"/>
<action application="set" data="cgr_reqtype=*rated"/>
export-nolocal for forwarded leg
<action application="export" data="nolocal:cgr_category=USD*call"/>
<action application="export" data="nolocal:cgr_reqtype=*postpaid"/>
<action application="export" data="nolocal:cgr_account=%{tenant}"/>
<action application="export" data="nolocal:cgr_destination=${translate(${forward_destination} NO_PLUS)}"/>
<action application="export" data="nolocal:cgr_subject=${translate(${destination_number} NO_PLUS)}"/>
but I get only one leg in cdr's. I've tried to manipulate cgr_originhost to try to get duplcation but no luck
<action application="export" data="nolocal:cgr_originhost=${podname}_forward"/>
Is it possible with v0.10 and fs_agent achieve such scenario (to have both A and B legs charged with different call lenght and categories)?
Regards
Marcin