sockfd 455 src/ftdm_io.c ftdm_log(FTDM_LOG_INFO, "Closing channel %s:%u:%u fd:%d\n", ftdmchan->span->type, ftdmchan->span_id, ftdmchan->chan_id, ftdmchan->sockfd); sockfd 459 src/ftdm_io.c ftdm_log(FTDM_LOG_ERROR, "Error Closing channel %u:%u fd:%d\n", ftdmchan->span_id, ftdmchan->chan_id, ftdmchan->sockfd); sockfd 805 src/ftdm_io.c FT_DECLARE(ftdm_status_t) ftdm_span_add_channel(ftdm_span_t *span, ftdm_socket_t sockfd, ftdm_chan_type_t type, ftdm_channel_t **chan) sockfd 836 src/ftdm_io.c new_chan->sockfd = sockfd; sockfd 180 src/ftmod/ftmod_libpri/lpwrap_pri.c if (spri->dchan && (spri->pri = pri_new_cb(spri->dchan->sockfd, node, swtype, __pri_lpwrap_read, __pri_lpwrap_write, spri))){ sockfd 681 src/ftmod/ftmod_pritap/ftmod_pritap.c if ((pritap->pri = pri_new_cb(pritap->dchan->sockfd, PRI_NETWORK, PRI_SWITCH_NI2, pri_io_read, pri_io_write, pritap))){ sockfd 688 src/ftmod/ftmod_pritap/ftmod_pritap.c dpoll.fd = pritap->dchan->sockfd; sockfd 230 src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_cfg.c d_channel_fd = ftdmchan->sockfd; sockfd 241 src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_cfg.c cfg.t.cfg.s.l1PSAP.sockfd = d_channel_fd; sockfd 139 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c pfds[0].fd = ftdmchan->sockfd; sockfd 225 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c ftdm_socket_t sockfd = FTDM_INVALID_SOCKET; sockfd 229 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sockfd = __tdmv_api_open_span_chan(spanno, x); sockfd 234 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sockfd = tdmv_api_open_span_chan(spanno, x); sockfd 237 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c if (sockfd == FTDM_INVALID_SOCKET) { sockfd 242 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c if (ftdm_span_add_channel(span, sockfd, type, &chan) == FTDM_SUCCESS) { sockfd 250 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangstatus = sangoma_wait_obj_create(&sangoma_wait_obj, sockfd, SANGOMA_DEVICE_WAIT_OBJ_SIG); sockfd 270 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_get_hw_coding(chan->sockfd, &tdm_api); sockfd 278 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_get_hw_dtmf(chan->sockfd, &tdm_api); sockfd 284 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_get_hw_ec(chan->sockfd, &tdm_api); sockfd 290 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_get_hwec_persist_status(chan->sockfd, &tdm_api); sockfd 306 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c if (sangoma_tdm_disable_ring_trip_detect_events(chan->sockfd, &tdm_api)) { sockfd 316 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c int err=sangoma_set_rm_rxflashtime(chan->sockfd, &tdm_api, wp_globals.flash_ms); sockfd 327 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_tdm_write_rbs(chan->sockfd,&tdm_api,chan->physical_chan_id, wanpipe_swap_bits(cas_bits)); sockfd 332 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c if (sangoma_tdm_enable_rbs_events(chan->sockfd, &tdm_api, 100)) { sockfd 333 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c ftdm_log(FTDM_LOG_ERROR, "Failed to enable RBS/CAS events in device %d:%d fd:%d\n", chan->span_id, chan->chan_id, sockfd); sockfd 337 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_flush_bufs(chan->sockfd, &tdm_api); sockfd 345 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c if (sangoma_tdm_enable_rbs_events(chan->sockfd, &tdm_api, 100)) { sockfd 346 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c ftdm_log(FTDM_LOG_ERROR, "Failed to enable RBS/CAS events in device %d:%d fd:%d\n", chan->span_id, chan->chan_id, sockfd); sockfd 349 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_tdm_flush_bufs(chan->sockfd, &tdm_api); sockfd 350 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_tdm_write_rbs(chan->sockfd,&tdm_api, wanpipe_swap_bits(cas_bits)); sockfd 363 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c spanno, x, chan->span_id, chan->chan_id, sockfd, dtmf); sockfd 516 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_tdm_flush_bufs(ftdmchan->sockfd, &tdm_api); sockfd 518 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_flush_event_bufs(ftdmchan->sockfd, &tdm_api); sockfd 526 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_tdm_set_usr_period(ftdmchan->sockfd, &tdm_api, wp_globals.codec_ms); sockfd 568 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_txsig_offhook(ftdmchan->sockfd,&tdm_api); sockfd 578 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_txsig_onhook(ftdmchan->sockfd,&tdm_api); sockfd 588 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_txsig_start(ftdmchan->sockfd,&tdm_api); sockfd 600 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_txsig_offhook(ftdmchan->sockfd,&tdm_api); sockfd 611 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_get_usr_period(ftdmchan->sockfd, &tdm_api); sockfd 621 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_get_hwec_chan_status(ftdmchan->sockfd, &tdm_api); sockfd 628 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_enable_hwec(ftdmchan->sockfd, &tdm_api); sockfd 638 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_get_hwec_chan_status(ftdmchan->sockfd, &tdm_api); sockfd 644 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_disable_hwec(ftdmchan->sockfd, &tdm_api); sockfd 654 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_enable_dtmf_events(ftdmchan->sockfd, &tdm_api); sockfd 669 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_disable_dtmf_events(ftdmchan->sockfd, &tdm_api); sockfd 684 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_enable_loop(ftdmchan->sockfd, &tdm_api); sockfd 695 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_disable_loop(ftdmchan->sockfd, &tdm_api); sockfd 705 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_set_usr_period(ftdmchan->sockfd, &tdm_api, FTDM_COMMAND_OBJ_INT); sockfd 712 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_write_rbs(ftdmchan->sockfd,&tdm_api, ftdmchan->physical_chan_id, wanpipe_swap_bits(FTDM_COMMAND_OBJ_INT)); sockfd 714 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_write_rbs(ftdmchan->sockfd, &tdm_api, wanpipe_swap_bits(FTDM_COMMAND_OBJ_INT)); sockfd 722 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_read_rbs(ftdmchan->sockfd, &tdm_api, ftdmchan->physical_chan_id, &rbsbits); sockfd 736 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_set_fe_status(ftdmchan->sockfd, &tdm_api, sangoma_status); sockfd 742 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_get_fe_status(ftdmchan->sockfd, &tdm_api, &sangoma_status); sockfd 776 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c rx_len = sangoma_readmsg_tdm(ftdmchan->sockfd, &hdrframe, (int)sizeof(hdrframe), data, (int)*datalen, 0); sockfd 812 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c bsent = sangoma_writemsg_tdm(ftdmchan->sockfd, &hdrframe, (int)sizeof(hdrframe), data, (unsigned short)(*datalen),0); sockfd 905 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c pfds[j].fd = span->channels[i]->sockfd; sockfd 925 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_txsig_offhook(ftdmchan->sockfd,&tdm_api); sockfd 934 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_txsig_start(ftdmchan->sockfd,&tdm_api); sockfd 1001 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c if ((err = sangoma_tdm_get_fe_alarms(ftdmchan->sockfd, &tdm_api, &alarms))) { sockfd 1007 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c if ((err = sangoma_tdm_get_fe_alarms(ftdmchan->sockfd, &tdm_api)) < 0){ sockfd 1075 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_tdm_txsig_onhook(ftdmchan->sockfd,&tdm_api); sockfd 1087 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_read_event(ftdmchan->sockfd, &tdm_api); sockfd 1136 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_txsig_onhook(ftdmchan->sockfd,&tdm_api); sockfd 1227 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c if (ftdmchan->sockfd != FTDM_INVALID_SOCKET) { sockfd 1236 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_enable_dtmf_events(ftdmchan->sockfd, &tdm_api); sockfd 1241 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_close(&ftdmchan->sockfd); sockfd 262 src/ftmod/ftmod_zt/ftmod_zt.c ftdm_socket_t sockfd = ZT_INVALID_SOCKET; sockfd 265 src/ftmod/ftmod_zt/ftmod_zt.c sockfd = open(chanpath, O_RDWR); sockfd 266 src/ftmod/ftmod_zt/ftmod_zt.c if (sockfd != ZT_INVALID_SOCKET && ftdm_span_add_channel(span, sockfd, type, &ftdmchan) == FTDM_SUCCESS) { sockfd 268 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(sockfd, codes.SPECIFY, &x)) { sockfd 269 src/ftmod/ftmod_zt/ftmod_zt.c ftdm_log(FTDM_LOG_ERROR, "failure configuring device %s chan %d fd %d (%s)\n", chanpath, x, sockfd, strerror(errno)); sockfd 270 src/ftmod/ftmod_zt/ftmod_zt.c close(sockfd); sockfd 281 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(sockfd, codes.SET_BUFINFO, &binfo)) { sockfd 282 src/ftmod/ftmod_zt/ftmod_zt.c ftdm_log(FTDM_LOG_ERROR, "failure configuring device %s as FreeTDM device %d:%d fd:%d\n", chanpath, ftdmchan->span_id, ftdmchan->chan_id, sockfd); sockfd 283 src/ftmod/ftmod_zt/ftmod_zt.c close(sockfd); sockfd 344 src/ftmod/ftmod_zt/ftmod_zt.c ftdm_log(FTDM_LOG_ERROR, "failure configuring device %s as FreeTDM device %d:%d fd:%d err:%s", chanpath, ftdmchan->span_id, ftdmchan->chan_id, sockfd, strerror(errno)); sockfd 345 src/ftmod/ftmod_zt/ftmod_zt.c close(sockfd); sockfd 352 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.SET_BLOCKSIZE, &len)) { sockfd 354 src/ftmod/ftmod_zt/ftmod_zt.c chanpath, ftdmchan->span_id, ftdmchan->chan_id, sockfd, strerror(errno)); sockfd 355 src/ftmod/ftmod_zt/ftmod_zt.c close(sockfd); sockfd 367 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(sockfd, codes.GET_PARAMS, &ztp) < 0) { sockfd 368 src/ftmod/ftmod_zt/ftmod_zt.c ftdm_log(FTDM_LOG_ERROR, "failure configuring device %s as FreeTDM device %d:%d fd:%d\n", chanpath, ftdmchan->span_id, ftdmchan->chan_id, sockfd); sockfd 369 src/ftmod/ftmod_zt/ftmod_zt.c close(sockfd); sockfd 379 src/ftmod/ftmod_zt/ftmod_zt.c ftdm_log(FTDM_LOG_ERROR, "Failure configuring device %s as FreeTDM device %d:%d fd:%d, hardware signaling is not HDLC, fix your Zap/DAHDI configuration!\n", chanpath, ftdmchan->span_id, ftdmchan->chan_id, sockfd); sockfd 380 src/ftmod/ftmod_zt/ftmod_zt.c close(sockfd); sockfd 385 src/ftmod/ftmod_zt/ftmod_zt.c ftdm_log(FTDM_LOG_INFO, "configuring device %s channel %d as FreeTDM device %d:%d fd:%d\n", chanpath, x, ftdmchan->span_id, ftdmchan->chan_id, sockfd); sockfd 413 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(sockfd, codes.SET_PARAMS, &ztp) < 0) { sockfd 414 src/ftmod/ftmod_zt/ftmod_zt.c ftdm_log(FTDM_LOG_ERROR, "failure configuring device %s as FreeTDM device %d:%d fd:%d\n", chanpath, ftdmchan->span_id, ftdmchan->chan_id, sockfd); sockfd 415 src/ftmod/ftmod_zt/ftmod_zt.c close(sockfd); sockfd 598 src/ftmod/ftmod_zt/ftmod_zt.c if ((err = ioctl(ftdmchan->sockfd, codes.SET_BLOCKSIZE, &blocksize))) { sockfd 609 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.AUDIOMODE, &one)) { sockfd 628 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.SETGAINS, &gains) < 0) { sockfd 629 src/ftmod/ftmod_zt/ftmod_zt.c ftdm_log(FTDM_LOG_ERROR, "failure configuring device %s as FreeTDM device %d:%d fd:%d\n", chanpath, ftdmchan->span_id, ftdmchan->chan_id, ftdmchan->sockfd); sockfd 640 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.ECHOCANCEL, &len)) { sockfd 644 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.ECHOTRAIN, &len)) { sockfd 682 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.ECHOCANCEL, &level); sockfd 688 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.ECHOCANCEL, &level); sockfd 695 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.ECHOTRAIN, &level); sockfd 701 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.ECHOTRAIN, &level); sockfd 708 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.HOOK, &command)) { sockfd 718 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.HOOK, &command)) { sockfd 728 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.HOOK, &command)) { sockfd 737 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.HOOK, &command)) { sockfd 746 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.HOOK, &command)) { sockfd 756 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.HOOK, &command)) { sockfd 766 src/ftmod/ftmod_zt/ftmod_zt.c if (!(err = ioctl(ftdmchan->sockfd, codes.GET_BLOCKSIZE, &ftdmchan->packet_len))) { sockfd 780 src/ftmod/ftmod_zt/ftmod_zt.c if (!(err = ioctl(ftdmchan->sockfd, codes.SET_BLOCKSIZE, &len))) { sockfd 793 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.SETTXBITS, &bits); sockfd 798 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.GETRXBITS, &ftdmchan->rx_cas_bits); sockfd 807 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.FLUSH, &flushmode); sockfd 813 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.FLUSH, &flushmode); sockfd 819 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.FLUSH, &flushmode); sockfd 886 src/ftmod/ftmod_zt/ftmod_zt.c pfds[0].fd = ftdmchan->sockfd; sockfd 940 src/ftmod/ftmod_zt/ftmod_zt.c pfds[j].fd = span->channels[i]->sockfd; sockfd 983 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(span->channels[i]->sockfd, codes.GETEVENT, &zt_event_id) == -1) { sockfd 1044 src/ftmod/ftmod_zt/ftmod_zt.c int err = ioctl(span->channels[i]->sockfd, codes.GETRXBITS, &bits); sockfd 1085 src/ftmod/ftmod_zt/ftmod_zt.c if ((r = read(ftdmchan->sockfd, data, *datalen)) > 0) { sockfd 1122 src/ftmod/ftmod_zt/ftmod_zt.c w = write(ftdmchan->sockfd, data, bytes); sockfd 1139 src/ftmod/ftmod_zt/ftmod_zt.c close(ftdmchan->sockfd); sockfd 1140 src/ftmod/ftmod_zt/ftmod_zt.c ftdmchan->sockfd = ZT_INVALID_SOCKET; sockfd 874 src/include/freetdm.h FT_DECLARE(ftdm_status_t) ftdm_span_add_channel(ftdm_span_t *span, ftdm_socket_t sockfd, ftdm_chan_type_t type, ftdm_channel_t **chan); sockfd 379 src/include/private/ftdm_core.h ftdm_socket_t sockfd; sockfd 142 src/sangoma_pri.c if ((spri->pri = pri_new_cb(spri->zdchan->sockfd, node, swtype, __pri_sangoma_read, __pri_sangoma_write, spri))){