Adding some generic handling of error codes sent to us in replys to requests.
authorOlle Johansson <oej@edvina.net>
Wed, 27 May 2009 20:14:00 +0000 (20:14 +0000)
committerOlle Johansson <oej@edvina.net>
Wed, 27 May 2009 20:14:00 +0000 (20:14 +0000)
commitb6d95bef99d9b0972ae88fabeb6b012c580433c3
treece7f1c76b358b115d3cb7ef2ca782350b7dc8e3e
parent6a527ecc3d2a410a0ad9e95939e27b0ada791d55
Adding some generic handling of error codes sent to us in replys to requests.

Previously they always set hangupcause 0, which is generally wrong. With this
change, we're setting some generic hangup causes. For 5xx errors, which indicate
some sort of problem with the remote server, we're now setting CONGESTION.

EDVX002

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@197266 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c