mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
/ fixed bug when using AST caller ID functions, shouldnt be trying to write
/ samples to file, was only ment to be used for debuging git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4649 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -608,7 +608,7 @@ static void get_callerid_ast(struct vpb_pvt *p)
|
|||||||
if (vrc != VPB_OK)
|
if (vrc != VPB_OK)
|
||||||
ast_log(LOG_ERROR, "%s: Caller ID couldnt read audio buffer!\n",p->dev);
|
ast_log(LOG_ERROR, "%s: Caller ID couldnt read audio buffer!\n",p->dev);
|
||||||
rc = callerid_feed(cs,(unsigned char *)buf,sizeof(buf),AST_FORMAT_ULAW);
|
rc = callerid_feed(cs,(unsigned char *)buf,sizeof(buf),AST_FORMAT_ULAW);
|
||||||
vpb_wave_write(ws,(char*)buf,sizeof(buf));
|
/* vpb_wave_write(ws,(char*)buf,sizeof(buf)); */
|
||||||
sam_count+=sizeof(buf);
|
sam_count+=sizeof(buf);
|
||||||
if (option_verbose>3) ast_verbose(VERBOSE_PREFIX_4 "Collecting Caller ID samples [%d][%d]...\n",sam_count,rc);
|
if (option_verbose>3) ast_verbose(VERBOSE_PREFIX_4 "Collecting Caller ID samples [%d][%d]...\n",sam_count,rc);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user