Loading ccsrc/Protocols/Held/held.codec.cc +2 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ #include "loggers.hh" #include "LibItsHttp_XmlMessageBodyTypes.hh" #include "urn_ietf_params_xml_ns_geopriv_held.hh" int held_codec::encode (const LibItsHttp__XmlMessageBodyTypes::XmlBody& msg, OCTETSTRING& data) Loading @@ -26,6 +27,7 @@ int held_codec::encode (const LibItsHttp__XmlMessageBodyTypes::XmlBody& msg, OCT loggers::get_instance().log_msg("held_codec::encode: Process LocationResponseType", (const Base_Type&)location_response); location_response.encode(urn__ietf__params__xml__ns__geopriv__held::LocationResponse_descr_, encoding_buffer, TTCN_EncDec::CT_XER, XER_EXTENDED); } else { loggers::get_instance().warning("held_codec::encode: Unsupported variant"); return -1; } data = OCTETSTRING(encoding_buffer.get_len(), encoding_buffer.get_data()); Loading ccsrc/Protocols/Http/http_codec.cc +1 −1 Original line number Diff line number Diff line Loading @@ -335,7 +335,7 @@ int http_codec::encode_body(const LibItsHttp__MessageBodyTypes::HttpMessageBody& } else if (xml_body.ischosen(LibItsHttp__XmlMessageBodyTypes::XmlBody::ALT_locationRequest)) { if (_codecs["held"].get() != nullptr) { loggers::get_instance().log("http_codec::encode_body: Call 'held_codec'"); _codecs["held"]->encode((Record_Type&)p_message_body, p_encoding_buffer); _codecs["held"]->encode((Record_Type&)xml_body, p_encoding_buffer); } else { loggers::get_instance().warning("http_codec::encode_body: Failed to encode HELD message"); return -1; Loading etc/TestCodec/TestCodec.cfg +2 −2 Original line number Diff line number Diff line Loading @@ -51,13 +51,13 @@ system.httpPort.params := "HTTP(codecs=held:held_codec;html:html_codec;json:json [EXECUTE] # In this section you can specify what parts of your test suite you want to execute. #TestCodec_Register.tc_register_request_1 TestCodec_Register.tc_register_request_1 #TestCodec_Register.tc_register_request_2 #TestCodec_Register.tc_invite_request_2 #TestCodec_Register.tc_invite_request_2 #TestCodec_HttpRequest.tc_http_get_1 #TestCodec_HttpResponse.tc_http_200_ok_1 TestCodec_HttpPort.tc_http_map_1 #TestCodec_HttpPort.tc_http_map_1 [GROUPS] # In this section you can specify groups of hosts. These groups can be used inside the Loading Loading
ccsrc/Protocols/Held/held.codec.cc +2 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,7 @@ #include "loggers.hh" #include "LibItsHttp_XmlMessageBodyTypes.hh" #include "urn_ietf_params_xml_ns_geopriv_held.hh" int held_codec::encode (const LibItsHttp__XmlMessageBodyTypes::XmlBody& msg, OCTETSTRING& data) Loading @@ -26,6 +27,7 @@ int held_codec::encode (const LibItsHttp__XmlMessageBodyTypes::XmlBody& msg, OCT loggers::get_instance().log_msg("held_codec::encode: Process LocationResponseType", (const Base_Type&)location_response); location_response.encode(urn__ietf__params__xml__ns__geopriv__held::LocationResponse_descr_, encoding_buffer, TTCN_EncDec::CT_XER, XER_EXTENDED); } else { loggers::get_instance().warning("held_codec::encode: Unsupported variant"); return -1; } data = OCTETSTRING(encoding_buffer.get_len(), encoding_buffer.get_data()); Loading
ccsrc/Protocols/Http/http_codec.cc +1 −1 Original line number Diff line number Diff line Loading @@ -335,7 +335,7 @@ int http_codec::encode_body(const LibItsHttp__MessageBodyTypes::HttpMessageBody& } else if (xml_body.ischosen(LibItsHttp__XmlMessageBodyTypes::XmlBody::ALT_locationRequest)) { if (_codecs["held"].get() != nullptr) { loggers::get_instance().log("http_codec::encode_body: Call 'held_codec'"); _codecs["held"]->encode((Record_Type&)p_message_body, p_encoding_buffer); _codecs["held"]->encode((Record_Type&)xml_body, p_encoding_buffer); } else { loggers::get_instance().warning("http_codec::encode_body: Failed to encode HELD message"); return -1; Loading
etc/TestCodec/TestCodec.cfg +2 −2 Original line number Diff line number Diff line Loading @@ -51,13 +51,13 @@ system.httpPort.params := "HTTP(codecs=held:held_codec;html:html_codec;json:json [EXECUTE] # In this section you can specify what parts of your test suite you want to execute. #TestCodec_Register.tc_register_request_1 TestCodec_Register.tc_register_request_1 #TestCodec_Register.tc_register_request_2 #TestCodec_Register.tc_invite_request_2 #TestCodec_Register.tc_invite_request_2 #TestCodec_HttpRequest.tc_http_get_1 #TestCodec_HttpResponse.tc_http_200_ok_1 TestCodec_HttpPort.tc_http_map_1 #TestCodec_HttpPort.tc_http_map_1 [GROUPS] # In this section you can specify groups of hosts. These groups can be used inside the Loading