Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:vicidial:asterisk-16
asterisk
amd_stats-16.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File amd_stats-16.patch of Package asterisk
--- asterisk-16.30.0/apps/app_amd.c.orig 2023-01-14 03:39:16.357860330 -0500 +++ asterisk-16.30.0/apps/app_amd.c 2023-01-14 03:42:34.855134454 -0500 @@ -185,7 +185,7 @@ int iWordsCount = 0; int currentState = STATE_IN_WORD; int consecutiveVoiceDuration = 0; - char amdCause[256] = "", amdStatus[256] = ""; + char amdCause[256] = "", amdStatus[256] = "", amdStats[256] = ""; char *parse = ast_strdupa(data); /* Let's set the initial values of the variables that will control the algorithm. @@ -476,9 +476,16 @@ sprintf(amdCause , "TOOLONG-%d", iTotalTime); } - /* Set the status and cause on the channel */ + /* gather the stats */ + sprintf( amdStats, "%d-%d-%d-%d-%d-%d-%d-%d-%d", + iTotalTime, silenceDuration, initialSilence, + afterGreetingSilence, voiceDuration, consecutiveVoiceDuration, + greeting, iWordsCount, maximumNumberOfWords); + + /* Set the status, cause, and stats on the channel */ pbx_builtin_setvar_helper(chan , "AMDSTATUS" , amdStatus); pbx_builtin_setvar_helper(chan , "AMDCAUSE" , amdCause); + pbx_builtin_setvar_helper(chan , "AMDSTATS" , amdStats); /* Restore channel read format */ if (readFormat && ast_set_read_format(chan, readFormat))
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor