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

Function ospGetInboundInfo

modules/osp/destination.c:134–147  ·  view source on GitHub ↗

* Retrieved the inbound info from an AVP * avpid - osp_inbound_avpid * value - osp_inbound wrapped in a string * return NULL on failure */

Source from the content-addressed store, hash-verified

132 * return NULL on failure
133 */
134osp_inbound* ospGetInboundInfo(void)
135{
136 int_str inboundval;
137 osp_inbound* inbound = NULL;
138
139 if (search_first_avp(AVP_VAL_STR, _osp_inbound_avpid, &inboundval, 0) != NULL) {
140 /* OSP inbound info is wrapped in a string */
141 inbound = (osp_inbound*)inboundval.s.s;
142
143 LM_DBG("inbound info found\n");
144 }
145
146 return inbound;
147}
148
149/*
150 * Initialize destination structure

Callers 3

ospReportOrigSetupUsageFunction · 0.85
ospReportTermSetupUsageFunction · 0.85
ospPrepareDestinationFunction · 0.85

Calls 1

search_first_avpFunction · 0.85

Tested by

no test coverage detected