Skip to content

Commit f0962d0

Browse files
InterLinked1Friendly Automation
authored and
Friendly Automation
committed
pbx_app: Update outdated pbx_exec channel snapshots.
pbx_exec makes a channel snapshot before executing applications. This doesn't cause an issue during normal dialplan execution where pbx_exec is called over and over again in succession. However, if pbx_exec is called "one off", e.g. using ast_pbx_exec_application, then a channel snapshot never ends up getting made after the executed application returns, and inaccurate snapshot information will linger for a while, causing "core show channels", etc. to show erroneous info. This is fixed by manually making a channel snapshot at the end of ast_pbx_exec_application, since we anticipate that pbx_exec might not get called again immediately. ASTERISK-30367 #close Change-Id: I2a5131053aa9d11badbc0ef2ef40b1f83d0af086
1 parent c406687 commit f0962d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/pbx_app.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,8 @@ int ast_pbx_exec_application(struct ast_channel *chan, const char *app_name, con
519519
}
520520
res = pbx_exec(chan, app, app_args);
521521
}
522+
/* Manually make a snapshot now, since pbx_exec won't necessarily get called again immediately. */
523+
ast_channel_publish_snapshot(chan);
522524
}
523525
return res;
524526
}

0 commit comments

Comments
 (0)