[Asterisk-Users] Automatic redial on Hangup

groups at soundscapestudio.net groups at soundscapestudio.net
Sat Jan 21 08:20:10 MST 2006


I know this is a somewhat odd application, but we have a very good 
reason for needing it.

Basically, I want asterisk to automatically redial a caller unless they 
exit the system properly.

Here are some pertinate sections of the dialplan.

[AUTOBCSTART]
EXTEN=001,1,Meetme(${ENC}|pq)
EXTEN=001,2,Goto(CLEANEXIT|001|1)
EXTEN=h,1,Goto(AUTOREDIAL|s|1)  <-----I've also used dial(LOCAL/..)

[AUTOREDIAL]
EXTEN=s,1,ChanIsAvail(ZAP/g1)
EXTEN=s,2,Dial(Zap/g1/${CID}|TtG(AUTOBCSTART^001^1))
EXTEN=s,3,Goto(AUTOBCSTART|001|1)
EXTEN=s,102,NoOp(${CID})
EXTEN=s,103,Dial(IAX2/<myuser>@teliax/1${CID}|30|TtG(AUTOBCSTART^001^1))


Some notes.

The CID variable is set earlier and does pass through.

The problem is that asterisk attempts the dial and imediately hangs up 
the IAX channel. I am not so worried about the ZAP section in AUTOREDIAL 
because there is nothing hooked up yet. It will match IAX dial string 
when it works. I have pasted relevant CLI output below (slightly edited 
for security). I know the dial command works if I run it directly from 
an extension. I want the caller to be automatically reconnected to the 
conference unless the caller leave the conference cleanly. If there is 
another way to to this, I would entertain suggestions.

     -- Executing MeetMe("IAX2/teliax-4", "1|pq")
   == Parsing '/etc/asterisk/meetme.conf': Found
     -- Created MeetMe conference 1023 for conference '1'
     -- Hungup 'Zap/pseudo-1195863188'
   == Spawn extension (AUTOBCSTART, 001, 14) exited non-zero on 
'IAX2/teliax-4'
     -- Executing Dial("IAX2/teliax-4", "LOCAL/s at AUTOREDIAL")
     -- Called s at AUTOREDIAL
   == Spawn extension (AUTOBCSTART, h, 1) exited non-zero on 'IAX2/teliax-4'
     -- Hungup 'IAX2/teliax-4'
     -- Executing ChanIsAvail("Local/s at AUTOREDIAL-7a9d,2", "Zap/g1")
     -- Executing NoOp("Local/s at AUTOREDIAL-7a9d,2", "<returnscorrect>")
     -- Executing Dial("Local/s at AUTOREDIAL-7a9d,2", 
"IAX2/<myuser>@teliax/<thevariablevalue>|30|TtG(AUTOBCSTART003^1)")
     -- Called soundscape at teliax/17655460916
     -- Hungup 'IAX2/teliax-3'
   == Spawn extension (AUTOREDIAL, s, 103) exited non-zero on 
'Local/s at AUTOREDIAL-7a9d,2'

Thanks

BEN
_______________________________________________



More information about the asterisk-users mailing list