Changeset 829 for pjproject/trunk
- Timestamp:
- Nov 25, 2006 8:46:48 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/samples/siprtp.c
r815 r829 293 293 pj_sockaddr_in addr; 294 294 pjsip_host_port addrname; 295 pjsip_transport *tp; 295 296 296 297 pj_bzero(&addr, sizeof(addr)); … … 314 315 status = pjsip_udp_transport_start( app.sip_endpt, &addr, 315 316 (app.local_addr.slen ? &addrname:NULL), 316 1, NULL);317 1, &tp); 317 318 if (status != PJ_SUCCESS) { 318 319 app_perror(THIS_FILE, "Unable to start UDP transport", status); 319 320 return status; 320 321 } 322 323 PJ_LOG(3,(THIS_FILE, "SIP UDP listening on %.*s:%d", 324 (int)tp->local_name.host.slen, tp->local_name.host.ptr, 325 tp->local_name.port)); 321 326 } 322 327 … … 380 385 app.sip_endpt = NULL; 381 386 } 382 383 /* Shutdown PJLIB */384 pj_shutdown();385 387 386 388 } … … 1458 1460 } 1459 1461 1460 if (audio->transport) { 1461 pjmedia_transport_detach(audio->transport, audio); 1462 audio->transport = NULL; 1463 } 1462 pjmedia_transport_detach(audio->transport, audio); 1464 1463 } 1465 1464 } … … 2120 2119 app_logging_shutdown(); 2121 2120 2121 /* Shutdown PJLIB */ 2122 pj_shutdown(); 2122 2123 2123 2124 return 0;
Note: See TracChangeset
for help on using the changeset viewer.