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

Function ospTmcbFunc

modules/osp/tm.c:106–132  ·  view source on GitHub ↗

* OSP callback function * param t * param type * param ps */

Source from the content-addressed store, hash-verified

104 * param ps
105 */
106static void ospTmcbFunc(
107 struct cell* t,
108 int type,
109 struct tmcb_params* ps)
110{
111 if (type & TMCB_RESPONSE_OUT) {
112 LM_DBG("RESPONSE_OUT\n");
113 } else if (type & TMCB_RESPONSE_IN) {
114 LM_DBG("RESPONSE_IN\n");
115 } else if (type & TMCB_REQUEST_FWDED) {
116 LM_DBG("REQUEST_FWDED\n");
117 } else if (type & TMCB_RESPONSE_FWDED) {
118 LM_DBG("RESPONSE_FWDED\n");
119 } else if (type & TMCB_ON_FAILURE) {
120 LM_DBG("FAILURE\n");
121 } else if (type & TMCB_LOCAL_COMPLETED) {
122 LM_DBG("COMPLETED\n");
123 } else {
124 LM_DBG("something else '%d'\n", type);
125 }
126
127 if (t) {
128 ospRecordEvent(t->uac[t->first_branch].last_received, t->uas.status);
129 } else {
130 LM_DBG("cell is empty\n");
131 }
132}

Callers

nothing calls this directly

Calls 1

ospRecordEventFunction · 0.85

Tested by

no test coverage detected