]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip/pjsip_options: Do not 404 an OPTIONS request not sent to an endpoint
authorMatthew Jordan <mjordan@digium.com>
Mon, 6 Oct 2014 00:59:43 +0000 (00:59 +0000)
committerMatthew Jordan <mjordan@digium.com>
Mon, 6 Oct 2014 00:59:43 +0000 (00:59 +0000)
commit4f28ae4f515f6a3bdabb666fc17b1246f784ba08
treefabe257fc22889025be1e1bbc5811d8b98b9e346
parent57233a97e8d15ceb7e5d2d10cbf6ee2bc34368c4
res_pjsip/pjsip_options: Do not 404 an OPTIONS request not sent to an endpoint

An OPTIONS request that is sent to Asterisk but not to a specific endpoint is
currently sent a 404 in response. This is because, not surprisingly, an empty
extension is never going to be found in the dialplan.

This patch makes it so that we only attempt to look up the endpoint in the
dialplan if it is specified in the OPTIONS request URI.

#SIPit31

ASTERISK-24370 #close
Reported by: Matt Jordan
........

Merged revisions 424624 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/13@424625 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_pjsip/pjsip_options.c