From 826ff1d7a320ca6759fd7f9cdc35d1c719bc4d5f Mon Sep 17 00:00:00 2001
From: Richard Mudgett <rmudgett@digium.com>
Date: Tue, 19 Jan 2016 18:20:59 -0600
Subject: [PATCH] res/res_pjsip/presence_xml.c: Add missing 2nd call presence
 state case.

ASTERISK-25712 #close
Reported by: Richard Mudgett

Change-Id: I70634df24f8c6c3a2c66c45af61d021e4999253f
---
 res/res_pjsip/presence_xml.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/res/res_pjsip/presence_xml.c b/res/res_pjsip/presence_xml.c
index 267af547d6..86fbca9a65 100644
--- a/res/res_pjsip/presence_xml.c
+++ b/res/res_pjsip/presence_xml.c
@@ -101,6 +101,12 @@ void ast_sip_presence_exten_state_to_str(int state, char **statestring, char **p
 		*pidfstate = "busy";
 		*pidfnote = "Ringing";
 		break;
+	case (AST_EXTENSION_INUSE | AST_EXTENSION_RINGING):
+		*statestring = "confirmed";
+		*local_state = NOTIFY_INUSE;
+		*pidfstate = "busy";
+		*pidfnote = "Ringing";
+		break;
 	case AST_EXTENSION_INUSE:
 		*statestring = "confirmed";
 		*local_state = NOTIFY_INUSE;
@@ -131,7 +137,7 @@ void ast_sip_presence_exten_state_to_str(int state, char **statestring, char **p
 		*statestring = "terminated";
 		*local_state = NOTIFY_OPEN;
 		*pidfstate = "--";
-		*pidfnote ="Ready";
+		*pidfnote = "Ready";
 		break;
 	}
 }
-- 
GitLab