nat: Make rewrite work on string, read to a string first, copy to msgb

The MGCP protocol parsing is adding '\0' to make sure we do not
parse beyond where we should parse. This does not mix with strtok
or similiar routines.
For now we will read the msg into a global array first, then copy
it to the msgb for mgcp protocol handling and if we are required
to forward it to the MGCP we have a untouched copy we will modify
into our own msgb.
3 files changed
tree: 1e40c0f5d85381b558789a498e03a4dc0e5e7f93
  1. hlrsync/
  2. linux-kernel/
  3. openbsc/
  4. wireshark/