I have a click-to-call function which having flow like:
- Originate a call to Extension X by using AMI
- Extension X receives a call from asterisk
- Extension X answers the call
- Dial to another trunk
exten=>myexten,n,Dial(SIP/${my-trunk}/${my-customer-number},60,gC) - my-customer-number Ring
- my-customer-number Answer
- my-customer-number Hangup
My problem is: I want the CDR to record the Billable Seconds from 6 to 7
RIght now the Billable Seconds start from 3 to 7
What I have tried:
- ResetCDR/ForkCDR before the Dial (step 4)
Problem: Billable Seconds start from 5 to 7 (which included my-customer-number Ringing time) - Put option C on Dial to reset CDR
Problem: Billable Seconds still start from 3 to 7, nothing happens
Are there any solution to get Billable Seconds from 6 to 7 by using dialplan?
Thank you all for any advices