[英]How to set dial options in Asterisk callfile
我已經在從文件中撥打電話,但我想輸入TtM(MyMacro)
撥號選項。 調用文件具有以下屬性:
$callFileOptions = "Channel: SIP/Algar_AMD/$phoneNumber
\nCallerid: $phoneNumber
\nMaxRetries: 0
\nRetryTime: 1
\nWaitTime: 30
\nContext: from-internal
\nExtension: $internalExtension
\nPriority: 1";
此配置將首先撥打外線電話,接聽后將轉接至內部分機。
我試圖將Channel
屬性更改為SIP/Algar_AMD/$phoneNumber,300,TtM(MyMacro)
、 SIP/Algar_AMD/$phoneNumber,,TtM(MyMacro)
和SIP/Algar_AMD/$phoneNumber|TtM(MyMacro)
,但是無濟於事。
MyMacro 將執行 AMD 應用程序來檢測機器/人類答案。
知道了!
我在 extensions_custom.conf 的宏是這樣的
[macro-AsteriskMachineDetection]
exten => s,1,BackGround(en/silence/05);
same => n,AMD(3500,630,600,5000,110,50,5,750,5000);
same => n,NoOp(AMDSTATUS = ${AMDSTATUS} - NUMBER = ${CALLERID(number)} - CAUSE = ${AMDCAUSE});
same => n,GotoIf($[${AMDSTATUS}=MACHINE]?machine:human);
same => n(machine),Macro(hangupcall,);
same => n(human),Dial(Local/${EXT_DEST});
我已經將調用文件配置更改為:
$callFileOptions = "Channel: SIP/Algar_AMD/$phoneNumber
\nCallerid: $phoneNumber
\nMaxRetries: 0
\nRetryTime: 1
\nWaitTime: 30
\nContext: from-internal
\nExtension: $internalExtension
\nSetvar: EXT_DEST=$internalExtension
\nApplication: Macro
\nData: AsteriskMachineDetection
\nPriority: 1";
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.