Changeset 1242 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
- Timestamp:
- May 2, 2007 11:29:37 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r1127 r1242 683 683 684 684 if (acc->reg_last_err) { 685 info->status = acc->reg_last_err;685 info->status = (pjsip_status_code) acc->reg_last_err; 686 686 pj_strerror(acc->reg_last_err, info->buf_, sizeof(info->buf_)); 687 687 info->status_text = pj_str(info->buf_); 688 688 } else if (acc->reg_last_code) { 689 689 if (info->has_registration) { 690 info->status = acc->reg_last_code;690 info->status = (pjsip_status_code) acc->reg_last_code; 691 691 info->status_text = *pjsip_get_status_text(acc->reg_last_code); 692 692 } else { 693 info->status = 0;693 info->status = (pjsip_status_code) 0; 694 694 info->status_text = pj_str("not registered"); 695 695 } 696 696 } else if (acc->cfg.reg_uri.slen) { 697 info->status = 100;697 info->status = PJSIP_SC_TRYING; 698 698 info->status_text = pj_str("In Progress"); 699 699 } else { 700 info->status = 0;700 info->status = (pjsip_status_code) 0; 701 701 info->status_text = pj_str("does not register"); 702 702 }
Note: See TracChangeset
for help on using the changeset viewer.