[asterisk-users] ${REASON} not getting set.

Mike Diehl mdiehl at diehlnet.com
Fri Oct 9 16:10:54 CDT 2009


I've tried fourvariations on this theme:

Channel: local/155555555 at default
Channel: local/155555555 at Dialout
Channel: local/155555555/default
Channel: local/155555555/Dialout

Neither one worked.  I appreciate your time.  Any other ideas?

Mike.

P.S.  I thought that setting the context in the callfile took care of the 
issue you suggested?

On Friday 09 October 2009 02:44:00 pm David Klaverstyn wrote:
> I believe it may be because you have not told what context the local
> channel should use.  Try using:
>
> Channel: local/155555555 at mycontext
>
> Obviously change the mycontext to the name of the context that you want to
> use.
>
> That may work for you.
>
> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Mike Diehl
> Sent: Saturday, 10 October 2009 6:28 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: [asterisk-users] ${REASON} not getting set.
>
> Hi all,
>
> I've got a program that creates a callfile and most if it working great.
> However, when a call fails, I'm trying to capture the reason, which I'm
> told should be in the ${REASON} channel variable.
>
> http://www.voip-info.org/wiki/view/Asterisk+auto-dial+out
>
> Here is an excerpt from the callfile:
>
> Channel: local/155555555
> Callerid:Tests <155555555>
> MaxRetries: 0
> RetryTime: 1
> WaitTime: 90
> Account: Dialout
> Context: Diaout
> Extension: dialer
> Priority: 1
>
> According to the wiki, this should work.
>
> Here is my "failed" extension:
>
> exten => failed,1,noop(======== Call to ${phone_number}  failed ${reason}
>
> The call to noop works and this is what I see on the console:
>
> -- Executing [failed at Dialout:1] NoOp("OutgoingSpoolFailed", "======== Call
> to 155555555  failed    ") in new stack
> == Auto fallthrough, channel 'OutgoingSpoolFailed' status is 'UNKNOWN'
> [Oct  9 14:16:50] NOTICE[29172]: pbx_spool.c:341 attempt_thread: Call
> failed to go through, reason 0
> [Oct  9 14:16:50] WARNING[15708]: pbx_spool.c:245 apply_outgoing: At least
> one of app or extension must be specified, along with tech and dest in file
> /var/spool/asterisk/outgoing/t.call
>
> Does this just not work?  Or am I missing something?
>
> Thanks in advance,



-- 

Take care and have fun,
Mike Diehl.



More information about the asterisk-users mailing list