[Asterisk-Dev] Problem with hanging up a SIP channel

Marc Haisenko haisenko at comdasys.com
Wed Nov 23 10:19:39 MST 2005


On Wednesday 23 November 2005 18:10, Tilghman Lesher wrote:
> On Wednesday 23 November 2005 10:45, imran ahmed wrote:
> > You need to use ast_hangup on channels that are not in the dialplan.
> > May be you are holding the channel lock before calling ast_hangup in
> > this case.
>
> ast_hangup() should only ever be called by a channel driver on its own
> channel (and even then, only in the channel's hangup routine).  For all
> other cases, you need to request the hangup via ast_softhangup() and
> let the channel process the hangup when it is ready.

But exactly this is my problem: ast_softhangup doesn't seem to work (see my 
original mail).

-- 
Marc Haisenko
Comdasys AG

Rüdesheimer Straße 7
D-80686 München
Tel:   +49 (0)89 - 548 43 33 0
Fax:   +49 (0)89 - 548 43 33 29
e-mail: haisenko at comdasys.com
http://www.comdasys.com



More information about the asterisk-dev mailing list