Module: kamailio
Branch: master
Commit: 912e2ef41533e961bc55ca80619305af8e474469
URL:
https://github.com/kamailio/kamailio/commit/912e2ef41533e961bc55ca80619305a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-04-09T18:51:42+02:00
pua_dialoginfo: check request to cover cases of callbacks without it
- updates the previous commit
---
Modified: src/modules/pua_dialoginfo/pua_dialoginfo.c
---
Diff:
https://github.com/kamailio/kamailio/commit/912e2ef41533e961bc55ca80619305a…
Patch:
https://github.com/kamailio/kamailio/commit/912e2ef41533e961bc55ca80619305a…
---
diff --git a/src/modules/pua_dialoginfo/pua_dialoginfo.c
b/src/modules/pua_dialoginfo/pua_dialoginfo.c
index a146b52d19..7e7afe2eae 100644
--- a/src/modules/pua_dialoginfo/pua_dialoginfo.c
+++ b/src/modules/pua_dialoginfo/pua_dialoginfo.c
@@ -272,7 +272,7 @@ __dialog_sendpublish(struct dlg_cell *dlg, int type, struct
dlg_cb_params *_para
}
/* skip requests that do not control call state */
- if((request->REQ_METHOD)&(METHOD_PRACK|METHOD_UPDATE)) {
+ if(request && (request->REQ_METHOD)&(METHOD_PRACK|METHOD_UPDATE)) {
return;
}
if(include_req_uri) {