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

Function l_siplua_getExpires

modules/lua/sipapi.c:160–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160static int l_siplua_getExpires(lua_State *L)
161{
162 struct sipapi_object *o;
163 int expires;
164
165 o = luaL_checkudata(L, 1, "siplua.api");
166/* siplua_log(L_DBG, "BEFORE"); */
167 expires = sipapi_getExpires(o->msg);
168/* siplua_log(L_DBG, "AFTER"); */
169 if (expires != -1)
170 lua_pushinteger(L, expires);
171 else
172 lua_pushnil(L);
173 return 1;
174}
175
176static int l_siplua_getHeader(lua_State *L)
177{

Callers

nothing calls this directly

Calls 1

sipapi_getExpiresFunction · 0.85

Tested by

no test coverage detected