hey<div><br></div><div>i have release 1.2.1 code base,</div><div>the state handler is called in Windows, but not in Ubuntu 12.04</div><div><br></div><div>here is the code:</div><div><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex" class="gmail_quote">
<div><blockquote>static switch_state_handler_table_t channel_event_handlers = {<br><span class="Apple-tab-span" style="white-space:pre">        </span>/*.on_init */ NULL,<br><span class="Apple-tab-span" style="white-space:pre">        </span>/*.on_routing */ NULL,<br>
<span class="Apple-tab-span" style="white-space:pre">        </span>/*.on_execute */ NULL,<br><span class="Apple-tab-span" style="white-space:pre">        </span>/*.on_hangup */ channel_on_hangup,<br><span class="Apple-tab-span" style="white-space:pre">        </span>/*.on_exchange_media */ NULL,<br>
<span class="Apple-tab-span" style="white-space:pre">        </span>/*.on_soft_execute */ NULL,<br><span class="Apple-tab-span" style="white-space:pre">        </span>/*.on_consume_media */ NULL,<br><span class="Apple-tab-span" style="white-space:pre">        </span>/*.on_hibernate */ NULL,<br>
<span class="Apple-tab-span" style="white-space:pre">        </span>/*.on_reset */ NULL,<br><span class="Apple-tab-span" style="white-space:pre">        </span>/*.on_park */ NULL,<br><span class="Apple-tab-span" style="white-space:pre">        </span>/*.on_reporting */ NULL,<br>
<span class="Apple-tab-span" style="white-space:pre">        </span>/*.on_destroy */ NULL<br>};<br>......<br>if (switch_channel_add_state_handler(hook_channel, &channel_event_handlers) < 0)<br> {<br><span class="Apple-tab-span" style="white-space:pre">                </span> switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_ERROR, "state handler added failed\n");<br>
}<br>.......</blockquote></div></blockquote><div><br></div><div><br></div><div>Anyone knows why?</div><div><br></div><div> </div>