mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 03:29:16 +00:00
24 lines
409 B
Go
24 lines
409 B
Go
package databag
|
|
|
|
import (
|
|
"net/http"
|
|
"github.com/gorilla/mux"
|
|
)
|
|
|
|
//KeepCall keeps call and signaling alive
|
|
func KeepCall(w http.ResponseWriter, r *http.Request) {
|
|
|
|
account, code, err := ParamAgentToken(r, false)
|
|
if err != nil {
|
|
ErrResponse(w, code, err)
|
|
return
|
|
}
|
|
|
|
params := mux.Vars(r)
|
|
callId := params["callId"]
|
|
|
|
bridgeRelay.KeepAlive(account.ID, callId);
|
|
WriteResponse(w, nil);
|
|
}
|
|
|