我很难确定是否有触发器或方法可以从Dial操作继续,以允许您检测呼叫是否已接听。似乎Dial直到hangup、busy 或 congested才响应。我错过了什么动作或事件来告诉我线路的另一端何时实际接听电话?希望有这样的东西可用,我只是想念:
exten => s,7,Dial(${ARG1},20,rt) ; Ring the interface, 20 seconds maximum
exten => s,8,Goto(s-${DIALSTATUS},1)
; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)
exten => s-ANSWER(do something)