MT#61372 add `SIP code` support to protocol

Change-Id: Id7982aadf090db18561c50aec127f42860ebb6a4
pull/1880/head
Richard Fuchs 1 year ago
parent a99e162202
commit 98c037baf3

@ -1886,6 +1886,16 @@ void call_ng_main_flags(const ng_parser_t *parser, str *key, parser_arg value, h
case CSH_LOOKUP("set-label"):
out->set_label = s;
break;
case CSH_LOOKUP("sip-code"):
case CSH_LOOKUP("sip_code"):
case CSH_LOOKUP("SIP-code"):
case CSH_LOOKUP("SIP_code"):
case CSH_LOOKUP("sip-response-code"):
case CSH_LOOKUP("sip_response_code"):
case CSH_LOOKUP("SIP-response-code"):
case CSH_LOOKUP("SIP_response_code"):
out->code = parser->get_int_str(value, out->code);
break;
case CSH_LOOKUP("sip-message-type"):
case CSH_LOOKUP("sip_message_type"):
case CSH_LOOKUP("SIP-message-type"):

@ -577,6 +577,11 @@ Optionally included keys are:
Contains a string indicating whether the SIP message that triggered this
signalling message was either a `SIP request` or a `SIP response`.
* `SIP code`
Contains an integer corresponding to the SIP response code (e.g. 180 or
200) if this signalling message was triggered by a SIP response.
* `via-branch`
The SIP `Via` branch as string. Used to additionally refine the matching logic between media streams

@ -16,6 +16,7 @@ struct sockaddr_in6;
struct sdp_ng_flags {
enum call_opmode opmode;
enum message_type message_type;
unsigned int code;
str call_id;
str from_tag;
str_q from_tags;

Loading…
Cancel
Save