浏览代码

sca: fix regression omitting call-info NOTIFYs on INVITE 200 reply.

- Restore call-info NOTIFY with appearance-state=active when callee answers.
- Reported by Robert Boisvert.
Andrew Mortensen 12 年之前
父节点
当前提交
dab6e5b5af
共有 1 个文件被更改,包括 8 次插入0 次删除
  1. 8 0
      modules/sca/sca_call_info.c

+ 8 - 0
modules/sca/sca_call_info.c

@@ -1266,6 +1266,14 @@ done:
 	pkg_free( app_uri_aor.s );
     }
 
+    if ( rc == 1 ) {
+	if ( sca_notify_call_info_subscribers( sca, from_aor ) < 0 ) {
+	    LM_ERR( "Failed to call-info NOTIFY %.*s subscribers on "
+		    "200 OK reply to INVITE", STR_FMT( from_aor ));
+	    rc = -1;
+	}
+    }
+
     return( rc );
 }