Changeset 3339 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c
- Timestamp:
- Oct 12, 2010 12:45:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c
r3190 r3339 1558 1558 } 1559 1559 1560 /* Call callback */ 1560 /* Call callbacks */ 1561 if (pjsua_var.ua_cfg.cb.on_buddy_evsub_state) 1562 (*pjsua_var.ua_cfg.cb.on_buddy_evsub_state)(buddy->index, sub, 1563 event); 1564 1561 1565 if (pjsua_var.ua_cfg.cb.on_buddy_state) 1562 1566 (*pjsua_var.ua_cfg.cb.on_buddy_state)(buddy->index); … … 1657 1661 1658 1662 1659 /* Event subscription callback. */1660 static pjsip_evsub_user pres_callback =1661 {1662 &pjsua_evsub_on_state,1663 &pjsua_evsub_on_tsx_state,1664 1665 NULL, /* on_rx_refresh: don't care about SUBSCRIBE refresh, unless1666 * we want to authenticate1667 */1668 1669 &pjsua_evsub_on_rx_notify,1670 1671 NULL, /* on_client_refresh: Use default behaviour, which is to1672 * refresh client subscription. */1673 1674 NULL, /* on_server_timeout: Use default behaviour, which is to send1675 * NOTIFY to terminate.1676 */1677 };1678 1679 1680 1663 /* It does what it says.. */ 1681 1664 static void subscribe_buddy_presence(pjsua_buddy_id buddy_id) 1682 1665 { 1666 pjsip_evsub_user pres_callback; 1683 1667 pj_pool_t *tmp_pool = NULL; 1684 1668 pjsua_buddy *buddy; … … 1688 1672 pjsip_tx_data *tdata; 1689 1673 pj_status_t status; 1674 1675 /* Event subscription callback. */ 1676 pj_bzero(&pres_callback, sizeof(pres_callback)); 1677 pres_callback.on_evsub_state = &pjsua_evsub_on_state; 1678 pres_callback.on_tsx_state = &pjsua_evsub_on_tsx_state; 1679 pres_callback.on_rx_notify = &pjsua_evsub_on_rx_notify; 1690 1680 1691 1681 buddy = &pjsua_var.buddy[buddy_id];
Note: See TracChangeset
for help on using the changeset viewer.