|
@@ -142,7 +142,7 @@ int terminate_dialog_on_rx_failure =
|
|
|
1; //this specifies whether a dialog is torn down when a media rx session fails - in some cases you might not want the dialog torn down
|
|
|
int delete_contact_on_rx_failure =
|
|
|
1; //If this is set we delete the contact if the associated signalling bearer is removed
|
|
|
-int suspend_transaction =
|
|
|
+int _ims_qos_suspend_transaction =
|
|
|
1; //If this is set we suspend the transaction and continue later
|
|
|
|
|
|
|
|
@@ -252,7 +252,8 @@ static param_export_t params[] = {{"rx_dest_realm", PARAM_STR, &rx_dest_realm},
|
|
|
{"regex_sdp_ip_prefix_to_maintain_in_fd", PARAM_STR,
|
|
|
®ex_sdp_ip_prefix_to_maintain_in_fd},
|
|
|
{"include_rtcp_fd", INT_PARAM, &include_rtcp_fd},
|
|
|
- {"suspend_transaction", INT_PARAM, &suspend_transaction}, {0, 0, 0}};
|
|
|
+ {"suspend_transaction", INT_PARAM, &_ims_qos_suspend_transaction},
|
|
|
+ {0, 0, 0}};
|
|
|
|
|
|
|
|
|
/** module exports */
|
|
@@ -1237,7 +1238,7 @@ static int w_rx_aar(struct sip_msg *msg, char *route, char *dir, char *c_id,
|
|
|
}
|
|
|
saved_t_data->dlg = dlg;
|
|
|
|
|
|
- if(suspend_transaction) {
|
|
|
+ if(_ims_qos_suspend_transaction) {
|
|
|
LM_DBG("Suspending SIP TM transaction\n");
|
|
|
if(tmb.t_suspend(msg, &saved_t_data->tindex, &saved_t_data->tlabel)
|
|
|
!= 0) {
|
|
@@ -1256,7 +1257,7 @@ static int w_rx_aar(struct sip_msg *msg, char *route, char *dir, char *c_id,
|
|
|
|
|
|
if(!ret) {
|
|
|
LM_ERR("Failed to send AAR\n");
|
|
|
- if(suspend_transaction) {
|
|
|
+ if(_ims_qos_suspend_transaction) {
|
|
|
tmb.t_cancel_suspend(saved_t_data->tindex, saved_t_data->tlabel);
|
|
|
}
|
|
|
goto error;
|
|
@@ -1441,7 +1442,7 @@ static int w_rx_aar_register(
|
|
|
return CSCF_RETURN_ERROR;
|
|
|
}
|
|
|
|
|
|
- if(suspend_transaction) {
|
|
|
+ if(_ims_qos_suspend_transaction) {
|
|
|
LM_DBG("Suspending SIP TM transaction\n");
|
|
|
if(tmb.t_suspend(msg, &saved_t_data->tindex, &saved_t_data->tlabel)
|
|
|
!= 0) {
|
|
@@ -1677,7 +1678,7 @@ static int w_rx_aar_register(
|
|
|
return CSCF_RETURN_BREAK; //on success we break - because rest of cfg file will be executed by async process
|
|
|
} else {
|
|
|
create_return_code(CSCF_RETURN_TRUE);
|
|
|
- if(suspend_transaction) {
|
|
|
+ if(_ims_qos_suspend_transaction) {
|
|
|
tmb.t_cancel_suspend(saved_t_data->tindex, saved_t_data->tlabel);
|
|
|
}
|
|
|
if(saved_t_data) {
|
|
@@ -1690,7 +1691,7 @@ static int w_rx_aar_register(
|
|
|
error:
|
|
|
LM_ERR("Error trying to send AAR\n");
|
|
|
if(!aar_sent) {
|
|
|
- if(suspend_transaction) {
|
|
|
+ if(_ims_qos_suspend_transaction) {
|
|
|
tmb.t_cancel_suspend(saved_t_data->tindex, saved_t_data->tlabel);
|
|
|
}
|
|
|
if(saved_t_data) {
|