Browse code

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 authored on 19/09/2013 17:49:24
Showing 1 changed files
... ...
@@ -761,7 +761,7 @@ sca_call_info_uri_update( str *aor, sca_call_info *call_info,
761 761
 	     STR_FMT( contact_uri ), STR_FMT( call_id ), call_info->index );
762 762
 
763 763
     if ( !sca_uri_is_shared_appearance( sca, aor )) {
764
-	return( 0 );
764
+	return( 1 );
765 765
     }
766 766
 
767 767
     dialog.id.s = dlg_buf;