From: Olle Johansson Date: Wed, 15 Oct 2008 07:45:09 +0000 (+0000) Subject: Fixing sytax errors ;-) X-Git-Tag: 1.6.2.0-beta1~1110 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7fa8f6542543e3a87876d7ecfe258a4c20c03346;p=thirdparty%2Fasterisk.git Fixing sytax errors ;-) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@149342 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a5ebc1da65..224af5ec88 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -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; }