mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-29 18:19:30 +00:00
Implementation of a feature that will disable "missed calls" counters on SIP phones.
If the call is answered by another phone, other phones won't display the call as "missed". You can also add an option to the dial command so that you can have a "followme" scenario and not count the calls as "missed" when you cancel the call. Thanks to Ramon and Frank for feedback on this feature. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@74024 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -495,6 +495,8 @@ static int local_hangup(struct ast_channel *ast)
|
||||
return -1;
|
||||
|
||||
ast_mutex_lock(&p->lock);
|
||||
if (p->chan && ast_test_flag(ast, AST_FLAG_ANSWERED_ELSEWHERE))
|
||||
ast_set_flag(p->chan, AST_FLAG_ANSWERED_ELSEWHERE);
|
||||
isoutbound = IS_OUTBOUND(ast, p);
|
||||
if (isoutbound) {
|
||||
const char *status = pbx_builtin_getvar_helper(p->chan, "DIALSTATUS");
|
||||
|
Reference in New Issue
Block a user