Sure thing.
The main issue you were having is access to the information you want in the part of the message body where you want it.
Assuming you can get that and that it's formatted in a way that the transformation functions in Kamailio can operate on it, i.e. split by delimiter versus regex extraction, you can pass around anything any way you like. :-)