[asterisk-users] asterisk auto dial does not wait for answer

aslay at pinwee.com.my aslay at pinwee.com.my
Thu May 31 12:08:09 MST 2007


Hi All,

I setup auto dial on my asterisk server. The problem
is asterisk does not wait for called party to answer
the call but proceed to process the extension specifed
in my .call file

My sample call file :

hannel: local/0124787924 at outbound-reminder
MaxRetries: 5
RetryTime: 300
WaitTime: 40
Account: Reminder
context: remindem
extension: s
priority: 1
Set: MSG=0135.20070601.0124787924
Set: APPTDT=20070601
Set: APPTTIME=0135
Set: APPTPHONE=0124787924
Set: CALLATTEMPTS=5
Set: CALLDELAY=300

My outbound-reminder context:

[outbound-reminder]
exten => _01N.,1,Dial(Zap/g1/${EXTEN},20)

My remindem context :

[remindem]
exten => s,1,Answer()
exten => s,2,Wait(2)
exten => s,3,Playback(custom/reminder5)

Once asterisk start to execute .call file, my handset
rings but the console shows Playback(custom/reminder5)


Below shows some console messages :

-- Attempting call on local/0124787924 at outbound-reminder for s at remindem:1
(Retry 1)
    -- Executing [0124787924 at outbound-reminder:1]
Dial("Local/0124787924 at outbound-reminder-5223,2",
"Zap/g1/0124787924|20") in new stack
    -- Called g1/0124787924
    -- Zap/3-1 answered Local/0124787924 at outbound-reminder-5223,2
[Jun  1 02:50:09] WARNING[8651]: pbx.c:4976 ast_pbx_outgoing_exten:
Local/0124787924 at outbound-reminder-5223,1 already has a call record??
       > Channel Local/0124787924 at outbound-reminder-5223,1 was answered.
    -- Executing [s at remindem:1]
Answer("Local/0124787924 at outbound-reminder-5223,1", "") in new stack
    -- Executing [s at remindem:2]
Wait("Local/0124787924 at outbound-reminder-5223,1", "2") in new stack
  == Spawn extension (outbound-reminder, 0124787924, 1) exited non-zero on
'Local/0124787924 at outbound-reminder-5223,2'
    -- Executing [s at remindem:3] Playback("Zap/3-1", "custom/reminder5") in
new stack



I really appreciate if some one can help me

Regards
ASLAY

















More information about the asterisk-users mailing list