Changeset 1605
- Timestamp:
- Dec 1, 2007 9:07:42 AM (17 years ago)
- Location:
- pjproject/trunk/pjsip-apps
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/build/Samples-vc.mak
r1177 r1605 66 66 $(BINDIR)\stateless_proxy.exe \ 67 67 $(BINDIR)\streamutil.exe \ 68 $(BINDIR)\strerror.exe \ 68 69 $(BINDIR)\tonegen.exe 69 70 -
pjproject/trunk/pjsip-apps/build/Samples.mak
r1352 r1605 30 30 stateless_proxy \ 31 31 streamutil \ 32 strerror \ 32 33 tonegen 33 34 -
pjproject/trunk/pjsip-apps/build/samples.dsp
r1382 r1605 171 171 # Begin Source File 172 172 173 SOURCE=..\src\samples\strerror.c 174 # End Source File 175 # Begin Source File 176 173 177 SOURCE=..\src\samples\tonegen.c 174 178 # End Source File -
pjproject/trunk/pjsip-apps/build/samples.vcproj
r1177 r1605 151 151 </File> 152 152 <File 153 RelativePath="..\src\samples\strerror.c" 154 > 155 </File> 156 <File 153 157 RelativePath="..\src\samples\tonegen.c" 154 158 > -
pjproject/trunk/pjsip-apps/src/samples/proxy.h
r1412 r1605 236 236 static pj_status_t init_proxy(void) 237 237 { 238 pj_ in_addr pri_addr;239 pj_ in_addr addr_list[16];238 pj_sockaddr pri_addr; 239 pj_sockaddr addr_list[16]; 240 240 unsigned addr_cnt = PJ_ARRAY_SIZE(addr_list); 241 241 unsigned i; … … 251 251 * to be added in Record-Route. 252 252 */ 253 if (pj_gethostip( &pri_addr)==PJ_SUCCESS) {253 if (pj_gethostip(pj_AF_INET(), &pri_addr)==PJ_SUCCESS) { 254 254 pj_strdup2(global.pool, &global.name[global.name_cnt].host, 255 pj_inet_ntoa(pri_addr ));255 pj_inet_ntoa(pri_addr.ipv4.sin_addr)); 256 256 global.name[global.name_cnt].port = global.port; 257 257 global.name_cnt++; … … 259 259 260 260 /* Get the rest of IP interfaces */ 261 if (pj_enum_ip_interface( &addr_cnt, addr_list) == PJ_SUCCESS) {261 if (pj_enum_ip_interface(pj_AF_INET(), &addr_cnt, addr_list) == PJ_SUCCESS) { 262 262 for (i=0; i<addr_cnt; ++i) { 263 263 264 if (addr_list[i]. s_addr == pri_addr.s_addr)264 if (addr_list[i].ipv4.sin_addr.s_addr == pri_addr.ipv4.sin_addr.s_addr) 265 265 continue; 266 266 267 267 pj_strdup2(global.pool, &global.name[global.name_cnt].host, 268 pj_inet_ntoa(addr_list[i] ));268 pj_inet_ntoa(addr_list[i].ipv4.sin_addr)); 269 269 global.name[global.name_cnt].port = global.port; 270 270 global.name_cnt++;
Note: See TracChangeset
for help on using the changeset viewer.