diff options
author | Joshua Colp <jcolp@digium.com> | 2007-03-02 17:09:18 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2007-03-02 17:09:18 +0000 |
commit | e23433e50ed8f23af594a756b3bbfb08ae865a13 (patch) | |
tree | fa08353409954995437ec26539c3ea66ec60781e /channels | |
parent | 1220306aab9556629cd44c3993944789b6a271f3 (diff) |
Merged revisions 57477 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
................
r57477 | file | 2007-03-02 12:06:52 -0500 (Fri, 02 Mar 2007) | 10 lines
Merged revisions 57475 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2
........
r57475 | file | 2007-03-02 12:02:46 -0500 (Fri, 02 Mar 2007) | 2 lines
If a SIP message comes in and goes to a method handler that requires additional values that may not be present then send back an error.
........
................
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@57478 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_sip.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c index d477a172b..ca52b465d 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -15324,6 +15324,12 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc } } + if (!e && (p->method == SIP_INVITE || p->method == SIP_SUBSCRIBE || p->method == SIP_REGISTER || p->method == SIP_NOTIFY)) { + transmit_response(p, "503 Server error", req); + sip_scheddestroy(p, DEFAULT_TRANS_TIMEOUT); + return -1; + } + /* Handle various incoming SIP methods in requests */ switch (p->method) { case SIP_OPTIONS: |