diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-05-21 17:04:35 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-05-21 17:13:01 +0200 |
commit | 72793ec0a9e2f79b5caf2a4af37f47cc127db55a (patch) | |
tree | bd9e041cbcbb8d51d94072bb216dbfc65f2f9e32 /src | |
parent | 0ff1c8c548f75988e2b910e4442fd82e73ab31df (diff) |
mgcp: Initialize the tone to CHAR_MAX as this might not be a request
The RQNT message might not contain a 'S:' line with the actual tone
to play. Instead of calling the callback with the 0 as tone just leave
early.
Example:
X: 6B9519B88F0
R: D/[0-9#*](N), G/ft, fxr/t38
Merged from the OpenBSC development tree
Diffstat (limited to 'src')
-rw-r--r-- | src/mgcp/mgcp_protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mgcp/mgcp_protocol.c b/src/mgcp/mgcp_protocol.c index f847caf..2a4a464 100644 --- a/src/mgcp/mgcp_protocol.c +++ b/src/mgcp/mgcp_protocol.c @@ -904,7 +904,7 @@ static struct msgb *handle_noti_req(struct mgcp_parse_data *p) { int res = 0; char *line; - char tone = 0; + char tone = CHAR_MAX; if (p->found != 0) return create_err_response(NULL, 400, "RQNT", p->trans); |