Skip to content
Snippets Groups Projects
Commit 7fa8f654 authored by Olle Johansson's avatar Olle Johansson
Browse files

Fixing sytax errors ;-)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@149342 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent dc36a357
Branches
Tags
No related merge requests found
......@@ -6886,28 +6886,28 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action
o = get_sdp(req, "o");
if (ast_strlen_zero(o)) {
ast_log(LOG_WARNING, "SDP sytax error. SDP without an o= line\n");
ast_log(LOG_WARNING, "SDP syntax error. SDP without an o= line\n");
return -1;
}
 
o_copy = ast_strdupa(o);
token = strsep(&o_copy, " "); /* Skip username */
if (!o_copy) {
ast_log(LOG_WARNING, "SDP sytax error in o= line username\n");
ast_log(LOG_WARNING, "SDP syntax error in o= line username\n");
return -1;
}
token = strsep(&o_copy, " "); /* Skip session-id */
if (!o_copy) {
ast_log(LOG_WARNING, "SDP sytax error in o= line session-id\n");
ast_log(LOG_WARNING, "SDP syntax error in o= line session-id\n");
return -1;
}
token = strsep(&o_copy, " "); /* Version */
if (!o_copy) {
ast_log(LOG_WARNING, "SDP sytax error in o= line\n");
ast_log(LOG_WARNING, "SDP syntax error in o= line\n");
return -1;
}
if (!sscanf(token, "%d", &rua_version)) {
ast_log(LOG_WARNING, "SDP sytax error in o= line version\n");
ast_log(LOG_WARNING, "SDP syntax error in o= line version\n");
return -1;
}
 
......@@ -6916,7 +6916,7 @@ static int process_sdp(struct sip_pvt *p, struct sip_request *req, int t38action
p->session_modify = TRUE;
} else if (p->sessionversion_remote == rua_version) {
p->session_modify = FALSE;
ast_debug(2, "SDP version number same as previous SDP\n");
ast_debug(2, "SDP version number same as previous SDP. Not parsing this SDP.\n");
return 0;
}
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment