[asterisk-users] SoftHangup on asterisk 1.8.3.2 (renamed)
Ishfaq Malik
ish at pack-net.co.uk
Wed Jul 13 04:15:22 CDT 2011
On Tue, 2011-07-12 at 09:13 +0100, Ishfaq Malik wrote:
> On Thu, 2011-07-07 at 14:23 -0400, Jeremy Kister wrote:
> > On 7/7/2011 9:32 AM, Ishfaq Malik wrote:
> > > I'm having the same issue on 1.8.3.2 (with a couple of patches)
> >
> > >> exten => s,1,Set(CHAN=${SHELL(asterisk -rx "core show channels" | awk
> > >> '/^SIP\/vgw1-/ { print $1 }' | head -1)})
> >
> >
> > This turned out to be a PEBKAC error. A newline was attached to the
> > $CHAN variable.
> >
> > adding | tr -d '\n' to the end of the command fixed it right up.
> >
> >
> >
>
> Well in that case I'm having a different issue.
> When I do
> channel request hangup SIP/xxxxxxxx-00001136
> I get a
> Requested Hangup on channel 'SIP/xxxxxxxx-00001136'
> response but the channel never hangs up
> I'm having to restart the asterisk to clear the channels and that is not
> an optimum solution!
>
> Has anyone else encountered this or can see something obvious that I'm
> doing wrong?
>
Worked out what was happening. I was trying to hangup stale channels. As
a stale channel is not being written to or read from the hangup will
never execute.
--
Ishfaq Malik
Software Developer
PackNet Ltd
Office: 0161 660 3062
More information about the asterisk-users
mailing list