Changeset 3361
- Timestamp:
- Nov 3, 2010 6:48:58 AM (14 years ago)
- Location:
- pjproject/trunk/pjsip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/include/pjsip/sip_config.h
r3329 r3361 78 78 pj_bool_t allow_port_in_fromto_hdr; 79 79 80 /** 81 * Disable rport in request. 82 */ 83 pj_bool_t disable_rport; 80 84 } endpt; 81 85 -
pjproject/trunk/pjsip/src/pjsip/sip_util.c
r3323 r3361 246 246 /* Add a blank Via header in the front of the message. */ 247 247 via = pjsip_via_hdr_create(tdata->pool); 248 via->rport_param = 0;248 via->rport_param = pjsip_cfg()->endpt.disable_rport ? -1 : 0; 249 249 pjsip_msg_insert_first_hdr(msg, (pjsip_hdr*)via); 250 250 … … 1180 1180 via->transport = pj_str(stateless_data->cur_transport->type_name); 1181 1181 via->sent_by = stateless_data->cur_transport->local_name; 1182 via->rport_param = 0;1182 via->rport_param = pjsip_cfg()->endpt.disable_rport ? -1 : 0; 1183 1183 1184 1184 pjsip_tx_data_invalidate_msg(tdata);
Note: See TracChangeset
for help on using the changeset viewer.