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
This commit is contained in:
paulc 2011-02-15 16:30:19 +00:00
parent 7de78fed32
commit 150a9e6ca4
1 changed files with 2 additions and 2 deletions

View File

@ -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);