vijaybrr/prospectconnect — Issue #2: with originate, CDR is not logged for agent call
Author: vijaybrr
Created: 2012-01-10 09:25:16+00:00
State: open

Call Alice's number, and present IVR menu. If Alice presses digit 1,
then dial Bob's Number

I am using Adhearsion AMI Originate API to place a call on one leg,
and on the other leg connecting it to an extension in dialplan and
presenting the
IVR menu. After receiveing the input from from Alice, Bob's number is
dialed from dialplan.
This works fine, But call details for the call A(Originated by
AMI) are not logged to CDR, only call details for call B are logged to
CDR.

I tried using local channel in Originate API, then dial the number A
from the dial plan. This approach fixes the CDR issue, But IVR menu
starts playing as soon as local channel is answered but before the
call is actually answered by Alice. Because of this, Alice can not
hear the IVR menu welcome prompt message from the beginning.