소스 검색

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 년 전
부모
커밋
2f0043b153
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;