Changeset 1869 for pjproject/trunk/pjnath/src/pjturn-srv/main.c
- Timestamp:
- Mar 14, 2008 5:56:11 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjturn-srv/main.c
r1854 r1869 18 18 */ 19 19 #include "turn.h" 20 #include "auth.h" 21 22 #define REALM "pjsip.org" 20 23 21 24 int err(const char *title, pj_status_t status) … … 39 42 return err("pj_init() error", status); 40 43 44 pjlib_util_init(); 45 pjnath_init(); 46 41 47 pj_caching_pool_init(&cp, NULL, 0); 48 49 pj_turn_auth_init(REALM); 42 50 43 51 status = pj_turn_srv_create(&cp.factory, &srv); … … 45 53 return err("Error creating server", status); 46 54 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); 48 57 if (status != PJ_SUCCESS) 49 58 return err("Error creating listener", status);
Note: See TracChangeset
for help on using the changeset viewer.