Changeset 6035 for pjproject/trunk/pjsip/src/pjsip-simple/evsub_msg.c
- Timestamp:
- Jul 1, 2019 7:12:43 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-simple/evsub_msg.c
r5558 r6035 150 150 hdr->name = hdr->sname = sub_state; 151 151 hdr->vptr = &sub_state_hdr_vptr; 152 hdr->expires_param = -1;152 hdr->expires_param = PJSIP_EXPIRES_NOT_SPECIFIED; 153 153 hdr->retry_after = -1; 154 154 pj_list_init(hdr); … … 172 172 copy_advance_pair_escape(p, ";reason=", 8, hdr->reason_param, 173 173 pc->pjsip_TOKEN_SPEC); 174 if (hdr->expires_param >= 0) {174 if (hdr->expires_param != PJSIP_EXPIRES_NOT_SPECIFIED) { 175 175 pj_memcpy(p, ";expires=", 9); 176 176 p += 9; … … 275 275 } else if (pj_stricmp(&pname, &expires) == 0) { 276 276 hdr->expires_param = pj_strtoul(&pvalue); 277 if (hdr->expires_param == PJSIP_EXPIRES_NOT_SPECIFIED) 278 hdr->expires_param--; 277 279 278 280 } else if (pj_stricmp(&pname, &retry_after) == 0) {
Note: See TracChangeset
for help on using the changeset viewer.