Changeset 1924 for pjproject/trunk/pjnath/src/pjturn-srv/main.c
- Timestamp:
- Apr 13, 2008 9:48:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjturn-srv/main.c
r1913 r1924 20 20 #include "auth.h" 21 21 22 #define REALM "pjsip.org" 22 #define REALM "pjsip.org" 23 #define TURN_PORT PJ_STUN_TURN_PORT 24 //#define TURN_PORT 34780 25 23 26 24 27 static pj_caching_pool g_cp; … … 139 142 140 143 status = pj_turn_listener_create_udp(srv, pj_AF_INET(), NULL, 141 PJ_STUN_PORT, 1, 0, &listener);144 TURN_PORT, 1, 0, &listener); 142 145 if (status != PJ_SUCCESS) 143 146 return err("Error creating UDP listener", status); 144 147 145 148 status = pj_turn_listener_create_tcp(srv, pj_AF_INET(), NULL, 146 PJ_STUN_PORT, 1, 0, &listener);149 TURN_PORT, 1, 0, &listener); 147 150 if (status != PJ_SUCCESS) 148 151 return err("Error creating listener", status);
Note: See TracChangeset
for help on using the changeset viewer.