[asterisk-users] Using Local Channels with Originate
Brian K. Alexander,
Jr. (Vision Point Systems)
balexander at visionpointsystems.com
Tue Feb 6 07:10:12 MST 2007
Ack. That should be "I am using analog for the proof of concept but plan to
use PRI for the actual system".
_____
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Brian K.
Alexander,Jr. (Vision Point Systems)
Sent: Tuesday, February 06, 2007 8:44 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [asterisk-users] Using Local Channels with Originate
Right now I am using analog but the plan is to use PRI for the proof of
concept but the actual system would use PRI. I know that the analog support
is supposed to be somewhat unreliable but I have yet to get it to detect
even a busy - not even once. I can only assume that I missed some setting
somewhere but I can't find it.
I am curious to learn more about your solution. If you post more information
I might be able to help you with your R&D. In any event thanks for posting
up and in advance for keeping us posted on your progress.
-Brian
_____
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Michael
Collins
Sent: Monday, February 05, 2007 4:21 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [asterisk-users] Using Local Channels with Originate
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.
Brian,
What kind of Zap hardware/telco lines are you using? I am using PRI and I
am able to get a dial status in the hangup extension. The problem I run
into is that I get "NO ANSWER" as the hangup cause even for invalid phone
numbers. I also get cluttered CDR's. In the meantime I'm working on a
solution that I hope will give the best of both worlds. I'm relying on the
API events instead of local channels. I'll post more information when I've
made more progress. However, I've made 2500 test calls and I haven't lost a
single 'OriginateSuccess' or 'OriginateFailure' event. (I'm keying on
these, specifically the 'OriginateFailure' event because it has a 'Reason'
value that gets populated: 0=Invalid, 3=No Ans, 5=Busy.)
Hope to have more info posted this week.
-MC
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070206/668eed03/attachment.htm
More information about the asterisk-users
mailing list