From 150a9e6ca4075205ddbb41a1ba1b989db4739018 Mon Sep 17 00:00:00 2001 From: paulc Date: Tue, 15 Feb 2011 16:30:19 +0000 Subject: [PATCH] Accept subscription requests that have no Accept: header, assume NOTIFY body will be accepted anyway. git-svn-id: http://yate.null.ro/svn/yate/trunk@4112 acf43c95-373e-0410-b603-e72c3f656dc1 --- share/scripts/sipfeatures.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/scripts/sipfeatures.php b/share/scripts/sipfeatures.php index e4976eda..85d764de 100755 --- a/share/scripts/sipfeatures.php +++ b/share/scripts/sipfeatures.php @@ -288,12 +288,12 @@ function onSubscribe($ev) global $chans; $event = $ev->GetValue("sip_event"); $accept = $ev->GetValue("sip_accept"); - if (($event == "message-summary") && ($accept == "application/simple-message-summary")) { + if (($event == "message-summary") && ($accept == "application/simple-message-summary" || $accept == "")) { $s = new MailSub($ev); $s->AddTo($users); Yate::Debug("New mail subscription for " . $s->match); } - else if (($event == "dialog") && ($accept == "application/dialog-info+xml")) { + else if (($event == "dialog") && ($accept == "application/dialog-info+xml" || $accept == "")) { $s = new DialogSub($ev); $s->AddTo($chans); Yate::Debug("New dialog subscription for " . $s->match);