[sr-dev] [PATCH] modules/sca: fix sca_call_info_uri_update() return value

Timo Teräs timo.teras at iki.fi
Wed Sep 18 09:54:08 CEST 2013


sca_call_info_uri_update() return value is passed directly as
return value of script function "sca_call_info_update". Return
value 0 means 'exit script' but that is unwanted. Fix it to
just continue with script execution normally.
---
Andrew, does this look ok? Can I push this, or will you do it?
Should go to master and 4.0 branch at least.

 modules/sca/sca_call_info.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/sca/sca_call_info.c b/modules/sca/sca_call_info.c
index 43c7f56..b71bed3 100644
--- a/modules/sca/sca_call_info.c
+++ b/modules/sca/sca_call_info.c
@@ -743,7 +743,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;
-- 
1.8.4




More information about the sr-dev mailing list