Commit 703848fb authored by jehan's avatar jehan

add testing api to allow // transaction in a dialog

parent 77510177
......@@ -116,6 +116,10 @@ BELLESIP_EXPORT belle_sip_transaction_t* belle_sip_dialog_get_last_transaction(c
BELLESIP_EXPORT int belle_sip_dialog_request_pending(const belle_sip_dialog_t *dialog);
/*for debugging purpose only, allow to disable checking for pending transaction*/
BELLESIP_EXPORT int belle_sip_dialog_pending_trans_checking_enabled( const belle_sip_dialog_t *dialog) ;
BELLESIP_EXPORT int belle_sip_dialog_enable_pending_trans_checking(belle_sip_dialog_t *dialog, int value) ;
BELLE_SIP_END_DECLS
#endif
......
......@@ -925,3 +925,12 @@ void belle_sip_dialog_update_request(belle_sip_dialog_t *dialog, belle_sip_reque
belle_sip_request_set_uri(req,belle_sip_header_address_get_uri(dialog->remote_target));
belle_sip_header_cseq_set_seq_number(cseq,dialog->local_cseq);
}
int belle_sip_dialog_pending_trans_checking_enabled( const belle_sip_dialog_t *dialog) {
return dialog->pending_trans_checking_enabled;
}
int belle_sip_dialog_enable_pending_trans_checking(belle_sip_dialog_t *dialog, int value) {
dialog->pending_trans_checking_enabled = value;
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment