I haven't quite gotten this working yet but I am going to update the thread
with what I have learned. Maybe this will help the next guy who tries to
figure this out.

 

The trick to using the DIALSTATUS seems to be to put it in the handler for
the h (hang-up extension). 

 

    [outdialer]

    exten => 100, 1, Dial(${numberToDial})

    exten => h, 1, Goto(s-${DIALSTATUS},1)

 

    exten => s-ANSWER,1,NoOp("Answered")

    exten => s-BUSY,1,NoOp("Busy")

    exten => s-NOANSWER,1,NoOp("Not answered")

    exten => s-CANCEL,1,NoOp("Cancelled")

    exten => s-CONGESTION,1,NoOp("Fast busy")

    exten => s-CHANUNAVAIL,1,NoOp("Channel unavailable")

 

    [dialerplan]

    exten => s,1,Background(demo-congrats)

    exten => s,n,WaitExten

    so on ...

 

Here are the manager commands I am using:

 

    Action: login

    Username: test

    Secret: nottelling

 

    Action: originate

    Channel: Local/[EMAIL PROTECTED]/n

    Context: dialerplan

    Extension: s

    Priority: 1

    Variable: numberToDial=ZAP/4/1234567890

 

    Action: logoff

 

I am always getting ANSWERED for ${DIALSTAUS} so something is not quite
right. Hopefully I am getting closer.

 

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to