diff --git a/res/res_pjsip/presence_xml.c b/res/res_pjsip/presence_xml.c index 267af547d6a1b6c26f3a114f0d4426ca9b4e98b5..86fbca9a657f8beb4f811042c76edb617a7a54f6 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; } }