Changeset 430:12336302a6f9 in verona for phapi/phapi.c
- Timestamp:
- Feb 6, 2012 4:31:28 PM (16 months ago)
- Branch:
- default
- File:
-
- 1 edited
-
phapi/phapi.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
phapi/phapi.c
r429 r430 328 328 329 329 } 330 331 static RtpTransport * 332 ph_create_rtp_tunnel(struct tunnel_info *t, const char* ip, int port) 333 { 334 rtp_set_tunnel_server(t->tunnel_server, t->tunnel_port); 335 return rtp_socks_transport_new(ip, port); 336 } 337 330 338 #endif 331 339 … … 1097 1105 } 1098 1106 1099 static RtpTransport *1100 ph_create_rtp_tunnel(struct tunnel_info *t, const char* ip, int port)1101 {1102 rtp_set_tunnel_server(t->tunnel_server, t->tunnel_port);1103 return rtp_socks_transport_new(ip, port);1104 1105 }1106 1107 1107 ph_prepare_stream_ports(phcall_t *ca) 1108 1108 { … … 4252 4252 { 4253 4253 #if ENABLE_SOCKS 4254 struct tunnel_info *tun;4255 4256 4254 if (phcfg.use_tunnel & PH_TUNNEL_USE) { 4255 struct tunnel_info *tun; 4256 tun = ph_select_tunnel(sip_tunnel_set, sip_tunnel_count); 4257 if (tun) 4258 eXosip_set_tunnel(tun->tunnel_proto, tun->tunnel_server, tun->tunnel_port);; 4259 4257 4260 sip_tunnel_count = ph_parse_tunnel_list(sip_tunnel_set, phcfg.sip_tunnel_uris, TUNNEL_MAX); 4258 4261 } … … 4715 4718 ph_media_init(phcfg.plugin_path); //init ortp/ms2 payloads list, init ms2 and ortp 4716 4719 4717 if (phcfg.use_tunnel) {4718 4719 // ph_setup_tunnel();4720 4721 }4722 4723 4720 i = eXosip_init(); 4724 4721 if (i) 4725 4722 return -1; 4726 4727 if (phcfg.use_tunnel & PH_TUNNEL_USE) {4728 struct tunnel_info *tun;4729 4730 tun = ph_select_tunnel(sip_tunnel_set, sip_tunnel_count);4731 if (tun)4732 eXosip_set_tunnel(tun->tunnel_proto, tun->tunnel_server, tun->tunnel_port);;4733 }4734 4735 4723 4736 4724 ph_nat_init();
Note: See TracChangeset
for help on using the changeset viewer.
