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

Function ospInitDestination

modules/osp/destination.c:154–165  ·  view source on GitHub ↗

* Initialize destination structure * param dest Destination data structure * return initialized destination sturcture */

Source from the content-addressed store, hash-verified

152 * return initialized destination sturcture
153 */
154osp_dest* ospInitDestination(
155 osp_dest* dest)
156{
157 memset(dest, 0, sizeof(osp_dest));
158
159 dest->callidsize = sizeof(dest->callid);
160 dest->tokensize = sizeof(dest->token);
161
162 LM_DBG("callidsize '%d' tokensize '%d'\n", dest->callidsize, dest->tokensize);
163
164 return dest;
165}
166
167/*
168 * Save destination as an AVP

Callers 2

ospValidateHeaderFunction · 0.85
ospLoadRoutesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected