i am using Asterisk call files to call my customers and play a message. it works but there is a problem. track starts playing before customer answers the call. i am using this call file format:
Channel: SIP/Tenor/myNumber
MaxRetries: 0
RetryTime: 3
WaitTime: 30
Application: Playback
Data: myRecorded-message
i tested it with local sip account like below and it works correctly.sound starts playing after answering.
Channel: Local/My-internal-number
MaxRetries: 0
RetryTime: 3
WaitTime: 30
Application: Playback
Data: myRecorded-message
i think the problem is with analog lines.
a also tried these, and not working …
Channel: SIP/Tenor/myNumber
MaxRetries: 0
RetryTime: 3
WaitTime: 30
context: takNetAutoDial
Extension: s
Priority: 1
-------------------------------
[takNetAutoDial]
exten => s,1,Set(TIMEOUT(response)=20)
exten => s,2,Answer
exten => s,3,Wait(2)
exten => s,4,Playback(en/myRecorded-message)
exten => s,5,Hangup
---------------------------------------- ;or
[takNetAutoDial]
exten => s,1,Set(TIMEOUT(response)=20)
exten => s,2,Answer()
exten => s,3,Wait(2)
exten => s,4,Playback(en/myRecorded-message,skip) ; also noanswer
exten => s,5,Hangup
-------------------------------------------- ;or
[takNetAutoDial]
exten => s,1,Set(TIMEOUT(response)=20)
exten => s,n,Answer(10)
exten => s,n,Wait(2)
exten => s,n,Playback(en/myRecorded-message)
exten => s,n,Hangup
whats the problem ?