Browse code

modules/sca: seize appearance for SCA callee answering w/o Call-Info

- Yealink firmware 7.70.0.130 doesn't include a Call-Info header with
200 OK response to INVITE.

Andrew Mortensen authored on 18/03/2013 19:03:24
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;