This same function is now duplicated between the `mediafonemc`, `safaricom`, `cellulant` and `mediaedgegsm` transports. Perhaps we need to refactor it somewhere? Doesn't need to be part of this PR but I would suggest we cut a ticket for it.