From 5ef2ef8a1d858189412ef41c906654eeb875a5eb Mon Sep 17 00:00:00 2001 From: Jim Dixon <telesistant@hotmail.com> Date: Sun, 30 May 2004 20:03:39 +0000 Subject: [PATCH] Fixed annoying SIP 'NOTIFY' messages printed on console every n seconds from some SIP peers. Also fixed problem where 'INFO' was not being responded to if in 'ignore' state. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3110 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_sip.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/channels/chan_sip.c b/channels/chan_sip.c index bb69dc48a1..3c0dc2b56d 100755 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -6695,7 +6695,14 @@ static int handle_request(struct sip_pvt *p, struct sip_request *req, struct soc if (sip_debug_test_pvt(p)) ast_verbose("Receiving DTMF!\n"); receive_info(p, req); + } else { /* if ignoring, transmit response */ + transmit_response(p, "200 OK", req); } + } else if (!strcasecmp(cmd, "NOTIFY")) { + /* XXX we get NOTIFY's from some servers. WHY?? Maybe we should + look into this someday XXX */ + transmit_response(p, "200 OK", req); + if (!p->lastinvite) p->needdestroy = 1; } else if (!strcasecmp(cmd, "REGISTER")) { /* Use this as the basis */ if (sip_debug_test_pvt(p)) -- GitLab