Skip to content
Snippets Groups Projects
Commit c9f471ac authored by Tilghman Lesher's avatar Tilghman Lesher
Browse files

Merged revisions 160480 via svnmerge from

https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r160480 | tilghman | 2008-12-03 08:09:35 -0600 (Wed, 03 Dec 2008) | 7 lines
  
  Jon Bonilla (Manwe) pointed out on the -dev list:
  "I guess that having only ip-phones in mind is not a good approach. Since it is
  possible to have a sip proxy connected to asterisk we could receive a 407
  (unauthorized) or 483 (too many hops) as response and dialog ending would not be
  a good behavior."
  So modified.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@160481 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent bfe0c6c7
No related branches found
No related tags found
No related merge requests found
...@@ -16802,13 +16802,12 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_ ...@@ -16802,13 +16802,12 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
   
/* RFC 3261 Section 15 specifies that if we receive a 408 or 481 /* RFC 3261 Section 15 specifies that if we receive a 408 or 481
* in response to a BYE, then we should end the current dialog * in response to a BYE, then we should end the current dialog
* and session. There is no mention in the spec of other 4XX responses, * and session. It is known that at least one phone manufacturer
* but it is known that at least one phone manufacturer potentially * potentially will send a 404 in response to a BYE, so we'll be
* will send a 404 in response to a BYE, so we'll be liberal in what * liberal in what we accept and end the dialog and session if we
* we accept and end the dialog and session if we receive any 4XX * receive any of those responses to a BYE.
* response to a BYE.
*/ */
if (resp >= 400 && resp < 500 && sipmethod == SIP_BYE) { if ((resp == 404 || resp == 408 || resp == 481) && sipmethod == SIP_BYE) {
pvt_set_needdestroy(p, "received 4XX response to a BYE"); pvt_set_needdestroy(p, "received 4XX response to a BYE");
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment