This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# move the do_accounting() call from here (any INVITE) | |
route{ | |
if (is_method("INVITE")) { | |
#t_on_failure("BALANCING_FAILED"); | |
# Initial invite | |
if (!has_totag()) { | |
... | |
# to here (only initial INVITES - once per call) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# $Id$ | |
# | |
# opensips control tool for maintaining opensips | |
# | |
#=================================================================== | |
PATH=$PATH:/usr/local/sbin/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cp $(which opensipsctl) /var/tmp; sudo patch -p1 $(which opensipsctl) < <(cat <<EOF | base64 -d | |
ZGlmZiAtLWdpdCBhL3NjcmlwdHMvb3BlbnNpcHNjdGwgYi9zY3JpcHRzL29wZW5zaXBzY3RsCmlu | |
ZGV4IDI0OWU0NTEuLjlkNGY5N2MgMTAwNzU1Ci0tLSBhL3NjcmlwdHMvb3BlbnNpcHNjdGwKKysr | |
IGIvc2NyaXB0cy9vcGVuc2lwc2N0bApAQCAtMjYxMSwyMyArMjYxMSwzNSBAQCBvcGVuc2lwc190 | |
cmFwKCkgewogCQltZXJyICInZ2RiJyB0b29sIG5vdCBmb3VuZDogc2V0IEdEQiB2YXJpYWJsZSB0 | |
byBjb3JyZWN0IHRvb2wgcGF0aCIKIAkJZXhpdAogCWZpCi0JREFURT1gL2Jpbi9kYXRlICslWSVt | |
JWRfJUglTSVTYAotCUxPR19GSUxFPS90bXAvZ2RiX29wZW5zaXBzXyREQVRFCisJREFURT0kKC9i | |
aW4vZGF0ZSArJVklbSVkXyVIJU0lUykKKwlMT0dfUEFUSD0vdG1wCisJTE9HX0ZJTEU9JExPR19Q | |
QVRIL2dkYl9vcGVuc2lwc18kREFURQogCW1pbmZvICJUcmFwIGZpbGU6ICRMT0dfRklMRSIKLQkk | |
Q1RMQ01EIHBzID4gJExPR19GSUxFCi0JZWNobyAtbiAiVHJhcHBpbmcgT3BlblNJUFMgd2l0aCBn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/freeswitch/fs_proc.c b/modules/freeswitch/fs_proc.c | |
index 820da44..e91e871 100644 | |
--- a/modules/freeswitch/fs_proc.c | |
+++ b/modules/freeswitch/fs_proc.c | |
@@ -442,7 +442,9 @@ int update_event_subscriptions(fs_evs *sock) | |
return ret; | |
} | |
+/* referenced by 1+ modules or has performed at least one ESL command */ | |
#define SHOULD_KEEP_EVS(sock) ((sock)->ref > 0 || (sock)->esl_reply_id > 1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/net/net_tcp.c b/net/net_tcp.c | |
index 70b2efd..f620ca7 100644 | |
--- a/net/net_tcp.c | |
+++ b/net/net_tcp.c | |
@@ -1437,6 +1437,7 @@ inline static int handle_worker(struct process_table* p, int fd_i) | |
tcpconn->lifetime=0; | |
break; | |
} | |
+ tcpconn_put(tcpconn); | |
/* must be after the de-ref*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/rest_client/rest_methods.c b/modules/rest_client/rest_methods.c | |
index 930f275..dd2772d 100644 | |
--- a/modules/rest_client/rest_methods.c | |
+++ b/modules/rest_client/rest_methods.c | |
@@ -334,8 +334,10 @@ busy_wait: | |
success: | |
clean_header_list; | |
+ async_parm->header_list = header_list; | |
async_parm->handle = handle; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/cachedb/cachedb.h b/cachedb/cachedb.h | |
index 3615853..39b590c 100644 | |
--- a/cachedb/cachedb.h | |
+++ b/cachedb/cachedb.h | |
@@ -63,7 +63,7 @@ typedef cachedb_con* (cachedb_init_f)(str *url); | |
typedef void (cachedb_destroy_f)(cachedb_con *con); | |
/* NOTE: "val->s" must be allocated in PKG memory, | |
- * and will be freed by the CacheDB layer! */ | |
+ * and MUST be freed by the calling layer! */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/rest_client/rest_methods.c b/modules/rest_client/rest_methods.c | |
index 930f275..aa52caa 100644 | |
--- a/modules/rest_client/rest_methods.c | |
+++ b/modules/rest_client/rest_methods.c | |
@@ -333,9 +333,10 @@ busy_wait: | |
goto error; | |
success: | |
- clean_header_list; | |
+ async_parm->header_list = header_list; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/rest_client/rest_methods.c b/modules/rest_client/rest_methods.c | |
index b10d416..5343db7 100644 | |
--- a/modules/rest_client/rest_methods.c | |
+++ b/modules/rest_client/rest_methods.c | |
@@ -43,10 +43,6 @@ static char print_buff[MAX_CONTENT_TYPE_LEN]; | |
/* additional HTTP headers for the next request */ | |
static struct curl_slist *header_list = NULL; | |
-/* simultaneous ongoing transfers within this process */ | |
-static int transfers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/cachedb_mongodb/cachedb_mongodb_dbase.c b/modules/cachedb_mongodb/cachedb_mongodb_dbase.c | |
index 2621475..79a0528 100644 | |
--- a/modules/cachedb_mongodb/cachedb_mongodb_dbase.c | |
+++ b/modules/cachedb_mongodb/cachedb_mongodb_dbase.c | |
@@ -90,6 +90,10 @@ static char *build_mongodb_connect_string(struct cachedb_id *id) | |
return ret; | |
} | |
+#ifndef MONGOC_HANDSHAKE_APPNAME_MAX | |
+#define MONGOC_HANDSHAKE_APPNAME_MAX 128 |