Module: sip-router Branch: kamailio_3.0 Commit: d8dde2fe2e7004c69a6241a054c5febe73548267 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d8dde2fe...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Fri Nov 6 11:42:35 2009 +0100
msilo(k): set tm callback type for sent messages
- it must be TMCB_LOCAL_COMPLETED - otherwise the callback is not executed when transaction completes - delivered messages were not deleted from db - reported by Juha Heinanen
---
modules_k/msilo/msilo.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules_k/msilo/msilo.c b/modules_k/msilo/msilo.c index 7c9cefa..8249b43 100644 --- a/modules_k/msilo/msilo.c +++ b/modules_k/msilo/msilo.c @@ -1060,6 +1060,7 @@ static int m_dump(struct sip_msg* msg, char* owner, char* str2) uac_r.method = &msg_type; uac_r.headers = &hdr_str; uac_r.body = (n<0)?&str_vals[2]:&body_str; + uac_r.cb_flags = TMCB_LOCAL_COMPLETED; uac_r.cb = m_tm_callback; uac_r.cbp = (void*)(long)mid;
@@ -1333,6 +1334,7 @@ void m_send_ontimer(unsigned int ticks, void *param) uac_r.method = &msg_type; uac_r.headers = &hdr_str; uac_r.body = (n<0)?&str_vals[2]:&body_str; + uac_r.cb_flags = TMCB_LOCAL_COMPLETED; uac_r.cb = m_tm_callback; uac_r.cbp = (void*)(long)mid; tmb.t_request(&uac_r, /* UAC Req */