diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-18 18:10:46 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-05-18 18:10:46 +0000 |
commit | 201909b9bb26f9900ddcfc8393281c69daee8b58 (patch) | |
tree | 3dc7d702d399e8b86ff1a1b8824f421bc83573a1 /channels/chan_sip.c | |
parent | cc2b66640d57ff9ee283ab4739e254e51b5ab3a4 (diff) |
Not getting an ACK to a 200 OK in the initial invite is critical to the call.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@65122 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_sip.c')
-rw-r--r-- | channels/chan_sip.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index a6104e4da..663f601e9 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -10593,6 +10593,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int char *supported; char *required; unsigned int required_profile = 0; + int reinvite = 0; /* Find out what they support */ if (!p->sipoptions) { @@ -10733,6 +10734,7 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int } else { if (option_debug > 1 && sipdebug) ast_log(LOG_DEBUG, "Got a SIP re-invite for call %s\n", p->callid); + reinvite = 1; c = p->owner; } if (!ignore && p) @@ -10809,7 +10811,8 @@ static int handle_request_invite(struct sip_pvt *p, struct sip_request *req, int transmit_response(p, "180 Ringing", req); break; case AST_STATE_UP: - transmit_response_with_sdp(p, "200 OK", req, 1); + /* If this is not a re-invite or something to ignore - it's critical */ + transmit_response_with_sdp(p, "200 OK", req, (ignore || reinvite) ? 1 : 2); break; default: ast_log(LOG_WARNING, "Don't know how to handle INVITE in state %d\n", c->_state); |