app: freeswitch queries extension
This commit is contained in:
parent
af83d44a29
commit
93e5a8f341
2
app.moon
2
app.moon
|
@ -94,7 +94,7 @@ class App extends lapis.Application
|
||||||
[freeswitch: "/freeswitch"]: respond_to {
|
[freeswitch: "/freeswitch"]: respond_to {
|
||||||
POST: =>
|
POST: =>
|
||||||
uid = @params["user"] or @params["sip_auth_username"]
|
uid = @params["user"] or @params["sip_auth_username"]
|
||||||
@user = Users\find id: uid
|
@user = Users\find extension: uid
|
||||||
if not @user
|
if not @user
|
||||||
return status: 404, "no such user"
|
return status: 404, "no such user"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue