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
This commit is contained in:
Pau Espin 2024-05-13 16:38:38 +02:00
parent cb3a15b6d0
commit 1b5f7ba3ac
1 changed files with 16 additions and 1 deletions

View File

@ -792,7 +792,22 @@ ts_SIP_Response(template (value) CallidString call_id,
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(