To answer a telephone call that is in the ALERTING state, your CCXML document must use an <accept> element within a <transition> element:
<transition event="connection.alerting" name="evt"> <accept connectionid="evt.connectionid"/> </transition>
The connectionid is a unique string used to identify the telephone call and is assigned automatically.