Changeset 6035 for pjproject/trunk/pjsip/src/pjsip-simple/publishc.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/publishc.c
r5984 r6035 533 533 static void call_callback(pjsip_publishc *pubc, pj_status_t status, 534 534 int st_code, const pj_str_t *reason, 535 pjsip_rx_data *rdata, pj_ int32_t expiration)535 pjsip_rx_data *rdata, pj_uint32_t expiration) 536 536 { 537 537 struct pjsip_publishc_cbparam cbparam; … … 563 563 char errmsg[PJ_ERR_MSG_SIZE]; 564 564 pj_str_t reason = pj_strerror(status, errmsg, sizeof(errmsg)); 565 call_callback(pubc, status, 400, &reason, NULL, -1); 565 call_callback(pubc, status, 400, &reason, NULL, 566 PJSIP_PUBC_EXPIRATION_NOT_SPECIFIED); 566 567 return; 567 568 } … … 605 606 call_callback(pubc, status, tsx->status_code, 606 607 &rdata->msg_info.msg->line.status.reason, 607 rdata, -1);608 rdata, PJSIP_PUBC_EXPIRATION_NOT_SPECIFIED); 608 609 } else { 609 610 status = pjsip_publishc_send(pubc, tdata); … … 612 613 } else { 613 614 pjsip_rx_data *rdata; 614 pj_ int32_t expiration = 0xFFFF;615 pj_uint32_t expiration = PJSIP_PUBC_EXPIRATION_NOT_SPECIFIED; 615 616 616 617 if (tsx->status_code/100 == 2) { … … 639 640 expiration = expires->ivalue; 640 641 641 if (pubc->auto_refresh && expiration!=0 && expiration!=0xFFFF) { 642 if (pubc->auto_refresh && expiration!=0 && 643 expiration!=PJSIP_PUBC_EXPIRATION_NOT_SPECIFIED) 644 { 642 645 pj_time_val delay = { 0, 0}; 643 646 … … 672 675 673 676 /* Call callback. */ 674 if (expiration == 0xFFFF) expiration = -1;677 // if (expiration == 0xFFFF) expiration = -1; 675 678 676 679 /* Temporarily increment pending_tsx to prevent callback from
Note: See TracChangeset
for help on using the changeset viewer.