[asterisk-dev] Manager event for early media

Olle E. Johansson oej at edvina.net
Fri Apr 15 07:31:09 CDT 2011


15 apr 2011 kl. 14.23 skrev Russell Bryant:

> 
> ----- Original Message -----
>> I think that this fits into the Newstate event (I am against inventing
>> a new manager event). About adding a new state to ast_channel_state, I
>> am not qualified to suggest anything but it sounds logical to add it.
>> Advertize a state via AMI and not having a different way to get that
>> state by other means (ast cli, custom module, etc) is not good at all.
> 
> Agreed, the NewState event seems to make sense (which pretty much implies that we have to add a channel state).  That's a potentially tricky change to make.  We just have to look through places that care about channel state and make sure that the new state is accounted for.

Well, there are states and flags. MUTE is a flag, not a state. Maybe we should implement PROGRESS as a flag, since it's in the RING or RINGING state. Implementing a new state would be hard, as you say, but a flag might be easier. 

I haven't verified that all parts of the code filter out the flags though. How sure are we about the flags vs states in ast_channel_state ?

/O


More information about the asterisk-dev mailing list