dmq: set 202 response for empty_peer_callback() handling
authorDaniel-Constantin Mierla <miconda@gmail.com>
Fri, 24 Apr 2020 19:09:26 +0000 (21:09 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Fri, 24 Apr 2020 19:09:26 +0000 (21:09 +0200)
src/modules/dmq/peer.c

index 6c5ddf8..7c2bf29 100644 (file)
@@ -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;
 }