aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-03 14:48:53 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-03 14:48:53 +0000
commit0b489c6cb3c38c43e709b233ad26fdf0d49a71d9 (patch)
tree0cdfbd58d4283be449a4fb174411d2c8330cfabc /channels
parentf87c6e2e5524ac2a0cda88802b4f1f475af80aa1 (diff)
Merged revisions 119927 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r119927 | file | 2008-06-03 11:47:54 -0300 (Tue, 03 Jun 2008) | 10 lines Merged revisions 119926 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r119926 | file | 2008-06-03 11:46:24 -0300 (Tue, 03 Jun 2008) | 2 lines Treat ECONNREFUSED as an error that will stop further retransmissions. (issue #AST-58, patch from Switchvox) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@119928 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index b5bf007d3..d9e2a1022 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -2541,11 +2541,12 @@ static int __sip_xmit(struct sip_pvt *p, char *data, int len)
if (res == -1) {
switch (errno) {
- case EBADF: /* Bad file descriptor - seems like this is generated when the host exist, but doesn't accept the UDP packet */
- case EHOSTUNREACH: /* Host can't be reached */
- case ENETDOWN: /* Interface down */
- case ENETUNREACH: /* Network failure */
- res = XMIT_ERROR; /* Don't bother with trying to transmit again */
+ case EBADF: /* Bad file descriptor - seems like this is generated when the host exist, but doesn't accept the UDP packet */
+ case EHOSTUNREACH: /* Host can't be reached */
+ case ENETDOWN: /* Inteface down */
+ case ENETUNREACH: /* Network failure */
+ case ECONNREFUSED: /* ICMP port unreachable */
+ res = XMIT_ERROR; /* Don't bother with trying to transmit again */
}
}
if (res != len)