diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-08 15:31:58 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-05-08 15:31:58 +0000 |
commit | 030439550d032df3c80ec5d6a1eca060c3f916fb (patch) | |
tree | e878985db1fa3c54763967c50e2f9a612213433f /channels | |
parent | c4a6d12d562074ed223102f0ff0a1dcd4a475a24 (diff) |
Issue #7103 (mikma)
- Don't send reply on ACK
- use "require" instead of "required" which is an unknown header
(Partly imported from 1.2)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@25612 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d67dd6d7f..8bd570455 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -5237,7 +5237,7 @@ static int transmit_invite(struct sip_pvt *p, int sipmethod, int sdp, int init) other end knows and replace the current call with this new call */ if (p->options && p->options->replaces && !ast_strlen_zero(p->options->replaces)) { add_header(&req, "Replaces", p->options->replaces); - add_header(&req, "Required", "replaces"); + add_header(&req, "Require", "replaces"); } if (p->options && !ast_strlen_zero(p->options->distinctive_ring)) { @@ -10987,7 +10987,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int } /* Find out what they require */ - required = get_header(req, "Required"); + required = get_header(req, "Require"); if (!ast_strlen_zero(required)) { required_profile = parse_sip_options(NULL, required); if (required_profile) { /* They require something */ @@ -11809,7 +11809,7 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc if (!ast_test_flag(req, SIP_PKT_IGNORE) && req->method == SIP_INVITE) { transmit_response_reliable(p, "481 Call/Transaction Does Not Exist", req); /* Will cease to exist after ACK */ - } else { + } else if (req->method != SIP_ACK) { transmit_response(p, "481 Call/Transaction Does Not Exist", req); ast_set_flag(&p->flags[0], SIP_NEEDDESTROY); } |