Module: kamailio
Branch: master
Commit: 7f618c2d855ac268df905eb3d6e18733c8773047
URL:
https://github.com/kamailio/kamailio/commit/7f618c2d855ac268df905eb3d6e1873…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-04-24T21:09:26+02:00
dmq: set 202 response for empty_peer_callback() handling
---
Modified: src/modules/dmq/peer.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7f618c2d855ac268df905eb3d6e1873…
Patch:
https://github.com/kamailio/kamailio/commit/7f618c2d855ac268df905eb3d6e1873…
---
diff --git a/src/modules/dmq/peer.c b/src/modules/dmq/peer.c
index 6c5ddf8954..7c2bf298e7 100644
--- a/src/modules/dmq/peer.c
+++ b/src/modules/dmq/peer.c
@@ -99,5 +99,11 @@ dmq_peer_t *find_peer(str peer_id)
int empty_peer_callback(
struct sip_msg *msg, peer_reponse_t *resp, dmq_node_t *dmq_node)
{
+ static str _dmq_202_reason = str_init("Accepted DMQ");
+
+ memset(resp, 0, sizeof(peer_reponse_t));
+ resp->resp_code = 202;
+ resp->reason = _dmq_202_reason;
+
return 0;
}