Просмотр исходного кода

dispatcher(k): set callback type for local requests

- type has to be TMCB_LOCAL_COMPLETED to execute transaction callback
Daniel-Constantin Mierla 16 лет назад
Родитель
Сommit
58c7532661
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      modules_k/dispatcher/dispatch.c

+ 2 - 1
modules_k/dispatcher/dispatch.c

@@ -1653,7 +1653,8 @@ void ds_check_timer(unsigned int ticks, void* param)
 				 * int request(str* m, str* ruri, str* to, str* from, str* h,
 				 *		str* b, str *oburi,
 				 *		transaction_cb cb, void* cbp); */
-				set_uac_req(&uac_r, &ds_ping_method, 0, 0, 0, 0, ds_options_callback,
+				set_uac_req(&uac_r, &ds_ping_method, 0, 0, 0,
+						TMCB_LOCAL_COMPLETED, ds_options_callback,
 							(void*)(long)list->id);
 				if (tmb.t_request(&uac_r,
 							&list->dlist[j].uri,