Changeset 4130 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
- Timestamp:
- May 17, 2012 8:35:51 AM (12 years ago)
- Location:
- pjproject/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk
- Property svn:mergeinfo changed
/pjproject/branches/1.x merged: 4124-4127
- Property svn:mergeinfo changed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r4096 r4130 676 676 pj_str_t acc_proxy[PJSUA_ACC_MAX_PROXIES]; 677 677 pj_bool_t update_reg = PJ_FALSE; 678 pj_bool_t unreg_first = PJ_FALSE; 678 679 pj_status_t status = PJ_SUCCESS; 679 680 … … 803 804 acc->srv_port = 0; 804 805 update_reg = PJ_TRUE; 806 unreg_first = PJ_TRUE; 805 807 } 806 808 … … 857 859 &cfg->force_contact); 858 860 update_reg = PJ_TRUE; 861 unreg_first = PJ_TRUE; 859 862 } 860 863 … … 1101 1104 } 1102 1105 update_reg = PJ_TRUE; 1106 unreg_first = PJ_TRUE; 1103 1107 } 1104 1108 … … 1109 1113 { 1110 1114 update_reg = PJ_TRUE; 1115 } 1116 1117 /* Unregister first */ 1118 if (unreg_first) { 1119 pjsua_acc_set_registration(acc->index, PJ_FALSE); 1120 if (acc->regc != NULL) { 1121 pjsip_regc_destroy(acc->regc); 1122 acc->regc = NULL; 1123 acc->contact.slen = 0; 1124 } 1111 1125 } 1112 1126
Note: See TracChangeset
for help on using the changeset viewer.