From 7a2c1f8646bf1453851b27bce5fc83a8be59e827 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Mon, 27 Jul 2015 12:02:00 +0200 Subject: [PATCH] MT#10339 add patch to fix dmq_usrloc build after usrloc patches Change-Id: Ic343ada9254c4d9eac1f19966b9abeb72abbc8db --- debian/patches/series | 1 + ...update-get_all_ucontacts-API-request.patch | 36 +++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 debian/patches/sipwise/0001-dmq_usrloc-update-get_all_ucontacts-API-request.patch diff --git a/debian/patches/series b/debian/patches/series index 2c955ec52..192e94bc9 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -22,4 +22,5 @@ sipwise/usrloc_dbro.patch sipwise/0001-usrloc-support-filter-by-server_id-at-get_all_uconta.patch sipwise/0002-usrloc-add-module-option-to-support-preload-using-se.patch sipwise/0003-nathelper-support-filter-contacts-by-server_id.patch +sipwise/0001-dmq_usrloc-update-get_all_ucontacts-API-request.patch ## diff --git a/debian/patches/sipwise/0001-dmq_usrloc-update-get_all_ucontacts-API-request.patch b/debian/patches/sipwise/0001-dmq_usrloc-update-get_all_ucontacts-API-request.patch new file mode 100644 index 000000000..dcda8234d --- /dev/null +++ b/debian/patches/sipwise/0001-dmq_usrloc-update-get_all_ucontacts-API-request.patch @@ -0,0 +1,36 @@ +From 160a9ae1f9bbd3451911a3a19f271142f8f6c98d Mon Sep 17 00:00:00 2001 +From: Victor Seva +Date: Tue, 7 Jul 2015 13:04:00 +0200 +Subject: [PATCH] dmq_usrloc: update get_all_ucontacts API request + +Fixes: #236 +(cherry picked from commit 733fd5daf74963b152a2964f9eea1a6fff91858a) +--- + modules/dmq_usrloc/usrloc_sync.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/modules/dmq_usrloc/usrloc_sync.c b/modules/dmq_usrloc/usrloc_sync.c +index 3bd0c24..6a77b00 100644 +--- a/modules/dmq_usrloc/usrloc_sync.c ++++ b/modules/dmq_usrloc/usrloc_sync.c +@@ -116,7 +116,7 @@ void usrloc_get_all_ucontact(dmq_node_t* node) + LM_ERR("dmq_ul.get_all_ucontacts is NULL\n"); + goto done; + } +- rval = dmq_ul.get_all_ucontacts(buf, len, 0, 0, 1); ++ rval = dmq_ul.get_all_ucontacts(buf, len, 0, 0, 1, 0); + if (rval<0) { + LM_ERR("failed to fetch contacts\n"); + goto done; +@@ -130,7 +130,7 @@ void usrloc_get_all_ucontact(dmq_node_t* node) + LM_ERR("out of pkg memory\n"); + goto done; + } +- rval = dmq_ul.get_all_ucontacts(buf, len, 0, 0, 1); ++ rval = dmq_ul.get_all_ucontacts(buf, len, 0, 0, 1, 0); + if (rval != 0) { + pkg_free(buf); + goto done; +-- +2.1.4 +