databag/net/server/internal/api_keepCall.go

24 lines
409 B
Go
Raw Normal View History

2023-03-20 04:46:10 +00:00
package databag
import (
"net/http"
2023-03-24 07:37:06 +00:00
"github.com/gorilla/mux"
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
}
2023-03-24 07:37:06 +00:00
params := mux.Vars(r)
callId := params["callId"]
bridgeRelay.KeepAlive(account.ID, callId);
WriteResponse(w, nil);
2023-03-20 04:46:10 +00:00
}