[asterisk-commits] oej: branch oej/teapot-1.8 r402887 - in /team/oej/teapot-1.8: channels/ patches/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Nov 19 05:14:57 CST 2013
Author: oej
Date: Tue Nov 19 05:14:51 2013
New Revision: 402887
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=402887
Log:
Adding handling of incoming 414.
Added:
team/oej/teapot-1.8/patches/414-incoming.diff (with props)
Modified:
team/oej/teapot-1.8/channels/chan_sip.c
Modified: team/oej/teapot-1.8/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/oej/teapot-1.8/channels/chan_sip.c?view=diff&rev=402887&r1=402886&r2=402887
==============================================================================
--- team/oej/teapot-1.8/channels/chan_sip.c (original)
+++ team/oej/teapot-1.8/channels/chan_sip.c Tue Nov 19 05:14:51 2013
@@ -21221,6 +21221,14 @@
sip_queue_hangup_cause(p, hangup_sip2cause(resp));
}
break;
+ case 400: /* Bad request */
+ case 414: /* Bad request URI */
+ case 493: /* Undecipherable */
+ stop_media_flows(p); /* Immediately stop RTP, VRTP and UDPTL as applicable */
+ if (p->owner && !req->ignore) {
+ sip_queue_hangup_cause(p, hangup_sip2cause(resp));
+ }
+ break;
case 481: /* Call leg does not exist */
/* Could be REFER caused INVITE with replaces */
@@ -22179,6 +22187,15 @@
handle_response_invite(p, resp, rest, req, seqno);
else
ast_log(LOG_WARNING, "Host '%s' does not implement '%s'\n", ast_sockaddr_stringify(&p->sa), msg);
+ break;
+ case 400: /* Bad Request */
+ case 414: /* Request URI too long */
+ case 493: /* Undecipherable */
+ if (sipmethod == SIP_INVITE) {
+ handle_response_invite(p, resp, rest, req, seqno);
+ }Â else {
+ ast_log(LOG_WARNING, "Bad request to '%s': '%s'\n", ast_sockaddr_stringify(&p->sa), msg);
+ }
break;
default:
if ((resp >= 300) && (resp < 700)) {
Added: team/oej/teapot-1.8/patches/414-incoming.diff
URL: http://svnview.digium.com/svn/asterisk/team/oej/teapot-1.8/patches/414-incoming.diff?view=auto&rev=402887
==============================================================================
--- team/oej/teapot-1.8/patches/414-incoming.diff (added)
+++ team/oej/teapot-1.8/patches/414-incoming.diff Tue Nov 19 05:14:51 2013
@@ -1,0 +1,35 @@
+Index: channels/chan_sip.c
+===================================================================
+--- channels/chan_sip.c (revision 402886)
++++ channels/chan_sip.c (working copy)
+@@ -21119,6 +21119,14 @@
+ sip_queue_hangup_cause(p, hangup_sip2cause(resp));
+ }
+ break;
++ case 400: /* Bad request */
++ case 414: /* Bad request URI */
++ case 493: /* Undecipherable */
++ stop_media_flows(p); /* Immediately stop RTP, VRTP and UDPTL as applicable */
++ if (p->owner && !req->ignore) {
++ sip_queue_hangup_cause(p, hangup_sip2cause(resp));
++ }
++ break;
+
+ case 481: /* Call leg does not exist */
+ /* Could be REFER caused INVITE with replaces */
+@@ -22010,6 +22018,15 @@
+ else
+ ast_log(LOG_WARNING, "Host '%s' does not implement '%s'\n", ast_sockaddr_stringify(&p->sa), msg);
+ break;
++ case 400: /* Bad Request */
++ case 414: /* Request URI too long */
++ case 493: /* Undecipherable */
++ if (sipmethod == SIP_INVITE) {
++ handle_response_invite(p, resp, rest, req, seqno);
++ }Â else {
++ ast_log(LOG_WARNING, "Bad request to '%s': '%s'\n", ast_sockaddr_stringify(&p->sa), msg);
++ }
++ break;
+ default:
+ if ((resp >= 300) && (resp < 700)) {
+ /* Fatal response */
Propchange: team/oej/teapot-1.8/patches/414-incoming.diff
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: team/oej/teapot-1.8/patches/414-incoming.diff
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Propchange: team/oej/teapot-1.8/patches/414-incoming.diff
------------------------------------------------------------------------------
svn:mime-type = text/plain
More information about the asterisk-commits
mailing list