<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Yes and yes, I will get the full details to you next week, snowed under
a bit at the moment.<br>
<br>
Scott<br>
<br>
Anthony Minessale wrote:
<blockquote
 cite="mid:191c3a030901211210p361c11d7q3ff45a8e73c02a95@mail.gmail.com"
 type="cite">did you answer the call in your dialplan?<br>
do you have a full debug log of a call with that parameter enabled on
the analog span in question?<br>
  <br>
  <br>
  <div class="gmail_quote">On Thu, Jan 15, 2009 at 4:17 AM, Scott Ellis
  <span dir="ltr"><<a moz-do-not-send="true"
 href="mailto:scott.ellis@novatex.com.au">scott.ellis@novatex.com.au</a>></span>
wrote:<br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">After
poking around in the code, it looks like if I set <param<br>
name="enable-callerid" value="false"/> in openzap.conf.xml, it should<br>
skip the GET_CALLERID state, and I should get the call answered straight<br>
away.<br>
    <br>
mod_openzap.c<br>
    <br>
} else if (!strcasecmp(var, "enable-callerid")) {<br>
                   enable_callerid = val;<br>
    <br>
    <br>
if (zap_configure_span("analog", span, on_analog_signal,<br>
                                  "tonemap", tonegroup,<br>
                                  "digit_timeout", &to,<br>
                                  "max_dialstr", &max,<br>
                                  "hotline", hotline,<br>
                                  "enable_callerid", enable_callerid,<br>
                                  TAG_END) != ZAP_SUCCESS) {<br>
               zap_log(ZAP_LOG_ERROR, "Error starting OpenZAP span<br>
%d\n", span_id);<br>
               continue;<br>
           }<br>
    <br>
ozmod_analog.c<br>
    <br>
           else if (!strcasecmp(var, "enable_callerid")) {<br>
           if (!(val = va_arg(ap, char *))) {<br>
               break;<br>
           }<br>
           if (zap_true(val)) {<br>
               flags |= ZAP_ANALOG_CALLERID;<br>
           } else {<br>
               flags &= ~ZAP_ANALOG_CALLERID;<br>
           }<br>
    <br>
and<br>
    <br>
case ZAP_OOB_RING_START:<br>
       {<br>
           if (event->channel->type != ZAP_CHAN_TYPE_FXO) {<br>
               zap_log(ZAP_LOG_ERROR, "Cannot get a RING_START event on<br>
a non-fxo channel, please check your config.\n");<br>
               zap_set_state_locked(event->channel,<br>
ZAP_CHANNEL_STATE_DOWN);<br>
               goto end;<br>
           }<br>
           if (!event->channel->ring_count &&
(event->channel->state ==<br>
ZAP_CHANNEL_STATE_DOWN && !zap_test_flag(event->channel,<br>
ZAP_CHANNEL_INTHREAD))) {<br>
               if (zap_test_flag(analog_data, ZAP_ANALOG_CALLERID)) {<br>
                   zap_set_state_locked(event->channel,<br>
ZAP_CHANNEL_STATE_GET_CALLERID);<br>
               } else {<br>
                   zap_set_state_locked(event->channel,<br>
ZAP_CHANNEL_STATE_IDLE);<br>
               }<br>
               event->channel->ring_count = 1;<br>
               zap_mutex_unlock(event->channel->mutex);<br>
               locked = 0;<br>
               zap_thread_create_detached(zap_analog_channel_run,<br>
event->channel);<br>
           } else {<br>
               event->channel->ring_count++;<br>
           }<br>
       }<br>
       break;<br>
    <br>
2009-01-15 20:19:44 [DEBUG] ozmod_analog.c:744 process_event() EVENT<br>
[RING_START][1:1] STATE [DOWN]<br>
2009-01-15 20:19:44 [DEBUG] ozmod_analog.c:760 process_event() Changing<br>
state on 1:1 from DOWN to GET_CALLERID<br>
2009-01-15 20:19:44 [DEBUG] ozmod_analog.c:239 zap_analog_channel_run()<br>
ANALOG CHANNEL thread starting.<br>
2009-01-15 20:19:44 [DEBUG] ozmod_analog.c:410 zap_analog_channel_run()<br>
Executing state handler on 1:1 for GET_CALLERID<br>
2009-01-15 20:19:44 [DEBUG] ozmod_analog.c:744 process_event() EVENT<br>
[RING_START][1:1] STATE [GET_CALLERID]<br>
2009-01-15 20:19:44 [DEBUG] ozmod_analog.c:744 process_event() EVENT<br>
[RING_START][1:1] STATE [GET_CALLERID]<br>
2009-01-15 20:19:45 [DEBUG] ozmod_analog.c:744 process_event() EVENT<br>
[RING_START][1:1] STATE [GET_CALLERID]<br>
2009-01-15 20:19:47 [DEBUG] ozmod_analog.c:744 process_event() EVENT<br>
[RING_START][1:1] STATE [GET_CALLERID]<br>
2009-01-15 20:19:47 [DEBUG] ozmod_analog.c:744 process_event() EVENT<br>
[RING_START][1:1] STATE [GET_CALLERID]<br>
2009-01-15 20:19:47 [DEBUG] ozmod_analog.c:744 process_event() EVENT<br>
[RING_START][1:1] STATE [GET_CALLERID]<br>
2009-01-15 20:19:48 [DEBUG] ozmod_analog.c:744 process_event() EVENT<br>
[RING_START][1:1] STATE [GET_CALLERID]<br>
2009-01-15 20:19:49 [DEBUG] ozmod_analog.c:292 zap_analog_channel_run()<br>
Changing state on 1:1 from GET_CALLERID to IDLE<br>
2009-01-15 20:19:49 [DEBUG] ozmod_analog.c:410 zap_analog_channel_run()<br>
Executing state handler on 1:1 for IDLE<br>
2009-01-15 20:19:49 [DEBUG] mod_openzap.c:1165 on_fxo_signal() got FXO<br>
sig 1:1 [START]<br>
    <br>
The code all looks right, but I am not getting what I think should<br>
happen. Anyone with any ideas?<br>
    <font color="#888888"><br>
Scott<br>
    </font>
    <div>
    <div class="Wj3C7c"><br>
Scott Ellis wrote:<br>
> Searched the wiki and mailing lists as best I can, but with no
luck.<br>
><br>
> How do I get OpenZap to answer a call immediately? (I do not need
caller id)<br>
><br>
> Scott<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Freeswitch-users mailing list<br>
> <a moz-do-not-send="true"
 href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
> <a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a moz-do-not-send="true" href="http://www.freeswitch.org"
 target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
    <br>
    <br>
_______________________________________________<br>
Freeswitch-users mailing list<br>
    <a moz-do-not-send="true"
 href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a><br>
    <a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a moz-do-not-send="true"
 href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
 target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
    <a moz-do-not-send="true" href="http://www.freeswitch.org"
 target="_blank">http://www.freeswitch.org</a><br>
    </div>
    </div>
  </blockquote>
  </div>
  <br>
  <br clear="all">
  <br>
-- <br>
Anthony Minessale II<br>
  <br>
FreeSWITCH <a moz-do-not-send="true" href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>
ClueCon <a moz-do-not-send="true" href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
  <br>
AIM: anthm<br>
  <a moz-do-not-send="true"
 href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>
GTALK/JABBER/<a moz-do-not-send="true"
 href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a moz-do-not-send="true" href="http://irc.freenode.net">irc.freenode.net</a>
#freeswitch<br>
  <br>
FreeSWITCH Developer Conference<br>
  <a moz-do-not-send="true"
 href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br>
  <a moz-do-not-send="true"
 href="http://iax:guest@conference.freeswitch.org/888">iax:guest@conference.freeswitch.org/888</a><br>
  <a moz-do-not-send="true"
 href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:213-799-1400<br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Freeswitch-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Freeswitch-users@lists.freeswitch.org">Freeswitch-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
  </pre>
</blockquote>
</body>
</html>