Decode Hex URI?

Is it possible to decode a hex encoded URI and pull out the phone number? I’m trying to add a PAI header from a User-to-User field, but it’s encoded in hex.

Hex:
04363936393737323532323638393230323B4F3B30313B31393132323238383238303739

Decoded:
6969772522689202;O;01;1912228828079

I’d need asterisk to decode the hex string and pull off the bit after the last ;