Changeset 487 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_reg.c
- Timestamp:
- Jun 1, 2006 12:28:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_reg.c
r482 r487 133 133 * Update registration. If renew is false, then unregistration will be performed. 134 134 */ 135 PJ_DECL( void) pjsua_acc_set_registration(unsigned acc_index, pj_bool_t renew)135 PJ_DECL(pj_status_t) pjsua_acc_set_registration(unsigned acc_index, pj_bool_t renew) 136 136 { 137 137 pj_status_t status = 0; … … 144 144 pjsua_perror(THIS_FILE, "Unable to create registration", 145 145 status); 146 return ;146 return PJ_EINVALIDOP; 147 147 } 148 148 } 149 149 if (!pjsua.acc[acc_index].regc) 150 return ;150 return PJ_EINVALIDOP; 151 151 152 152 status = pjsip_regc_register(pjsua.acc[acc_index].regc, 1, … … 156 156 if (pjsua.acc[acc_index].regc == NULL) { 157 157 PJ_LOG(3,(THIS_FILE, "Currently not registered")); 158 return ;158 return PJ_EINVALIDOP; 159 159 } 160 160 status = pjsip_regc_unregister(pjsua.acc[acc_index].regc, &tdata); … … 171 171 (renew? "Registration" : "Unregistration"))); 172 172 } 173 174 return status; 173 175 } 174 176
Note: See TracChangeset
for help on using the changeset viewer.