[asterisk-dev] Shut down gracefully & Channel responses

Olle E. Johansson oej at edvina.net
Tue Jun 15 08:58:03 CDT 2010


15 jun 2010 kl. 10.18 skrev Nick Lewis:

>> - Make channels call ast_shutting_down before 
>> starting a PBX and handle it locally.
>> 
>> What do you think?
> 
> This latter method sounds more consistent.
I think changing the API to be more complete is better than adding an extra call to the one we already have though...

> Perhaps ast_shutting_down
> could be called in handle_incoming() after the comment /*New SIP request
> coming in ... */ and result in a 503 before even reading the sip request
> method
If so, then we would refuse BYE as well, which is not what we want.
handle_request_invite() is the function you want to be in.

/O


More information about the asterisk-dev mailing list