]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res/res_pjsip/presence_xml.c: Add missing 2nd call presence state case. 63/2063/1
authorRichard Mudgett <rmudgett@digium.com>
Wed, 20 Jan 2016 00:20:59 +0000 (18:20 -0600)
committerRichard Mudgett <rmudgett@digium.com>
Thu, 21 Jan 2016 22:07:11 +0000 (16:07 -0600)
ASTERISK-25712 #close
Reported by: Richard Mudgett

Change-Id: I70634df24f8c6c3a2c66c45af61d021e4999253f

res/res_pjsip/presence_xml.c

index 267af547d6a1b6c26f3a114f0d4426ca9b4e98b5..86fbca9a657f8beb4f811042c76edb617a7a54f6 100644 (file)
@@ -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;
        }
 }