[Asterisk-Dev] Channel module question - setstate vs queue_control
Matt Klein
mklein at nmedia.net
Thu Feb 3 21:09:48 MST 2005
The code always seems to be a good description of its own behavior.
Other than that, I don't know of any formal developer's documentation
anywhere.
-m
-----------------------------------------------------
"Yeah, we rocked the vote all right. Those little
bastards betrayed us again."
- Hunter S. Thompson on the 2004 election.
On Thu, 3 Feb 2005, Bob Carlson wrote:
> I'm building a channel module and am wondering about the behavior of the *
> channel code. I've looked at several channel modules and it seems common
> to this kind of thing:
>
> ast_setstate(ast, AST_STATE_RINGING);
> ast_queue_control(ast, AST_CONTROL_RINGING);
>
> Are these redundant? It would seem like sending the RINGING control would
> change the state to RINGING or vice versa. Are both actions necessary?
>
> Is there a good description anywhere of these states and their behavior? I
> have looked at the wiki and several other places, but not found this info.
>
> Bob
>
>
> _______________________________________________
> 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