[asterisk-users] 'h' extension on call-out

Artifex Maximus artifexor at gmail.com
Mon Nov 12 09:39:05 CST 2007


On Nov 12, 2007 2:04 PM, Tony Mountifield <tony at softins.clara.co.uk> wrote:
> In article <9cbf3f070711120416v249d0a81s1388fa58b0169287 at mail.gmail.com>,
>
> Artifex Maximus <artifexor at gmail.com> wrote:
> > Hello!
> >
> > I would like to store ISDNCAUSE on automatic call-out campaign
> > (possibly gives more detail on failed call). How is it possible?
> >
> > I have tried 'failed' and 'h' extension. No luck. Extension 'failed'
> > does not know anything about ISDNCAUSE and 'h' extension is not called
> > at all. Any idea?
> >
> > I am using Asterisk 1.2.14 on FC4 if it counts.
>
> I think you will find the 'h' extension is only called at the end of
> a successful call.
Extension 'h' is executed on every hangup event from both side.

> If the call is unsuccessful, the Dial command will return, and you can
> then check ${ISDNCAUSE} on the next line of your dialplan.
There is no dial command because I only wrote a call file to
/var/spool/asterisk/outgoing and actually dial has been made by
pbx_spool module. There is a 'failed' extension but no HANGUPCAUSE
there.

Bye,
a



More information about the asterisk-users mailing list