فهرست منبع

tm: advertise child rpc-sip mode when using event_route[tm:local-request]

- the event route can be executed for MI/RPC commands that send
  requests, thus there are sip routing specific functions that work when
  child init for sip workers is executed for that process
- example, calling acc_db_request() requires db connection to be open
Daniel-Constantin Mierla 14 سال پیش
والد
کامیت
ab84134e3d
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  1. 2 0
      modules/tm/tm.c

+ 2 - 0
modules/tm/tm.c

@@ -842,6 +842,8 @@ static int mod_init(void)
 	goto_on_local_req=route_lookup(&event_rt, "tm:local-request");
 	if (goto_on_local_req>=0 && event_rt.rlist[goto_on_local_req]==0)
 		goto_on_local_req=-1; /* disable */
+	if (goto_on_local_req>=0)
+		set_child_rpc_sip_mode();
 #endif /* WITH_EVENT_LOCAL_REQUEST */
 	if (goto_on_sl_reply && onreply_rt.rlist[goto_on_sl_reply]==0)
 		WARN("empty/non existing on_sl_reply route\n");