- Timestamp:
- Sep 27, 2007 1:14:52 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsip/sip_transport.c
r1417 r1453 1311 1311 } 1312 1312 1313 /* Always add received parameter to the via. */ 1314 pj_strdup2(rdata->tp_info.pool, 1315 &rdata->msg_info.via->recvd_param, 1316 rdata->pkt_info.src_name); 1317 1318 /* RFC 3581: 1319 * If message contains "rport" param, put the received port there. 1320 */ 1321 if (rdata->msg_info.via->rport_param == 0) { 1322 rdata->msg_info.via->rport_param = rdata->pkt_info.src_port; 1313 /* For request: */ 1314 if (rdata->msg_info.msg->type == PJSIP_REQUEST_MSG) { 1315 /* always add received parameter to the via. */ 1316 pj_strdup2(rdata->tp_info.pool, 1317 &rdata->msg_info.via->recvd_param, 1318 rdata->pkt_info.src_name); 1319 1320 /* RFC 3581: 1321 * If message contains "rport" param, put the received port there. 1322 */ 1323 if (rdata->msg_info.via->rport_param == 0) { 1324 rdata->msg_info.via->rport_param = rdata->pkt_info.src_port; 1325 } 1323 1326 } 1324 1327
Note: See TracChangeset
for help on using the changeset viewer.