On Fri, Jul 18, 2008 at 8:40 AM, Gang Liu <gangban.lau at gmail.com> wrote: > Yes. Please see my test program in attachment. > > It was ok for 0.8.0 release when using pjmedia_transport_udp_close func. > But This func is removed at 0.9.0 release. > I try to replace it with transport close func, but it fail. > > I tried your problem, it builds fine, and everything seems to be running okay, and after pjmedia_transport_close() is called, I can see with netstat that the socket is gone. So what's the problem? -benny > regards, > Gang > > On Fri, Jul 18, 2008 at 1:02 AM, Benny Prijono <bennylp at pjsip.org> wrote: > >> On Thu, Jul 17, 2008 at 12:16 PM, Gang Lau <gangban.lau at gmail.com> wrote: >> >>> Hi, >>> I am using pjmedia_transport_close to release UDP transport.But the >>> udp socket is still there when using "netstat -na " to have a check. >>> >>> >> Are you sure about that? It doesn't happen here. >> >> Cheers >> Benny >> >> >> >>> status = pjmedia_transport_close(channel->transport); >>> channel->transport = NULL; >>> if (status != PJ_SUCCESS) >>> { >>> logging(THIS_FILE, VOXVE_LOG_WARN, "Error close >>> transport", status); >>> hasError = true; >>> } >>> >>> I am using vs 2005 at windows XP and pjsip 0.9.0 release. >>> >>> regards, >>> Gang >>> >>> _______________________________________________ >>> Visit our blog: http://blog.pjsip.org >>> >>> pjsip mailing list >>> pjsip at lists.pjsip.org >>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>> >>> >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip at lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080718/3f510235/attachment-0001.html