Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:vicidial:sandbox
asterisk
timeout_reset_dial_app-18.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File timeout_reset_dial_app-18.patch of Package asterisk
--- asterisk-18.21.0/apps/app_dial.c 2024-01-25 11:17:00.000000000 -0500 +++ asterisk-18.21.0/apps/app_dial.c.new 2024-02-13 12:47:47.105503770 -0500 @@ -1280,6 +1280,7 @@ int cc_frame_received = 0; int num_ringing = 0; int sent_ring = 0; + int to_reset = 0; int sent_progress = 0, sent_wink = 0; struct timeval start = ast_tvnow(); SCOPE_ENTER(3, "%s\n", ast_channel_name(in)); @@ -1587,6 +1588,12 @@ ast_channel_unlock(in); sent_ring = 1; } + if (!to_reset) { + *to = orig; + start = ast_tvnow(); + to_reset = 1; + ast_verb(3, "Dial Tiemout Reset on channel %s due to RINGING message\n",ast_channel_name(c)); + } } ast_channel_publish_dial(in, c, NULL, "RINGING"); break; @@ -1642,6 +1649,12 @@ dtmf_progress); res |= ast_dtmf_stream(c, in, dtmf_progress, 250, 0); } + if (!to_reset) { + *to = orig; + start = ast_tvnow(); + to_reset = 1; + ast_verb(3, "Dial Tiemout Reset on channel %s due to PROGRESS message.\n",ast_channel_name(c)); + } if (res) { ast_log(LOG_WARNING, "Called channel %s hung up post-progress before all digits could be sent\n", ast_channel_name(c)); goto wait_over;
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