I have been trying to get a DIALSTATUS output from a call started with
originate. I searched a fair bit and have found several references to using
local channels to do this. However, I could not find enough of the specifics
to get it working myself.

 

What I need to do is dial a zap channel and run various scripts if the
channel is answered, busy, no-answer,etc. 

 

Here is the dial plan I am using:

    [outdialer]

    exten => 100,1,Dial(ZAP/4/1234567)

    exten => 100,n,DeadAgi(notdeadyet.py)

    exten => 100,n,Hangup

 

     [dialerplan]

    exten => s,1,AGI(showstatus.py|${DIALSTATUS})

    exten => s,n,Hangup

 

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

 

    Action: logoff

 

The notdeadyet.py script never runs. The ${DIALSTATUS} passed into
showstatus.py is empty. I don't understand what I did wrong.

 

Thanks in advance for your help. I am stumped by this.'

 

-Brian

_______________________________________________
--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