Changeset 5899 for pjproject/trunk/pjsip/src/pjsua2/call.cpp
- Timestamp:
- Oct 17, 2018 4:38:39 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua2/call.cpp
r5878 r5899 450 450 451 451 Call::Call(Account& account, int call_id) 452 : acc(account), id(call_id) 452 : acc(account), id(call_id), userData(NULL), sdp_pool(NULL), child(NULL) 453 453 { 454 454 if (call_id != PJSUA_INVALID_ID) … … 503 503 { 504 504 Call *call = (Call*)pjsua_call_get_user_data(call_id); 505 if (call) 506 call->id = call_id; 505 if (call && call_id != call->id) { 506 if (call->child && call->child->id == PJSUA_INVALID_ID) { 507 /* This must be a new call from call transfer */ 508 call = call->child; 509 pjsua_call_set_user_data(call_id, call); 510 } 511 call->id = call_id; 512 } 507 513 return call; 508 514 } … … 821 827 } 822 828 medias.clear(); 829 830 /* Remove this Call object association */ 831 pjsua_call_set_user_data(id, NULL); 823 832 } 824 833
Note: See TracChangeset
for help on using the changeset viewer.