Changeset 4127
- Timestamp:
- May 17, 2012 8:04:58 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/branches/1.x/pjsip/src/pjsua-lib/pjsua_acc.c
r4095 r4127 651 651 pj_str_t acc_proxy[PJSUA_ACC_MAX_PROXIES]; 652 652 pj_bool_t update_reg = PJ_FALSE; 653 pj_bool_t unreg_first = PJ_FALSE; 653 654 pj_status_t status = PJ_SUCCESS; 654 655 … … 775 776 acc->srv_port = 0; 776 777 update_reg = PJ_TRUE; 778 unreg_first = PJ_TRUE; 777 779 } 778 780 … … 829 831 &cfg->force_contact); 830 832 update_reg = PJ_TRUE; 833 unreg_first = PJ_TRUE; 831 834 } 832 835 … … 1073 1076 } 1074 1077 update_reg = PJ_TRUE; 1078 unreg_first = PJ_TRUE; 1075 1079 } 1076 1080 … … 1081 1085 { 1082 1086 update_reg = PJ_TRUE; 1087 } 1088 1089 /* Unregister first */ 1090 if (unreg_first) { 1091 pjsua_acc_set_registration(acc->index, PJ_FALSE); 1092 if (acc->regc != NULL) { 1093 pjsip_regc_destroy(acc->regc); 1094 acc->regc = NULL; 1095 acc->contact.slen = 0; 1096 } 1083 1097 } 1084 1098
Note: See TracChangeset
for help on using the changeset viewer.