- Timestamp:
- Nov 16, 2010 6:01:38 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_acc.c
r3366 r3367 26 26 enum 27 27 { 28 OUTBOUND_NONE, 29 OUTBOUND_WANTED, 30 OUTBOUND_ACTIVE 28 OUTBOUND_UNKNOWN, // status unknown 29 OUTBOUND_WANTED, // initiated in registration 30 OUTBOUND_ACTIVE, // got positive response from server 31 OUTBOUND_NA // not wanted or got negative response from server 31 32 }; 32 33 … … 1033 1034 goto done; 1034 1035 1036 /* Check if outbound has been requested and rejected */ 1037 if (acc->rfc5626_status == OUTBOUND_NA) 1038 goto done; 1039 1035 1040 if (pj_stristr(&acc->contact, &tcp_param)==NULL && 1036 1041 pj_stristr(&acc->contact, &tls_param)==NULL) … … 1051 1056 */ 1052 1057 acc->reg_contact = acc->contact; 1053 acc->rfc5626_status = OUTBOUND_N ONE;1058 acc->rfc5626_status = OUTBOUND_NA; 1054 1059 } else { 1055 1060 /* Need to use outbound, append the contact with +sip.instance and … … 1559 1564 unsigned i; 1560 1565 1561 if (acc->rfc5626_status == OUTBOUND_ NONE) {1566 if (acc->rfc5626_status == OUTBOUND_UNKNOWN) { 1562 1567 goto on_return; 1563 1568 } … … 1565 1570 hreq = rdata->msg_info.require; 1566 1571 if (!hreq) { 1567 acc->rfc5626_status = OUTBOUND_N ONE;1572 acc->rfc5626_status = OUTBOUND_NA; 1568 1573 goto on_return; 1569 1574 } … … 1577 1582 1578 1583 /* Server does not support outbound */ 1579 acc->rfc5626_status = OUTBOUND_N ONE;1584 acc->rfc5626_status = OUTBOUND_NA; 1580 1585 1581 1586 on_return: 1587 if (acc->rfc5626_status != OUTBOUND_ACTIVE) { 1588 acc->reg_contact = acc->contact; 1589 } 1582 1590 PJ_LOG(4,(THIS_FILE, "SIP outbound status for acc %d is %s", 1583 1591 acc->index, (acc->rfc5626_status==OUTBOUND_ACTIVE?
Note: See TracChangeset
for help on using the changeset viewer.