[Asterisk-Dev] ast_hangup

Kevin P. Fleming kpfleming at starnetworks.us
Thu Mar 31 10:08:20 MST 2005


Tilghman Lesher wrote:

> 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.

Or, alternatively, the _really_ simple solution is to just return -1 
from your app's exec function. The PBX core will then hang up the channel.



More information about the asterisk-dev mailing list