Changeset 3339 for pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
- Timestamp:
- Oct 12, 2010 12:45:15 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r3323 r3339 2798 2798 2799 2799 2800 /* 2801 * Subscription state has changed. 2802 */ 2803 static void on_buddy_evsub_state(pjsua_buddy_id buddy_id, 2804 pjsip_evsub *sub, 2805 pjsip_event *event) 2806 { 2807 char event_info[80]; 2808 2809 PJ_UNUSED_ARG(sub); 2810 2811 event_info[0] = '\0'; 2812 2813 if (event->type == PJSIP_EVENT_TSX_STATE && 2814 event->body.tsx_state.type == PJSIP_EVENT_RX_MSG) 2815 { 2816 pjsip_rx_data *rdata = event->body.tsx_state.src.rdata; 2817 snprintf(event_info, sizeof(event_info), 2818 " (RX %s)", 2819 pjsip_rx_data_get_info(rdata)); 2820 } 2821 2822 PJ_LOG(4,(THIS_FILE, 2823 "Buddy %d: subscription state: %s (event: %s%s)", 2824 buddy_id, pjsip_evsub_get_state_name(sub), 2825 pjsip_event_str(event->type), 2826 event_info)); 2827 2828 } 2829 2830 2800 2831 /** 2801 2832 * Incoming IM message (i.e. MESSAGE request)! … … 4603 4634 app_config.cfg.cb.on_incoming_subscribe = &on_incoming_subscribe; 4604 4635 app_config.cfg.cb.on_buddy_state = &on_buddy_state; 4636 app_config.cfg.cb.on_buddy_evsub_state = &on_buddy_evsub_state; 4605 4637 app_config.cfg.cb.on_pager = &on_pager; 4606 4638 app_config.cfg.cb.on_typing = &on_typing;
Note: See TracChangeset
for help on using the changeset viewer.