In this work, we systematically study two phases, called Andreev π-phase and orbital-phase, and their influence on the Josephson effect. When the system is time-reversal invariant and centrosymmetric, these two phases only appear in the odd-parity pairings. The Andreev π-phase has nothing to do with the specific form of the odd-parity pairings and means an intrinsic π-phase between the spin-triplet Cooper pairs entering and leaving CTSCs in the Andreev reflections. The orbitalphase corresponds to the phase difference between the spin-triplet Cooper pairs with opposite spin polarization and depends on the specific form of the odd-parity gap functions. When the normal region of the Josephson junction contacts the same side of the CTSCs with some specific odd-parity parings, the competition between the two phases can lead to the Josephson π-junction. Note that this junction is different from that of the conventional Josephson junction (JJ) and is dubbed a U-shaped junction according to its geometry. Meanwhile, in a conventional JJ, the interplay of these two phases causes their impact on the CPR to be completely canceled out. Therefore no matter what kind of pairing symmetries the CTSC has, it will lead to Josephson 0-junction in this case. We obtain our results based on the model of the MxBi2Se3 family where M may be Cu, Sr, or Nb. Therefore, we propose to detect the pairing symmetry of MxBi2Se3 through a superconducting quantum interference device containing a U-shaped Josephson junction.