Changeset 1537 for pjproject/trunk
- Timestamp:
- Oct 31, 2007 3:52:09 PM (17 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_dialog.h
r1461 r1537 131 131 pjsip_cid_hdr *call_id; /**< Call-ID header. */ 132 132 pjsip_route_hdr route_set; /**< Route set. */ 133 pj_bool_t route_set_frozen; /**< Route set has been set. */ 133 134 pjsip_auth_clt_sess auth_sess; /**< Client authentication session. */ 134 135 -
pjproject/trunk/pjsip/src/pjsip/sip_dialog.c
r1469 r1537 473 473 PJSIP_H_RECORD_ROUTE, rr); 474 474 } 475 dlg->route_set_frozen = PJ_TRUE; 475 476 476 477 /* Init client authentication session. */ … … 642 643 r = r->next; 643 644 } 645 dlg->route_set_frozen = PJ_TRUE; 644 646 645 647 /* Clone client authentication session. */ … … 1541 1543 const pjsip_hdr *hdr, *end_hdr; 1542 1544 1545 /* Ignore if route set has been set */ 1546 if (dlg->route_set_frozen) 1547 return; 1548 1543 1549 pj_list_init(&dlg->route_set); 1544 1550 … … 1552 1558 } 1553 1559 } 1560 dlg->route_set_frozen = PJ_TRUE; 1554 1561 } 1555 1562 … … 1560 1567 { 1561 1568 unsigned i; 1562 pj_bool_t routeset_updated = PJ_FALSE;1563 1569 int res_code; 1564 1570 … … 1614 1620 */ 1615 1621 dlg_update_routeset(dlg, rdata->msg_info.msg); 1616 routeset_updated = PJ_TRUE;1617 1622 1618 1623 /* The remote target MUST be set to the URI from the Contact header … … 1674 1679 } 1675 1680 1676 if (!routeset_updated) { 1677 dlg_update_routeset(dlg, rdata->msg_info.msg); 1678 routeset_updated = PJ_TRUE; 1679 } 1681 dlg_update_routeset(dlg, rdata->msg_info.msg); 1680 1682 } 1681 1683
Note: See TracChangeset
for help on using the changeset viewer.