Ignore:
Timestamp:
Mar 14, 2008 5:56:11 PM (17 years ago)
Author:
bennylp
Message:

More ticket #485: initial test on TURN client/server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjnath/src/pjturn-srv/main.c

    r1854 r1869  
    1818 */ 
    1919#include "turn.h" 
     20#include "auth.h" 
     21 
     22#define REALM   "pjsip.org" 
    2023 
    2124int err(const char *title, pj_status_t status) 
     
    3942        return err("pj_init() error", status); 
    4043 
     44    pjlib_util_init(); 
     45    pjnath_init(); 
     46 
    4147    pj_caching_pool_init(&cp, NULL, 0); 
     48 
     49    pj_turn_auth_init(REALM); 
    4250 
    4351    status = pj_turn_srv_create(&cp.factory, &srv); 
     
    4553        return err("Error creating server", status); 
    4654 
    47     status = pj_turn_listener_create_udp(srv, pj_AF_INET(), NULL, 3478, 1, 0, &listener); 
     55    status = pj_turn_listener_create_udp(srv, pj_AF_INET(), NULL,  
     56                                         PJ_STUN_PORT, 1, 0, &listener); 
    4857    if (status != PJ_SUCCESS) 
    4958        return err("Error creating listener", status); 
Note: See TracChangeset for help on using the changeset viewer.