aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-02 16:43:38 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2009-12-02 16:43:38 +0000
commit52a9814389a0ce62e53e05fa32db73a238ef0d60 (patch)
treeef16ae56157d6d8e490e37a435ba1985f08ad9a2
parentf90daf6bbf09e75efb16ca102c46f5dd53e980e4 (diff)
Merged revisions 232345 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r232345 | file | 2009-12-02 12:40:14 -0400 (Wed, 02 Dec 2009) | 7 lines Add support for handling the 415 Unsupported media type response like we do for a 488 Not acceptable here response. (closes issue #16186) Reported by: atis Patches: sip_t38_response_415.patch uploaded by atis (license 242) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@232348 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_sip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 2e0062653..7283eba94 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -17792,6 +17792,7 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru
sip_alreadygone(p);
}
break;
+ case 415: /* Unsupported media type */
case 488: /* Not acceptable here */
xmitres = transmit_request(p, SIP_ACK, seqno, XMIT_UNRELIABLE, FALSE);
if (p->udptl && p->t38.state == T38_LOCAL_REINVITE) {
@@ -18430,6 +18431,7 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
if (sipmethod == SIP_INVITE)
handle_response_invite(p, resp, rest, req, seqno);
break;
+ case 415: /* Unsupported media type */
case 488: /* Not acceptable here - codec error */
if (sipmethod == SIP_INVITE)
handle_response_invite(p, resp, rest, req, seqno);
@@ -18635,6 +18637,7 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
if ((resp != 487))
ast_verb(3, "Incoming call: Got SIP response %d \"%s\" back from %s\n", resp, rest, ast_inet_ntoa(p->sa.sin_addr));
switch(resp) {
+ case 415: /* Unsupported media type */
case 488: /* Not acceptable here - codec error */
case 603: /* Decline */
case 500: /* Server error */