commit | 8d20065c4b11520fe45b4001eaa44612686a5916 | [log] [tgz] |
---|---|---|
author | Holger Hans Peter Freyther <zecke@selfish.org> | Sun Apr 04 18:09:10 2010 +0200 |
committer | Holger Hans Peter Freyther <zecke@selfish.org> | Tue Jun 15 20:24:10 2010 +0800 |
tree | 1e40c0f5d85381b558789a498e03a4dc0e5e7f93 | |
parent | bbb9d398e16b4a5c8d054c1589c04e301be324b1 [diff] |
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.