Skip to content

Commit

Permalink
sip/transp: fix websock_accept proto
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed May 9, 2023
1 parent 09c89fb commit 5f1f2ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sip/transp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1148,8 +1148,8 @@ static void http_req_handler(struct http_conn *hc, const struct http_msg *msg,
conn->sip = transp->sip;
conn->tp = transp->tp;

err = websock_accept(&conn->websock_conn, transp->sip->websock,
hc, msg, 15000,
err = websock_accept_proto(&conn->websock_conn, "sip",
transp->sip->websock, hc, msg, 15000,
websock_recv_handler, websock_close_handler,
conn);
if (err)
Expand Down

0 comments on commit 5f1f2ea

Please sign in to comment.