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

Function dm_peer_send_msg

modules/aaa_diameter/dm_peer.c:559–577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

557
558
559static inline int dm_peer_send_msg(struct dm_message *msg)
560{
561 aaa_message *am = msg->am;
562
563 switch (am->type) {
564 case AAA_AUTH:
565 return dm_send_auth(msg);
566 case AAA_ACCT:
567 return dm_send_acct(msg);
568 case AAA_CUSTOM_REQ:
569 return dm_send_custom_req(msg);
570 case AAA_CUSTOM_RPL:
571 return dm_send_custom_rpl(msg);
572 default:
573 LM_ERR("unsupported AAA message type (%d), skipping\n", am->type);
574 }
575
576 return -1;
577}
578
579
580static int dm_prepare_globals(void)

Callers 1

dm_peer_loopFunction · 0.85

Calls 4

dm_send_authFunction · 0.85
dm_send_acctFunction · 0.85
dm_send_custom_reqFunction · 0.85
dm_send_custom_rplFunction · 0.85

Tested by

no test coverage detected