aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_local.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-09 08:27:37 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-09 08:27:37 +0000
commit5638666a7734ff3ae27627448c923bc53e04d294 (patch)
tree023b2775a78d84d074ca62e3f349240deaf0c4d9 /channels/chan_local.c
parent15a49ab01c0714133b7da7a4039823426286efa5 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@74024 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_local.c')
-rw-r--r--channels/chan_local.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/channels/chan_local.c b/channels/chan_local.c
index beac4064e..b4072cecc 100644
--- a/channels/chan_local.c
+++ b/channels/chan_local.c
@@ -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");