text: import announce from './announce'
  import forward from './forward'
  import answer from './answer'
  import ask from './ask'
  
  const getAction = (action) => {
    if(action === 'announce') return announce
    if(action === 'forward') return forward
    if(action === 'answer') return answer
    return ask
  }
  
  const dialByExtensionStep = async (req, params)  => {
    const action = getAction(req.query.action)
    return await action(req, params)
  }
  
  export default dialByExtensionStep
  