From 04731aa133494c84f6939205b4f1b991fc2503f9 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Thu, 19 Jul 2012 08:54:35 +0000 Subject: Re #1559: Add doc about on_incoming_subscribe() to call pjsua_pres_notify() immediately after setting the code to 202 git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4212 74dad513-b988-da41-8d7b-12977e46ad98 --- pjsip/include/pjsua-lib/pjsua.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'pjsip/include/pjsua-lib/pjsua.h') diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h index d6b74a53..64f1ce86 100644 --- a/pjsip/include/pjsua-lib/pjsua.h +++ b/pjsip/include/pjsua-lib/pjsua.h @@ -906,9 +906,10 @@ typedef struct pjsua_callback * callback. * - it may delay the processing of the request, for example to request * user permission whether to accept or reject the request. In this - * case, the application MUST set the \a code argument to 202, and - * later calls #pjsua_pres_notify() to accept or reject the - * subscription request. + * case, the application MUST set the \a code argument to 202, then + * IMMEDIATELY calls #pjsua_pres_notify() with state + * PJSIP_EVSUB_STATE_PENDING and later calls #pjsua_pres_notify() + * again to accept or reject the subscription request. * * Any \a code other than 200 and 202 will be treated as 200. * -- cgit v1.2.3