diff options
author | Joshua Colp <jcolp@digium.com> | 2009-12-02 16:40:14 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2009-12-02 16:40:14 +0000 |
commit | 6a7f37e07d92d445863b5b942a6a26f00bfaee6c (patch) | |
tree | 4c0926de50d7f9235c9d2f6abdcfa326911f6723 /channels/chan_sip.c | |
parent | ec98fba3ad35c328111ea78a3fb84dca5e3ee4c6 (diff) |
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: https://origsvn.digium.com/svn/asterisk/trunk@232345 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 410bee77e..0670c5603 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -18735,6 +18735,7 @@ static void handle_response_invite(struct sip_pvt *p, int resp, const char *rest 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) { @@ -19427,6 +19428,7 @@ static void handle_response(struct sip_pvt *p, int resp, const char *rest, struc 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); @@ -19642,6 +19644,7 @@ static void handle_response(struct sip_pvt *p, int resp, const char *rest, struc 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 */ |