Changeset 1417 for pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c
- Timestamp:
- Aug 16, 2007 10:11:44 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip-ua/sip_inv.c
r1390 r1417 114 114 }; 115 115 116 /* Config */117 extern pj_bool_t pjsip_include_allow_hdr_in_dlg;118 119 116 /* 120 117 * Module load() … … 224 221 pjsip_rx_data_get_info(rdata))); 225 222 226 status = pjsip_dlg_create_request(inv->dlg, &pjsip_ack_method,223 status = pjsip_dlg_create_request(inv->dlg, pjsip_get_ack_method(), 227 224 rdata->msg_info.cseq->cseq, &tdata); 228 225 if (status != PJ_SUCCESS) { … … 1109 1106 1110 1107 /* Create the INVITE request. */ 1111 status = pjsip_dlg_create_request(inv->dlg, &pjsip_invite_method, -1,1108 status = pjsip_dlg_create_request(inv->dlg, pjsip_get_invite_method(), -1, 1112 1109 &tdata); 1113 1110 if (status != PJ_SUCCESS) … … 1156 1153 1157 1154 /* Add Allow header. */ 1158 if ( pjsip_include_allow_hdr_in_dlg) {1155 if (inv->dlg->add_allow) { 1159 1156 hdr = pjsip_endpt_get_capability(inv->dlg->endpt, PJSIP_H_ALLOW, NULL); 1160 1157 if (hdr) { … … 1598 1595 case PJSIP_INV_STATE_CONFIRMED: 1599 1596 /* For established dialog, send BYE */ 1600 status = pjsip_dlg_create_request(inv->dlg, &pjsip_bye_method, -1,1601 &tdata);1597 status = pjsip_dlg_create_request(inv->dlg, pjsip_get_bye_method(), 1598 -1, &tdata); 1602 1599 break; 1603 1600 … … 1793 1790 1794 1791 pjsip_tsx_create_key(rdata->tp_info.pool, &key, PJSIP_ROLE_UAS, 1795 &pjsip_invite_method, rdata);1792 pjsip_get_invite_method(), rdata); 1796 1793 invite_tsx = pjsip_tsx_layer_find_tsx(&key, PJ_TRUE); 1797 1794
Note: See TracChangeset
for help on using the changeset viewer.