]> git.ipfire.org Git - thirdparty/asterisk.git/commit
correct handling of get_destination return values
authorDavid Vossel <dvossel@digium.com>
Thu, 1 Jul 2010 16:40:17 +0000 (16:40 +0000)
committerDavid Vossel <dvossel@digium.com>
Thu, 1 Jul 2010 16:40:17 +0000 (16:40 +0000)
commit243d87038eba946357cbb5732656e2e46ec40b77
tree40333dfdabffa545bf218f4d3acc4f694ea727b1
parentbd9ff2829eac49f0d6b0b312494075e98e5c5e21
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
channels/chan_sip.c
channels/sip/include/sip.h