diff options
author | David Vossel <dvossel@digium.com> | 2010-07-01 16:40:17 +0000 |
---|---|---|
committer | David Vossel <dvossel@digium.com> | 2010-07-01 16:40:17 +0000 |
commit | 243d87038eba946357cbb5732656e2e46ec40b77 (patch) | |
tree | 40333dfdabffa545bf218f4d3acc4f694ea727b1 /res | |
parent | bd9ff2829eac49f0d6b0b312494075e98e5c5e21 (diff) |
correct handling of get_destination return values
A failure when calling the get_destination can mean multiple things. If
the extension is not found, a 404 error is appropriate, but if the URI
scheme is incorrect, a 404 is not approperiate. This patch adds the
get_destination_result enum to differentiate between these and other failure
types. The only logical difference in this patch is that we now send a "416
Unsupported URI scheme" response instead of a "404" when the scheme is not
recognized. This indicates to the initiator of the INVITE to retry the request
with a correct URI.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@273427 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res')
0 files changed, 0 insertions, 0 deletions