Browse Source

rls(k): set callback type for local requests

- type has to be TMCB_LOCAL_COMPLETED to execute transaction callback
Daniel-Constantin Mierla 16 năm trước cách đây
mục cha
commit
dfefc8a15e
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      modules_k/rls/notify.c

+ 2 - 2
modules_k/rls/notify.c

@@ -686,8 +686,8 @@ int rls_send_notify(subs_t* subs, str* body, char* start_cid,
 	}
 	LM_DBG("str_hdr= %.*s\n", str_hdr->len, str_hdr->s);
 
-	set_uac_req(&uac_r, &met, str_hdr, body, td, 0, rls_notify_callback,
-				(void*)cb_param);
+	set_uac_req(&uac_r, &met, str_hdr, body, td, TMCB_LOCAL_COMPLETED,
+			rls_notify_callback, (void*)cb_param);
 
 	rt = tmb.t_request_within(&uac_r);
 	if(rt < 0)