Since 9/11 nobody is allowed in the cockpit jumpseat from another airline unless they are in CASS. CASS is US carriers only so no free rides there.
Some airlines the Captains will give you a ride, but it is at their discretion (ask nicely as you can't reciprocate) and you will have to a seat available in the back because you can't ride in the cockpit.