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

Function l_siplua_getURI_User

modules/lua/sipapi.c:140–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138}
139
140static int l_siplua_getURI_User(lua_State *L)
141{
142 struct sipapi_object *o;
143 struct sip_uri *myuri;
144
145 o = luaL_checkudata(L, 1, "siplua.api");
146 myuri = parse_to_uri(o->msg);
147 if (!myuri)
148 {
149/* siplua_log(L_WARN, "parse_to_uri returned NULL results"); */
150 lua_pushnil(L);
151 }
152 else
153 {
154/* siplua_log(L_DBG, "parse_to_uri returned non-empty results"); */
155 lua_pushlstring(L, myuri->user.s, myuri->user.len);
156 }
157 return 1;
158}
159
160static int l_siplua_getExpires(lua_State *L)
161{

Callers

nothing calls this directly

Calls 1

parse_to_uriFunction · 0.85

Tested by

no test coverage detected