Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package belle-sip for openSUSE:Factory checked in at 2022-03-24 22:58:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/belle-sip (Old) and /work/SRC/openSUSE:Factory/.belle-sip.new.1900 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "belle-sip" Thu Mar 24 22:58:23 2022 rev:26 rq:964623 version:5.1.12 Changes: -------- --- /work/SRC/openSUSE:Factory/belle-sip/belle-sip.changes 2022-03-01 19:07:03.488174586 +0100 +++ /work/SRC/openSUSE:Factory/.belle-sip.new.1900/belle-sip.changes 2022-03-24 23:00:34.584399738 +0100 @@ -1,0 +2,6 @@ +Thu Mar 24 10:33:55 UTC 2022 - Paolo Stivanin <[email protected]> + +- Update to 5.1.12: + * no changelog + +------------------------------------------------------------------- Old: ---- belle-sip-5.1.0.tar.bz2 New: ---- belle-sip-5.1.12.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ belle-sip.spec ++++++ --- /var/tmp/diff_new_pack.g33l1o/_old 2022-03-24 23:00:35.144400278 +0100 +++ /var/tmp/diff_new_pack.g33l1o/_new 2022-03-24 23:00:35.148400282 +0100 @@ -20,7 +20,7 @@ %define soname libbellesip %define sover 1 Name: belle-sip -Version: 5.1.0 +Version: 5.1.12 Release: 0 Summary: C object-oriented SIP Stack License: GPL-3.0-only ++++++ belle-sip-5.1.0.tar.bz2 -> belle-sip-5.1.12.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.1.0/src/channel.c new/belle-sip-5.1.12/src/channel.c --- old/belle-sip-5.1.0/src/channel.c 2022-02-03 15:07:52.000000000 +0100 +++ new/belle-sip-5.1.12/src/channel.c 2022-03-16 10:38:57.000000000 +0100 @@ -925,7 +925,6 @@ void belle_sip_channel_close(belle_sip_channel_t *obj){ if (BELLE_SIP_OBJECT_VPTR(obj,belle_sip_channel_t)->close) BELLE_SIP_OBJECT_VPTR(obj,belle_sip_channel_t)->close(obj); /*udp channel doesn't have close function*/ - /*removing the source (our base class) will decrement the ref count, this why this code needs to be protected by ref/unref.*/ belle_sip_main_loop_remove_source(obj->stack->ml,(belle_sip_source_t*)obj); belle_sip_source_uninit((belle_sip_source_t*)obj); } @@ -1018,7 +1017,8 @@ const belle_sip_dns_srv_t *srv = belle_sip_resolver_results_get_srv_from_addrinfo(obj->resolver_results, ai); obj->current_peer_cname = srv ? belle_sip_dns_srv_get_target(srv) : NULL; if (obj->current_peer_cname){ - belle_sip_message("channel[%p]: current peer hostname is [%s].", obj, obj->current_peer_cname); + belle_sip_message("channel[%p]: current peer hostname is [%s] on port [%i].", obj, + obj->current_peer_cname, belle_sip_dns_srv_get_port(srv)); } }else{ obj->current_peer_cname = NULL; @@ -1049,15 +1049,16 @@ } int belle_sip_channel_notify_timeout(belle_sip_channel_t *obj){ - const int too_long=60; + const uint64_t too_long = 60; if (obj->state != BELLE_SIP_CHANNEL_READY){ /*no need to notify the timeout if the channel is already in error or retry state*/ return FALSE; } - if ((int)(belle_sip_time_ms() - obj->last_recv_time) >= (too_long * 1000)){ - belle_sip_message("A timeout related to this channel occured and no message received during last %i seconds. This channel is suspect, moving to error state",too_long); + if ((belle_sip_time_ms() - obj->last_recv_time) >= too_long * 1000){ + belle_sip_message("A timeout related to this channel occured and no message received during last %i seconds. This channel is suspect, moving to error state", (int)too_long); + obj->soft_error = TRUE; channel_set_state(obj,BELLE_SIP_CHANNEL_ERROR); return TRUE; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.1.0/src/md5.c new/belle-sip-5.1.12/src/md5.c --- old/belle-sip-5.1.0/src/md5.c 2022-02-03 15:07:52.000000000 +0100 +++ new/belle-sip-5.1.12/src/md5.c 2022-03-16 10:38:57.000000000 +0100 @@ -53,6 +53,7 @@ #include "md5.h" #include <string.h> +#include <stdint.h> #undef BYTE_ORDER /* 1 = big-endian, -1 = little-endian, 0 = unknown */ #ifdef ARCH_IS_BIG_ENDIAN @@ -160,7 +161,7 @@ * On little-endian machines, we can process properly aligned * data without copying it. */ - if (!((data - (const md5_byte_t *)0) & 3)) { + if (!(((uintptr_t)data) & 3)) { /* data are properly aligned */ X = (const md5_word_t *)data; } else { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/belle-sip-5.1.0/src/transaction.c new/belle-sip-5.1.12/src/transaction.c --- old/belle-sip-5.1.0/src/transaction.c 2022-02-03 15:07:52.000000000 +0100 +++ new/belle-sip-5.1.12/src/transaction.c 2022-03-16 10:38:57.000000000 +0100 @@ -288,20 +288,20 @@ } void belle_sip_transaction_notify_timeout(belle_sip_transaction_t *t){ - /*report the channel as possibly dead. If an alternate IP can be tryied, the channel will notify us with the RETRY state. + /* Report the channel as possibly dead. If an alternate IP can be tryied, the channel will notify us with the RETRY state. * Otherwise it will report the error. * We limit this dead channel reporting to REGISTER transactions, who are unlikely to be unresponded. **/ - belle_sip_object_ref(t); /*take a ref in the case where the app calls belle_sip_transaction_terminate() within the timeout listener*/ - if (strcmp(belle_sip_request_get_method(t->request),"REGISTER")==0){ - if ( belle_sip_channel_notify_timeout(t->channel)==TRUE){ + if (strcmp(belle_sip_request_get_method(t->request), "REGISTER") == 0){ + if (belle_sip_channel_notify_timeout(t->channel)==TRUE){ belle_sip_warning("Transaction [%p] has timeout, reported to channel.",t); - t->timed_out=TRUE; + t->timed_out = TRUE; + return; } - }else { - notify_timeout(t); - belle_sip_transaction_terminate(t); } + belle_sip_object_ref(t); /*take a ref in the case where the app calls belle_sip_transaction_terminate() within the timeout listener*/ + notify_timeout(t); + belle_sip_transaction_terminate(t); belle_sip_object_unref(t); }
