瀏覽代碼

Merge branch 'master' of ssh://git.sip-router.org/sip-router

* 'master' of ssh://git.sip-router.org/sip-router:
  modules/sca: seize appearance for SCA callee answering w/o Call-Info
Hugh Waite 12 年之前
父節點
當前提交
c218ae122d
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      modules/sca/sca_appearance.c

+ 4 - 0
modules/sca/sca_appearance.c

@@ -363,6 +363,10 @@ sca_appearance_seize_index_unsafe( sca_mod *scam, str *aor, str *owner_uri,
 	goto done;
     }
 
+    if ( app_idx <= 0 ) {
+        app_idx = sca_appearance_list_next_available_index_unsafe( app_list );
+    }
+
     for ( app = app_list->appearances; app != NULL; app = app->next ) {
 	if ( app->index >= app_idx ) {
 	    break;