Changeset 430:12336302a6f9 in verona for phapi/phapi.c


Ignore:
Timestamp:
Feb 6, 2012 4:31:28 PM (16 months ago)
Author:
laurent@…
Branch:
default
Message:

fix build without socks support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • phapi/phapi.c

    r429 r430  
    328328 
    329329} 
     330 
     331static RtpTransport * 
     332ph_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 
    330338#endif 
    331339 
     
    10971105} 
    10981106 
    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  
    11071107ph_prepare_stream_ports(phcall_t *ca) 
    11081108{ 
     
    42524252{ 
    42534253#if ENABLE_SOCKS 
    4254         struct tunnel_info *tun; 
    4255  
    42564254        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 
    42574260                sip_tunnel_count = ph_parse_tunnel_list(sip_tunnel_set, phcfg.sip_tunnel_uris, TUNNEL_MAX); 
    42584261        } 
     
    47154718        ph_media_init(phcfg.plugin_path); //init ortp/ms2 payloads list, init ms2 and ortp 
    47164719 
    4717         if (phcfg.use_tunnel) { 
    4718  
    4719                 // ph_setup_tunnel(); 
    4720  
    4721         } 
    4722  
    47234720        i = eXosip_init(); 
    47244721        if (i) 
    47254722                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  
    47354723         
    47364724        ph_nat_init(); 
Note: See TracChangeset for help on using the changeset viewer.