[Asterisk-Dev] ast_hangup

Martin Bangiev martin.bangiev at borsabg.com
Fri Apr 1 04:31:57 MST 2005


My x-lite client stays at status connected after I call the 
ast_softhangup(). I can't use the return(-1); solution because if I do 
it this way the extension ends, but I want to do some more stuff after 
the connection get closed.

Kevin P. Fleming wrote:

> 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.
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>
>




More information about the asterisk-dev mailing list