diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-08-11 16:11:54 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-08-11 16:11:54 +0000 |
commit | 01973fe10eb521d768d997b50fb4f9bf8e6c353d (patch) | |
tree | a6bca597d6480ec99b02872588aed71402f43eb9 | |
parent | fec0763fb39ebfdf79d0286d829e0c5305bee36a (diff) |
Fixing bad merge
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.6.0.13@211713 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r-- | .version | 2 | ||||
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | channels/chan_sip.c | 23 |
3 files changed, 9 insertions, 24 deletions
@@ -1 +1 @@ -1.6.0.12 +1.6.0.13 @@ -1,4 +1,10 @@ -2009-08-09 Tilghman Lesher <tlesher@digium.com> +2009-08-11 Tilghman Lesher <tlesher@digium.com> + + * Asterisk 1.6.0.13 released + + * channels/chan_iax2.c: Bad merge from 1.6.0 branch + +2009-08-10 Tilghman Lesher <tlesher@digium.com> * Asterisk 1.6.0.12 released diff --git a/channels/chan_sip.c b/channels/chan_sip.c index c037e653f..6dfb94d1e 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -18666,7 +18666,6 @@ static int handle_incoming(struct sip_pvt *p, struct sip_request *req, struct so * possibly process the request. In all cases, there function * terminates at the end of this block */ -<<<<<<< .working int ret = 0; if (p->ocseq < seqno && seqno != p->lastnoninvite) { @@ -18683,7 +18682,7 @@ static int handle_incoming(struct sip_pvt *p, struct sip_request *req, struct so append_history(p, "Ignore", "Ignoring this retransmit\n"); } else if (e) { e = ast_skip_blanks(e); - if (sscanf(e, "%d %n", &respid, &len) != 1) { + if (sscanf(e, "%30d %n", &respid, &len) != 1) { ast_log(LOG_WARNING, "Invalid response: '%s'\n", e); /* XXX maybe should do ret = -1; */ } else if (respid <= 0) { @@ -18694,26 +18693,6 @@ static int handle_incoming(struct sip_pvt *p, struct sip_request *req, struct so if ((respid == 200) || ((respid >= 300) && (respid <= 399))) extract_uri(p, req); handle_response(p, respid, e + len, req, seqno); -======= - if (ast_strlen_zero(e)) { - return 0; - } - if (sscanf(e, "%30d %n", &respid, &len) != 1) { - ast_log(LOG_WARNING, "Invalid response: '%s'\n", e); - return 0; - } - if (respid <= 0) { - ast_log(LOG_WARNING, "Invalid SIP response code: '%d'\n", respid); - return 0; - } - if (p->ocseq && (p->ocseq < seqno)) { - if (option_debug) - ast_log(LOG_DEBUG, "Ignoring out of order response %d (expecting %d)\n", seqno, p->ocseq); - return -1; - } else { - if ((respid == 200) || ((respid >= 300) && (respid <= 399))) { - extract_uri(p, req); ->>>>>>> .merge-right.r211551 } } return 0; |