diff --git a/autoservice.c b/autoservice.c index c0adc7f2b2a9ed156697eabef714abe657f407d1..51a1e1ca676b60d6b517d92f55f4cc447b8a412d 100644 --- a/autoservice.c +++ b/autoservice.c @@ -104,7 +104,6 @@ int ast_autoservice_start(struct ast_channel *chan) if (as->chan == chan) break; } - /* XXX if found, we return -1, why ??? */ /* If not, start autoservice on channel */ if (!as && (as = ast_calloc(1, sizeof(*as)))) { diff --git a/include/asterisk/channel.h b/include/asterisk/channel.h index 3d842bbe36a0c6d62f5081ede73bb8af15014400..d3d5862adf95323f6d2c772ea26e3a6683ec0533 100644 --- a/include/asterisk/channel.h +++ b/include/asterisk/channel.h @@ -1060,10 +1060,20 @@ void ast_tonepair_stop(struct ast_channel *chan); /*! Play a tone pair for a given amount of time */ int ast_tonepair(struct ast_channel *chan, int freq1, int freq2, int duration, int vol); -/*! Automatically service a channel for us... */ +/*! + * \brief Automatically service a channel for us... + * + * \retval 0 success + * \retval -1 failure, or the channel is already being autoserviced + */ int ast_autoservice_start(struct ast_channel *chan); -/*! Stop servicing a channel for us... Returns -1 on error or if channel has been hungup */ +/*! + * \brief Stop servicing a channel for us... + * + * \retval 0 success + * \retval -1 error, or the channel has been hungup + */ int ast_autoservice_stop(struct ast_channel *chan); /* If built with zaptel optimizations, force a scheduled expiration on the