Skip to content

Commit

Permalink
Feat/ws pong (drachtio#373)
Browse files Browse the repository at this point in the history
* update to sofia branch with ws_pong support

* respond to ws ping

* update to sofia fix for sending ws pong as text frame

* build with merged sofia feature for ws options pong
  • Loading branch information
davehorton authored and orgads committed Sep 16, 2024
1 parent e9aea8a commit c857145
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deps/sofia-sip
2 changes: 2 additions & 0 deletions src/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,7 @@ namespace drachtio {
NTATAG_SERVER_RPORT(2), //force rport even when client does not provide
NTATAG_CLIENT_RPORT(true), //add rport on Via headers for requests we send
NTATAG_PASS_408(true), //pass 408s to application
TPTAG_PONG2PING(1), // if we get a 2-byte ping, respond with CRLF pong
TAG_NULL(),
TAG_END() ) ;

Expand Down Expand Up @@ -1353,6 +1354,7 @@ namespace drachtio {
TAG_IF( tlsTransport && hasTlsFiles && !tlsChainFile.empty(), TPTAG_TLS_CERTIFICATE_CHAIN_FILE(tlsChainFile.c_str())),
TAG_IF( tlsTransport &&hasTlsFiles,
TPTAG_TLS_VERSION( tlsVersionTagValue )),
TPTAG_PONG2PING(1), // if we get a 2-byte ping, respond with CRLF pong
TAG_NULL(),
TAG_END() ) ;

Expand Down

0 comments on commit c857145

Please sign in to comment.