MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / handle_cl_gen_msg

Function handle_cl_gen_msg

modules/clusterer/clusterer.c:1076–1091  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1074}
1075
1076void handle_cl_gen_msg(bin_packet_t *packet, int cluster_id, int source_id)
1077{
1078 int req_like;
1079 str rcv_msg, rcv_tag;
1080
1081 LM_DBG("Received generic clusterer message\n");
1082
1083 bin_pop_int(packet, &req_like);
1084 bin_pop_str(packet, &rcv_tag);
1085 bin_pop_str(packet, &rcv_msg);
1086
1087 if (raise_gen_msg_ev(cluster_id, source_id, req_like, &rcv_msg, &rcv_tag)) {
1088 LM_ERR("Failed to raise event for a received generic message!\n");
1089 return;
1090 }
1091}
1092
1093static void handle_cl_mi_msg(bin_packet_t *packet)
1094{

Callers 3

clusterer_send_msgFunction · 0.85
clusterer_bcast_msgFunction · 0.85
bin_rcv_cl_extra_packetsFunction · 0.85

Calls 3

bin_pop_intFunction · 0.85
bin_pop_strFunction · 0.85
raise_gen_msg_evFunction · 0.85

Tested by

no test coverage detected