From 3dd3fd28d4cd981ed065ee9b69d9924da508573d Mon Sep 17 00:00:00 2001 From: Daniel Pocock Date: Fri, 31 May 2013 16:45:17 +0200 Subject: [PATCH] Correct the Via header for WS transport --- examples/sip_client/sip_client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/sip_client/sip_client.cpp b/examples/sip_client/sip_client.cpp index 916bfce6f2..cb6affd168 100644 --- a/examples/sip_client/sip_client.cpp +++ b/examples/sip_client/sip_client.cpp @@ -29,7 +29,7 @@ void on_open(websocketpp::connection_hdl hdl) { received=false; // Send a SIP OPTIONS message to the server: - std::string SIP_msg="OPTIONS sip:carol@chicago.com SIP/2.0\r\nVia: SIP/2.0/UDP pc33.atlanta.com;branch=z9hG4bKhjhs8ass877\r\nMax-Forwards: 70\r\nTo: \r\nFrom: Alice ;tag=1928301774\r\nCall-ID: a84b4c76e66710\r\nCSeq: 63104 OPTIONS\r\nContact: \r\nAccept: application/sdp\r\nContent-Length: 0\r\n\r\n"; + std::string SIP_msg="OPTIONS sip:carol@chicago.com SIP/2.0\r\nVia: SIP/2.0/WS df7jal23ls0d.invalid;rport;branch=z9hG4bKhjhs8ass877\r\nMax-Forwards: 70\r\nTo: \r\nFrom: Alice ;tag=1928301774\r\nCall-ID: a84b4c76e66710\r\nCSeq: 63104 OPTIONS\r\nContact: \r\nAccept: application/sdp\r\nContent-Length: 0\r\n\r\n"; sip_client.send(hdl, SIP_msg.c_str(), websocketpp::frame::opcode::text); }