<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" 

<section id="presence_b2b.functions"><title>Functions</title>
		<para>Handles NOTIFY request.</para>
		<para>The module tries to find the subscription to which the NOTIFY belongs
		to (it tries both - confirmed and unconfirmed subscriptions because
		NOTIFY may arrive before 2xx response on SUBSCRIBE request). If no such
		subscription exists, the function returns -1, otherwise it processes the
		request (generates internal notification, ...) and returns 1.</para>