Browse Source

KAZOO-3320 reject subscribe requests if there is nothing to subscribe to (or from)

3.19 3.19.1
karl anderson 11 years ago
parent
commit
3468c72a04
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      kamailio/presence-role.cfg

+ 14
- 0
kamailio/presence-role.cfg View File

@ -48,6 +48,20 @@ route[HANDLE_SUBSCRIBE]
exit; exit;
} }
if ($tU == $null) {
xlog("L_INFO", "$ci|stop|ignoring subscribe with empty TO username from a $ua");
sl_send_reply(400, "Missing TO username");
t_release();
exit;
}
if ($fU == $null) {
xlog("L_INFO", "$ci|stop|ignoring subscribe with empty FROM username from a $ua");
sl_send_reply(400, "Missing FROM username");
t_release();
exit;
}
handle_subscribe(); handle_subscribe();
##RabbitMQ ##RabbitMQ


Loading…
Cancel
Save