[asterisk-users] Using Local Channels with Originate

Brian K. Alexander, Jr. (Vision Point Systems) balexander at visionpointsystems.com
Mon Feb 5 07:42:44 MST 2007


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/100 at outdialer/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.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070205/fbc5c32d/attachment.htm


More information about the asterisk-users mailing list