Browse code

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 authored on 19/03/2013 09:38:17
Showing 1 changed files
... ...
@@ -363,6 +363,10 @@ sca_appearance_seize_index_unsafe( sca_mod *scam, str *aor, str *owner_uri,
363 363
 	goto done;
364 364
     }
365 365
 
366
+    if ( app_idx <= 0 ) {
367
+        app_idx = sca_appearance_list_next_available_index_unsafe( app_list );
368
+    }
369
+
366 370
     for ( app = app_list->appearances; app != NULL; app = app->next ) {
367 371
 	if ( app->index >= app_idx ) {
368 372
 	    break;