[asterisk-dev] mmichelson: trunk r185704 - in /trunk: CHANGES main/manager.c

Mark Michelson mmichelson at digium.com
Wed Apr 1 09:05:51 CDT 2009


Russell Bryant wrote:
> On Mar 31, 2009, at 7:39 PM, SVN commits to the Digium repositories  
> wrote:
>> 	c = ast_get_channel_by_name_locked(name);
>> 	if (!c) {
>> 		astman_send_error(s, m, "No such channel");
>> 		return 0;
>> +	}
>> +	if (causecode > 0) {
>> +		if (option_debug >= 1) {
>> +			ast_log(LOG_DEBUG, "Setting hangupcause of channel %s to %d (is  
>> %d now)\n",
>> +				c->name, causecode, c->hangupcause);
>> +		}
>> +		c->hangupcause = causecode;
>> 	}
> 
> Please use ast_debug() here.
> 

Oops. I had meant to change that before committing. Thanks!

Mark Michelson



More information about the asterisk-dev mailing list