I'm trying to clean up some notices/warnings that are repeatedly logged in *.Any Help would be appreciated as I'm not sure of the cause /solution. Here are the errors: Nov 17 15:53:38 WARNING[1217602880]: File chan_zap.c, Line 1321 (zt_call): cidspill already exists?? +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ /* Don't send audio while on hook, until the call is answered */ ????????????????????????p->dialing = 1; ????????????????????????if (p->use_callerid) { ????????????????????????????????/* Generate the Caller-ID spill if desired */ ????????????????????????????????if (p->cidspill) { ????????????????????????????????????????ast_log(LOG_WARNING, "cidspill already exists??\n"); ????????????????????????????????????????free(p->cidspill); ????????????????????????????????} ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Nov 17 17:13:51 NOTICE[1242768320]: File app_dial.c, Line 502 (dial_exec): Unable to create channel of type 'Zap' ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ /* Request the peer */ ????????????????tmp->chan = ast_request(tech, chan->nativeformats, numsubst); ????????????????if (!tmp->chan) { ????????????????????????/* If we can't, just go on to the next call */ ????????????????????????ast_log(LOG_NOTICE, "Unable to create channel of type '%s'\n", tech); ????????????????????????if (chan->cdr) ????????????????????????????????ast_cdr_busy(chan->cdr); ????????????????????????free(tmp); ????????????????????????cur = rest; ????????????????????????continue; ????????????????} ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Nov 17 17:20:57 NOTICE[1209214400]: File chan_zap.c, Line 3462 (zt_read): Fax detected, but no fax extension ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ /* Fax tone -- Handle and return NULL */ ????????????????????????if (!p->faxhandled) { ????????????????????????????????p->faxhandled++; ????????????????????????????????if (strcmp(ast->exten, "fax")) { ????????????????????????????????????????if (ast_exists_extension(ast, ast->context, "fax", 1, ast->callerid)) { ????????????????????????????????????????????????if (option_verbose > 2) ????????????????????????????????????????????????????????ast_verbose(VERBOSE_ PREFIX_3 "Redirecting %s to fax extension\n", ast->name); ????????????????????????????????????????????????/* Save the DID/DNIS when we transfer the fax call to a "fax" extension */ ????????????????????????????????????????????????pbx_builtin_setvar_helper(as t,"FAXEXTEN",ast->exten); ????????????????????????????????????????????????if (ast_async_goto(ast, ast->context, "fax", 1, 0)) ????????????????????????????????????????????????????????ast_log(LOG_WARNING, "Failed to async goto '%s' into fax of '%s'\n", ast->name, ast->context); ????????????????????????????????????????} else ????????????????????????????????????????????????ast_log(LOG_NOTICE, "Fax detected, but no fax extension\n"); ????????????????????????????????} else ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Nov 17 17:26:04 WARNING[1234379584]: File chan_zap.c, Line 3331 (zt_read): zt_rec: Unknown error 500 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ /* Check for hangup */ ????????if (res < 0) { ????????????????if (res == -1)? { ????????????????????????if (errno == EAGAIN) { ????????????????????????????????/* Return "NULL" frame if there is nobody there */ ????????????????????????????????ast_mutex_unlock(&p->lock); ????????????????????????????????return &p->subs[index].f; ????????????????????????} else ????????????????????????????????ast_log(LOG_WARNING, "zt_rec: %s\n", strerror(errno)); ????????????????} ????????????????ast_mutex_unlock(&p->lock); ????????????????return NULL; +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ thanks, Andy
Hi, Do you know if we can use AGI or other script to handle the asterisk events by using the existing asterisk manager process ? Please advise. Thanks George
Smells like a -dev type discussion. Some of these messages could be removed for your use, or just change what you want to see in your logs. On Tue, 2003-11-18 at 12:18, Andy Hester wrote:> I'm trying to clean up some notices/warnings that are repeatedly logged > in *.Any Help would be appreciated as I'm not sure of the cause > /solution. > > Here are the errors: > > Nov 17 15:53:38 WARNING[1217602880]: File chan_zap.c, Line 1321 > (zt_call): cidspill already exists?? > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > /* Don't send audio while on hook, until the call is answered */ > p->dialing = 1; > if (p->use_callerid) { > /* Generate the Caller-ID spill if desired > */ > if (p->cidspill) { > ast_log(LOG_WARNING, "cidspill > already exists??\n"); > free(p->cidspill); > } > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > > Nov 17 17:13:51 NOTICE[1242768320]: File app_dial.c, Line 502 > (dial_exec): Unable to create channel of type 'Zap' > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > /* Request the peer */ > tmp->chan = ast_request(tech, chan->nativeformats, > numsubst); > if (!tmp->chan) { > /* If we can't, just go on to the next call */ > ast_log(LOG_NOTICE, "Unable to create channel of > type '%s'\n", tech); > if (chan->cdr) > ast_cdr_busy(chan->cdr); > free(tmp); > cur = rest; > continue; > } > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > > Nov 17 17:20:57 NOTICE[1209214400]: File chan_zap.c, Line 3462 > (zt_read): Fax detected, but no fax extension > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > /* Fax tone -- Handle and return NULL */ > if (!p->faxhandled) { > p->faxhandled++; > if (strcmp(ast->exten, "fax")) { > if (ast_exists_extension(ast, > ast->context, "fax", 1, > ast->callerid)) { > if (option_verbose > 2) > ast_verbose(VERBOSE_ > PREFIX_3 "Redirecting %s to fax extension\n", > ast->name); > /* Save the DID/DNIS when we > transfer the fax call to a "fax" > extension */ > pbx_builtin_setvar_helper(as > t,"FAXEXTEN",ast->exten); > if (ast_async_goto(ast, > ast->context, "fax", 1, 0)) > ast_log(LOG_WARNING, > "Failed to async goto '%s' into fax of > '%s'\n", ast->name, ast->context); > } else > ast_log(LOG_NOTICE, "Fax > detected, but no fax extension\n"); > } else > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > > Nov 17 17:26:04 WARNING[1234379584]: File chan_zap.c, Line 3331 > (zt_read): zt_rec: Unknown error 500 > > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > /* Check for hangup */ > if (res < 0) { > if (res == -1) { > if (errno == EAGAIN) { > /* Return "NULL" frame if there is nobody > there */ > ast_mutex_unlock(&p->lock); > return &p->subs[index].f; > } else > ast_log(LOG_WARNING, "zt_rec: %s\n", > strerror(errno)); > } > ast_mutex_unlock(&p->lock); > return NULL; > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > > thanks, > Andy > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users-- Steven Critchfield <critch@basesys.com>
On Tue, 2003-11-18 at 12:37, George Lin wrote:> Hi, > > Do you know if we can use AGI or other script to handle the > asterisk events by using the existing asterisk manager process ?AGI is for handling calls. AGI is to phone calls like CGI is to web page requests. There is a perl module to use in accessing manager events though. search the archive for links to it. -- Steven Critchfield <critch@basesys.com>
Steven Critchfield wrote:> On Tue, 2003-11-18 at 12:37, George Lin wrote: > >>Hi, >> >> Do you know if we can use AGI or other script to handle the >> asterisk events by using the existing asterisk manager process ? > > > AGI is for handling calls. AGI is to phone calls like CGI is to web page > requests. > > There is a perl module to use in accessing manager events though. search > the archive for links to it.And also a very good python module available ...... http://sourceforge.net/projects/pyst/