Browse Source

modules/sca: fix return value of sca_call_info_uri_update()

- return value of 0 can bubble up as return value of sca_call_info_update(),
  causing early script termination (exported function returning 0 in script
  is equivalent to "exit")
- report and patch from Timo Teräs
Andrew Mortensen 12 years ago
parent
commit
2f0043b153
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/sca/sca_call_info.c

+ 1 - 1
modules/sca/sca_call_info.c

@@ -761,7 +761,7 @@ sca_call_info_uri_update( str *aor, sca_call_info *call_info,
 	     STR_FMT( contact_uri ), STR_FMT( call_id ), call_info->index );
 
     if ( !sca_uri_is_shared_appearance( sca, aor )) {
-	return( 0 );
+	return( 1 );
     }
 
     dialog.id.s = dlg_buf;