Changeset 2118 for pjproject/trunk
- Timestamp:
- Jul 10, 2008 8:45:03 PM (16 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsua-lib/pjsua.h
r2039 r2118 834 834 # mime_type: string 835 835 # body: string 836 # acc_id: integer 836 837 837 838 def on_pager(call_id, from, to, contact, mime_type, body): … … 856 857 * @param body The message content. 857 858 * @param rdata The incoming MESSAGE request. 859 * @param acc_id Account ID most suitable for this message. 858 860 */ 859 861 void (*on_pager2)(pjsua_call_id call_id, const pj_str_t *from, 860 862 const pj_str_t *to, const pj_str_t *contact, 861 863 const pj_str_t *mime_type, const pj_str_t *body, 862 pjsip_rx_data *rdata );864 pjsip_rx_data *rdata, pjsua_acc_id acc_id); 863 865 864 866 /** … … 885 887 # status: integer 886 888 # reason: string 889 # acc_id: integer 887 890 888 891 def on_pager_status(call_id, to, body, user_data, status, reason): … … 914 917 * message transaction fails because of time out 915 918 * or transport error. 919 * @param acc_id Account ID from this the instant message was 920 * send. 916 921 */ 917 922 void (*on_pager_status2)(pjsua_call_id call_id, … … 922 927 const pj_str_t *reason, 923 928 pjsip_tx_data *tdata, 924 pjsip_rx_data *rdata); 929 pjsip_rx_data *rdata, 930 pjsua_acc_id acc_id); 925 931 926 932 /** … … 951 957 const pj_str_t *to, const pj_str_t *contact, 952 958 pj_bool_t is_typing); 959 960 /** 961 * Notify application about typing indication. 962 * 963 * @param call_id Containts the ID of the call where the IM was 964 * sent, or PJSUA_INVALID_ID if the IM was sent 965 * outside call context. 966 * @param from URI of the sender. 967 * @param to URI of the destination message. 968 * @param contact The Contact URI of the sender, if present. 969 * @param is_typing Non-zero if peer is typing, or zero if peer 970 * has stopped typing a message. 971 * @param rdata The received request. 972 * @param acc_id Account ID most suitable for this message. 973 */ 974 void (*on_typing2)(pjsua_call_id call_id, const pj_str_t *from, 975 const pj_str_t *to, const pj_str_t *contact, 976 pj_bool_t is_typing, pjsip_rx_data *rdata, 977 pjsua_acc_id acc_id); 953 978 954 979 /** -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_im.c
r2086 r2118 192 192 } 193 193 194 if (pjsua_var.ua_cfg.cb.on_typing2) { 195 pjsua_acc_id acc_id; 196 197 if (call_id == PJSUA_INVALID_ID) { 198 acc_id = pjsua_acc_find_for_incoming(rdata); 199 } else { 200 pjsua_call *call = &pjsua_var.calls[call_id]; 201 acc_id = call->acc_id; 202 } 203 204 205 (*pjsua_var.ua_cfg.cb.on_typing2)(call_id, from, to, &contact, 206 is_typing, rdata, acc_id); 207 } 208 194 209 } else { 195 210 pj_str_t mime_type; … … 220 235 221 236 if (pjsua_var.ua_cfg.cb.on_pager2) { 237 pjsua_acc_id acc_id; 238 239 if (call_id == PJSUA_INVALID_ID) { 240 acc_id = pjsua_acc_find_for_incoming(rdata); 241 } else { 242 pjsua_call *call = &pjsua_var.calls[call_id]; 243 acc_id = call->acc_id; 244 } 245 222 246 (*pjsua_var.ua_cfg.cb.on_pager2)(call_id, from, to, &contact, 223 &mime_type, &text_body, rdata); 247 &mime_type, &text_body, rdata, 248 acc_id); 224 249 } 225 250 } … … 390 415 &tsx->status_text, 391 416 tsx->last_tx, 392 rdata );417 rdata, im_data->acc_id); 393 418 } 394 419 } -
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_pres.c
r2039 r2118 506 506 uapres = (pjsua_srv_pres*) pjsip_evsub_get_mod_data(sub, pjsua_var.mod.id); 507 507 if (uapres) { 508 PJ_LOG( 3,(THIS_FILE, "Server subscription to %s is %s",508 PJ_LOG(4,(THIS_FILE, "Server subscription to %s is %s", 509 509 uapres->remote, pjsip_evsub_get_state_name(sub))); 510 510 … … 984 984 buddy = (pjsua_buddy*) pjsip_evsub_get_mod_data(sub, pjsua_var.mod.id); 985 985 if (buddy) { 986 PJ_LOG( 3,(THIS_FILE,986 PJ_LOG(4,(THIS_FILE, 987 987 "Presence subscription to %.*s is %s", 988 988 (int)pjsua_var.buddy[buddy->index].uri.slen,
Note: See TracChangeset
for help on using the changeset viewer.