I'm already making calls from file, but I want to put TtM(MyMacro)
dial options. The call file haves these properties:
$callFileOptions = "Channel: SIP/Algar_AMD/$phoneNumber
\nCallerid: $phoneNumber
\nMaxRetries: 0
\nRetryTime: 1
\nWaitTime: 30
\nContext: from-internal
\nExtension: $internalExtension
\nPriority: 1";
This configuration will make external call first and when answered it will be transferred to internal extension.
I've tried to change the Channel
property to SIP/Algar_AMD/$phoneNumber,300,TtM(MyMacro)
, SIP/Algar_AMD/$phoneNumber,,TtM(MyMacro)
and SIP/Algar_AMD/$phoneNumber|TtM(MyMacro)
, but to no avail.
MyMacro will execute the AMD application to detect machine/human answer.