summaryrefslogtreecommitdiff
path: root/pjsip/include
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2007-06-11 18:22:54 +0000
committerBenny Prijono <bennylp@teluu.com>2007-06-11 18:22:54 +0000
commitaa434b698389bad9d27904c1dab3e96f91f259a8 (patch)
tree7689535b9bad3e086c7fd65b68b912335f84e30a /pjsip/include
parenta299aacc7112e537d37dade67dbba42009725991 (diff)
Ticket #334: Added on_pager_status2() callback to receive the full SIP message of IM delivery status (thanks Paul Levin)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@1363 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/include')
-rw-r--r--pjsip/include/pjsua-lib/pjsua.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/pjsip/include/pjsua-lib/pjsua.h b/pjsip/include/pjsua-lib/pjsua.h
index 8c1d5b4a..60965be9 100644
--- a/pjsip/include/pjsua-lib/pjsua.h
+++ b/pjsip/include/pjsua-lib/pjsua.h
@@ -798,7 +798,8 @@ typedef struct pjsua_callback
/**
* Notify application about the delivery status of outgoing pager
- * request.
+ * request. See also on_pager_status2() callback for the version with
+ * \a pjsip_rx_data in the argument list.
*
* @param call_id Containts the ID of the call where the IM was
* sent, or PJSUA_INVALID_ID if the IM was sent
@@ -831,6 +832,31 @@ typedef struct pjsua_callback
const pj_str_t *reason);
/**
+ * Notify application about the delivery status of outgoing pager
+ * request.
+ *
+ * @param call_id Containts the ID of the call where the IM was
+ * sent, or PJSUA_INVALID_ID if the IM was sent
+ * outside call context.
+ * @param to Destination URI.
+ * @param body Message body.
+ * @param user_data Arbitrary data that was specified when sending
+ * IM message.
+ * @param status Delivery status.
+ * @param reason Delivery status reason.
+ * @param rdata The incoming MESSAGE response, or NULL if the
+ * message transaction fails because of time out
+ * or transport error.
+ */
+ void (*on_pager_status2)(pjsua_call_id call_id,
+ const pj_str_t *to,
+ const pj_str_t *body,
+ void *user_data,
+ pjsip_status_code status,
+ const pj_str_t *reason,
+ pjsip_rx_data *rdata);
+
+ /**
* Notify application about typing indication.
*
* @param call_id Containts the ID of the call where the IM was