An integrable discretization of the characteristic equations associated with a gas dynamics system