return;
}
+ trh = mqi_begin_transaction();
+
mrp_debug("entering telephony watcher");
switch (event) {
MQI_OPERATOR(end)
};
- trh = mqi_begin_transaction();
n = MQI_DELETE(tel_calls, where);
- mqi_commit_transaction(trh);
mrp_debug("%d call on service/modem %s removed from Murphy DB",
service, n);
break;
call_ptr_list[0] = call;
- trh = mqi_begin_transaction();
n = MQI_INSERT_INTO(tel_calls, tel_calls_columns, call_ptr_list);
- mqi_commit_transaction(trh);
mrp_debug("%d call inserted into Murphy DB", n);
break;
MQI_OPERATOR(end)
};
- trh = mqi_begin_transaction();
MQI_DELETE(tel_calls, where);
- mqi_commit_transaction(trh);
mrp_debug("call %s removed from Murphy DB", call->call_id);
break;
call_ptr_list[0] = call;
- trh = mqi_begin_transaction();
MQI_REPLACE(tel_calls, tel_calls_columns, call_ptr_list);
- mqi_commit_transaction(trh);
mrp_debug("call changed in Murphy DB");
break;
}
check_resources();
+
+ mqi_commit_transaction(trh);
}