pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/36794?usp=email )
Change subject: SIP_Templates: Add ts_SIP_Response_Trying ......................................................................
SIP_Templates: Add ts_SIP_Response_Trying
Similar to ts_SIP_Response_Ringing. We also have the counterpart tr_* for both Trying and Ringing. This is needed in a follow-up patch.
Change-Id: I05d8be9ce8860c610c509670392e14f1096fdddb --- M library/SIP_Templates.ttcn 1 file changed, 28 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-ttcn3-hacks refs/changes/94/36794/1
diff --git a/library/SIP_Templates.ttcn b/library/SIP_Templates.ttcn index c82d36d..9b3d188 100644 --- a/library/SIP_Templates.ttcn +++ b/library/SIP_Templates.ttcn @@ -806,7 +806,22 @@ messageBody := body, payload := omit } - +/* 100 Trying */ +template (value) PDU_SIP_Response +ts_SIP_Response_Trying( + template (value) CallidString call_id, + template (value) SipAddr from_addr, + template (value) SipAddr to_addr, + Via via, + integer seq_nr, + charstring method := "INVITE", + template (omit) charstring body := omit) := { + statusLine := ts_SIP_StatusLine(100, "Trying"), + msgHeader := ts_SIP_msgh_std(call_id, from_addr, to_addr, omit, method, seq_nr, + via, f_ContentTypeOrOmit(ts_CT_SDP, body)), + messageBody := body, + payload := omit +} /* 180 Ringing */ template (value) PDU_SIP_Response ts_SIP_Response_Ringing(