[Asterisk-Dev] ast_hangup

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Thu Mar 31 09:26:30 MST 2005


On Thursday 31 March 2005 02:51, Martin Bangiev wrote:
> Ooops
> I lied to you. When I comment the ast_channel_free() it works. But
> I'm not sure if it doesn't couses a memory leak or something.

You should never *EVER* use the ast_hangup() function unless you are
writing a channel driver.  As suggested before, the only function you
should be using is ast_softhangup(), which makes a request to the
channel to initiate a hangup.

-- 
Tilghman



More information about the asterisk-dev mailing list