Changeset 2118 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_im.c
- Timestamp:
- Jul 10, 2008 8:45:03 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.