databag/net/server/internal/api_keepCall.go

26 lines
465 B
Go
Raw Normal View History

2023-03-20 04:46:10 +00:00
package databag
import (
"net/http"
2023-03-20 04:46:10 +00:00
)
//KeepCall keeps call and signaling alive
2023-03-20 04:46:10 +00:00
func KeepCall(w http.ResponseWriter, r *http.Request) {
account, code, err := ParamAgentToken(r, false)
if err != nil {
ErrResponse(w, code, err)
return
}
var callId string
if err := ParseRequest(r, w, &callId); err != nil {
ErrResponse(w, http.StatusBadRequest, err)
return
}
bridgeRelay.KeepAlive(account.ID, callId);
WriteResponse(w, nil);
2023-03-20 04:46:10 +00:00
}