Skip to content

Commit

Permalink
core: add transport parameter for ws/wss advertised proto
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 2, 2023
1 parent ef5e889 commit 21eeb97
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/msg_translator.c
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,9 @@ void process_lumps(struct sip_msg *msg, struct lump *lumps, char *new_buf,
break; \
case PROTO_WS: \
case PROTO_WSS: \
memcpy(new_buf + offset, TRANSPORT_PARAM, \
TRANSPORT_PARAM_LEN); \
offset += TRANSPORT_PARAM_LEN; \
memcpy(new_buf + offset, "ws", 2); \
offset += 2; \
break; \
Expand Down Expand Up @@ -1217,6 +1220,9 @@ void process_lumps(struct sip_msg *msg, struct lump *lumps, char *new_buf,
break; \
case PROTO_WS: \
case PROTO_WSS: \
memcpy(new_buf + offset, TRANSPORT_PARAM, \
TRANSPORT_PARAM_LEN); \
offset += TRANSPORT_PARAM_LEN; \
memcpy(new_buf + offset, "ws", 2); \
offset += 2; \
break; \
Expand Down

0 comments on commit 21eeb97

Please sign in to comment.