Module: kamailio
Branch: master
Commit: db8f664aa72a4fabc9a5f5c4b06d629fd4c8946a
URL:
https://github.com/kamailio/kamailio/commit/db8f664aa72a4fabc9a5f5c4b06d629…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-11-03T13:02:05+01:00
pua_usrloc: no publish requests at shutdown time
- operations are useless, being related to db operations
- safer for races between modules during cleanup, reported by GH #1287
---
Modified: src/modules/pua_usrloc/ul_publish.c
---
Diff:
https://github.com/kamailio/kamailio/commit/db8f664aa72a4fabc9a5f5c4b06d629…
Patch:
https://github.com/kamailio/kamailio/commit/db8f664aa72a4fabc9a5f5c4b06d629…
---
diff --git a/src/modules/pua_usrloc/ul_publish.c b/src/modules/pua_usrloc/ul_publish.c
index 14b318ff34..0afd6d4201 100644
--- a/src/modules/pua_usrloc/ul_publish.c
+++ b/src/modules/pua_usrloc/ul_publish.c
@@ -211,6 +211,8 @@ void ul_publish(ucontact_t* c, int type, void* param)
str content_type;
int error;
+ if(destroy_modules_phase()) return;
+
content_type.s= "application/pidf+xml";
content_type.len= 20;