summaryrefslogtreecommitdiff
path: root/pjsip/include
diff options
context:
space:
mode:
authorLiong Sauw Ming <ming@teluu.com>2012-07-19 08:54:35 +0000
committerLiong Sauw Ming <ming@teluu.com>2012-07-19 08:54:35 +0000
commit04731aa133494c84f6939205b4f1b991fc2503f9 (patch)
treef34bada1ee140c603667457927f538794d7e2ad7 /pjsip/include
parent82d8218dbbf416a7beb63873733522d444197fae (diff)
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
Diffstat (limited to 'pjsip/include')
-rw-r--r--pjsip/include/pjsua-lib/pjsua.h7
1 files changed, 4 insertions, 3 deletions
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.
*