[sr-dev] [kamailio/kamailio] Kazoo: added basic kemi support (#2324)

tao-communications notifications at github.com
Wed May 20 18:39:26 CEST 2020


@tao-communications commented on this pull request.



> +    sr_kemi_eng_t *keng = NULL;
+	  if(kazoo_event_callback.s!=NULL && kazoo_event_callback.len>0) {
+		  keng = sr_kemi_eng_get();
+		  if(keng==NULL) {
+			  LM_ERR("failed to find kemi engine\n");
+			  return -1;
+		  }
+		  kazoo_route_no=-1;
+	  } 
+    else {
+		  route_no=route_lookup(&event_rt, "kazoo:consumer-event");
+		  if (route_no==-1)
+		  {
+			  LM_ERR("failed to find event_route[kazoo:consumer-event]\n");
+			  return -1;
+		  }
+		  if (event_rt.rlist[route_no]==0)
+		  {
+			  LM_WARN("event_route[kazoo:consumer-event] is empty\n");
+		  }
+		  kazoo_route_no=route_no;
+    }
+    
+    

Now removed route_lookup for kazoo:consumer-event as it may or may not exist.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2324#discussion_r428155232
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20200520/b609320c/attachment.html>


More information about the sr-dev mailing list