<div class="gmail_quote">On Wed, Aug 12, 2009 at 7:19 PM, Brian West <span dir="ltr"><<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Well you really can't ignore it... it happens with our ISDN stack<br>
too. Thats what the VETO handles.<br>
<font color="#888888"><br>
/b<br>
</font><div class="im"></div></blockquote><div><br></div><div>You lost me. What do you mean we can't ignore it? the way I see it, sure we can and we should.</div><div><br></div><div>Currently that warning comes from the on_ringing() callback which blindly attempts to move the state of the zap channel to ZAP_CHANNEL_STATE_PROGRESS, even when the state may be already ZAP_CHANNEL_STATE_PROGRESS_MEDIA (which means on_proceed() was called first). </div>
<div><br></div><div>As I see it, the VETO warning is more an aid to the programmer so you quickly realize your doing a useless state change, which should be fixed. In this case, the fix is simply checking the state of the channel before trying to move it to progress, and don't even try to move it if already in progress with media.</div>
<div><br></div><div> -- </div></div>Moises Silva<br>Software Developer<br>Sangoma Technologies Inc. | 50 McIntosh Drive, Suite 120, Markham ON L3R 9T3 Canada<br>t. 1 905 474 1990 x 128 | e. <a href="mailto:moy@sangoma.com">moy@sangoma.com</a><br>