sockfd 611 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 615 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 990 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 1021 src/ftdm_io.c new_chan->sockfd = sockfd; sockfd 186 src/ftmod/ftmod_libpri/lpwrap_pri.c if ((spri->pri = pri_new_cb(spri->dchan->sockfd, node, swtype, __pri_lpwrap_read, __pri_lpwrap_write, spri))) { sockfd 217 src/ftmod/ftmod_libpri/lpwrap_pri.c if ((spri->pri = pri_new_bri_cb(spri->dchan->sockfd, ptp, node, swtype, __pri_lpwrap_read, __pri_lpwrap_write, spri))) { sockfd 679 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 686 src/ftmod/ftmod_pritap/ftmod_pritap.c dpoll.fd = pritap->dchan->sockfd; sockfd 226 src/ftmod/ftmod_sangoma_isdn/ftmod_sangoma_isdn_stack_cfg.c cfg.t.cfg.s.l1PSAP.sockfd = (int32_t)signal_data->dchan->sockfd; sockfd 145 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c pfds[0].fd = ftdmchan->sockfd; sockfd 231 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c ftdm_socket_t sockfd = FTDM_INVALID_SOCKET; sockfd 235 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sockfd = __tdmv_api_open_span_chan(spanno, x); sockfd 240 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sockfd = tdmv_api_open_span_chan(spanno, x); sockfd 243 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c if (sockfd == FTDM_INVALID_SOCKET) { sockfd 248 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c if (ftdm_span_add_channel(span, sockfd, type, &chan) == FTDM_SUCCESS) { sockfd 256 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangstatus = sangoma_wait_obj_create(&sangoma_wait_obj, sockfd, SANGOMA_DEVICE_WAIT_OBJ_SIG); sockfd 276 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_get_hw_coding(chan->sockfd, &tdm_api); sockfd 284 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_get_hw_dtmf(chan->sockfd, &tdm_api); sockfd 290 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_get_hw_ec(chan->sockfd, &tdm_api); sockfd 296 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_get_hwec_persist_status(chan->sockfd, &tdm_api); sockfd 312 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c if (sangoma_tdm_disable_ring_trip_detect_events(chan->sockfd, &tdm_api)) { sockfd 322 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c int err=sangoma_set_rm_rxflashtime(chan->sockfd, &tdm_api, wp_globals.flash_ms); sockfd 333 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 338 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c if (sangoma_tdm_enable_rbs_events(chan->sockfd, &tdm_api, 100)) { sockfd 339 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 342 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_flush_bufs(chan->sockfd, &tdm_api); sockfd 343 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_flush_event_bufs(chan->sockfd, &tdm_api); sockfd 351 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c if (sangoma_tdm_enable_rbs_events(chan->sockfd, &tdm_api, 100)) { sockfd 352 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 355 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_tdm_flush_bufs(chan->sockfd, &tdm_api); sockfd 356 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_tdm_write_rbs(chan->sockfd,&tdm_api, wanpipe_swap_bits(cas_bits)); sockfd 368 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c ftdm_log_chan(chan, FTDM_LOG_INFO, "Configured wanpipe device fd:%d DTMF: %s\n", sockfd, dtmf); sockfd 522 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_tdm_flush_bufs(ftdmchan->sockfd, &tdm_api); sockfd 523 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_flush_stats(ftdmchan->sockfd, &tdm_api); sockfd 531 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_tdm_set_usr_period(ftdmchan->sockfd, &tdm_api, wp_globals.codec_ms); sockfd 573 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_txsig_offhook(ftdmchan->sockfd,&tdm_api); sockfd 583 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_txsig_onhook(ftdmchan->sockfd,&tdm_api); sockfd 593 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_txsig_start(ftdmchan->sockfd,&tdm_api); sockfd 605 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_txsig_offhook(ftdmchan->sockfd,&tdm_api); sockfd 616 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_get_usr_period(ftdmchan->sockfd, &tdm_api); sockfd 626 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_get_hwec_chan_status(ftdmchan->sockfd, &tdm_api); sockfd 633 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_enable_hwec(ftdmchan->sockfd, &tdm_api); sockfd 643 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_get_hwec_chan_status(ftdmchan->sockfd, &tdm_api); sockfd 649 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_disable_hwec(ftdmchan->sockfd, &tdm_api); sockfd 659 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_enable_dtmf_events(ftdmchan->sockfd, &tdm_api); sockfd 674 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_disable_dtmf_events(ftdmchan->sockfd, &tdm_api); sockfd 689 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_enable_loop(ftdmchan->sockfd, &tdm_api); sockfd 700 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_disable_loop(ftdmchan->sockfd, &tdm_api); sockfd 710 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_set_usr_period(ftdmchan->sockfd, &tdm_api, FTDM_COMMAND_OBJ_INT); sockfd 717 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 719 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_write_rbs(ftdmchan->sockfd, &tdm_api, wanpipe_swap_bits(FTDM_COMMAND_OBJ_INT)); sockfd 727 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_read_rbs(ftdmchan->sockfd, &tdm_api, ftdmchan->physical_chan_id, &rbsbits); sockfd 741 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_set_fe_status(ftdmchan->sockfd, &tdm_api, sangoma_status); sockfd 747 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_get_fe_status(ftdmchan->sockfd, &tdm_api, &sangoma_status); sockfd 755 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_flush_bufs(ftdmchan->sockfd, &tdm_api); sockfd 760 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_flush_rx_bufs(ftdmchan->sockfd, &tdm_api); sockfd 765 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_flush_tx_bufs(ftdmchan->sockfd, &tdm_api); sockfd 770 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_flush_stats(ftdmchan->sockfd, &tdm_api); sockfd 777 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_set_rx_queue_sz(ftdmchan->sockfd, &tdm_api, queue_size); sockfd 783 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_set_tx_queue_sz(ftdmchan->sockfd, &tdm_api, queue_size); sockfd 789 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_set_polarity(ftdmchan->sockfd, &tdm_api, polarity); sockfd 922 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c rx_len = sangoma_readmsg_tdm(ftdmchan->sockfd, &hdrframe, (int)sizeof(hdrframe), data, (int)*datalen, 0); sockfd 966 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_flush_tx_bufs(ftdmchan->sockfd, &tdm_api); sockfd 972 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c bsent = sangoma_writemsg_tdm(ftdmchan->sockfd, &hdrframe, (int)sizeof(hdrframe), data, (unsigned short)(*datalen),0); sockfd 1089 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c pfds[j].fd = span->channels[i]->sockfd; sockfd 1109 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_txsig_offhook(ftdmchan->sockfd,&tdm_api); sockfd 1118 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err=sangoma_tdm_txsig_start(ftdmchan->sockfd,&tdm_api); sockfd 1185 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c if ((err = sangoma_tdm_get_fe_alarms(ftdmchan->sockfd, &tdm_api, &alarms))) { sockfd 1191 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c if ((err = sangoma_tdm_get_fe_alarms(ftdmchan->sockfd, &tdm_api)) < 0){ sockfd 1293 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c status = sangoma_tdm_txsig_onhook(fchan->sockfd, &onhook_tdm_api); sockfd 1385 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c status = sangoma_tdm_read_event(ftdmchan->sockfd, &tdm_api); sockfd 1449 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_tdm_txsig_onhook(ftdmchan->sockfd,&tdm_api); sockfd 1463 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_read_event(ftdmchan->sockfd, &tdm_api); sockfd 1511 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c if (ftdmchan->sockfd != FTDM_INVALID_SOCKET) { sockfd 1520 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c err = sangoma_tdm_enable_dtmf_events(ftdmchan->sockfd, &tdm_api); sockfd 1525 src/ftmod/ftmod_wanpipe/ftmod_wanpipe.c sangoma_close(&ftdmchan->sockfd); sockfd 273 src/ftmod/ftmod_zt/ftmod_zt.c ftdm_socket_t sockfd = ZT_INVALID_SOCKET; sockfd 276 src/ftmod/ftmod_zt/ftmod_zt.c sockfd = open(chanpath, O_RDWR); sockfd 277 src/ftmod/ftmod_zt/ftmod_zt.c if (sockfd != ZT_INVALID_SOCKET && ftdm_span_add_channel(span, sockfd, type, &ftdmchan) == FTDM_SUCCESS) { sockfd 279 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(sockfd, codes.SPECIFY, &x)) { sockfd 280 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 281 src/ftmod/ftmod_zt/ftmod_zt.c close(sockfd); sockfd 292 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(sockfd, codes.SET_BUFINFO, &binfo)) { sockfd 293 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 294 src/ftmod/ftmod_zt/ftmod_zt.c close(sockfd); sockfd 355 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 356 src/ftmod/ftmod_zt/ftmod_zt.c close(sockfd); sockfd 363 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.SET_BLOCKSIZE, &len)) { sockfd 365 src/ftmod/ftmod_zt/ftmod_zt.c chanpath, ftdmchan->span_id, ftdmchan->chan_id, sockfd, strerror(errno)); sockfd 366 src/ftmod/ftmod_zt/ftmod_zt.c close(sockfd); sockfd 378 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(sockfd, codes.GET_PARAMS, &ztp) < 0) { 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\n", chanpath, ftdmchan->span_id, ftdmchan->chan_id, sockfd); sockfd 380 src/ftmod/ftmod_zt/ftmod_zt.c close(sockfd); sockfd 390 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 391 src/ftmod/ftmod_zt/ftmod_zt.c close(sockfd); sockfd 396 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 424 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(sockfd, codes.SET_PARAMS, &ztp) < 0) { sockfd 425 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 426 src/ftmod/ftmod_zt/ftmod_zt.c close(sockfd); sockfd 609 src/ftmod/ftmod_zt/ftmod_zt.c if ((err = ioctl(ftdmchan->sockfd, codes.SET_BLOCKSIZE, &blocksize))) { sockfd 620 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.AUDIOMODE, &one)) { sockfd 639 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.SETGAINS, &gains) < 0) { sockfd 640 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 651 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.ECHOCANCEL, &len)) { sockfd 655 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.ECHOTRAIN, &len)) { sockfd 674 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.AUDIOMODE, &value)) { sockfd 701 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.ECHOCANCEL, &level); sockfd 707 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.ECHOCANCEL, &level); sockfd 714 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.ECHOTRAIN, &level); sockfd 720 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.ECHOTRAIN, &level); sockfd 727 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 747 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 765 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.HOOK, &command)) { sockfd 775 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.HOOK, &command)) { sockfd 785 src/ftmod/ftmod_zt/ftmod_zt.c if (!(err = ioctl(ftdmchan->sockfd, codes.GET_BLOCKSIZE, &ftdmchan->packet_len))) { sockfd 799 src/ftmod/ftmod_zt/ftmod_zt.c if (!(err = ioctl(ftdmchan->sockfd, codes.SET_BLOCKSIZE, &len))) { sockfd 812 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.SETTXBITS, &bits); sockfd 817 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.GETRXBITS, &ftdmchan->rx_cas_bits); sockfd 826 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.FLUSH, &flushmode); sockfd 832 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.FLUSH, &flushmode); sockfd 838 src/ftmod/ftmod_zt/ftmod_zt.c err = ioctl(ftdmchan->sockfd, codes.FLUSH, &flushmode); sockfd 905 src/ftmod/ftmod_zt/ftmod_zt.c pfds[0].fd = ftdmchan->sockfd; sockfd 966 src/ftmod/ftmod_zt/ftmod_zt.c pfds[j].fd = span->channels[i]->sockfd; sockfd 1060 src/ftmod/ftmod_zt/ftmod_zt.c int err = ioctl(fchan->sockfd, codes.GETRXBITS, &bits); sockfd 1099 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.GETEVENT, &zt_event_id) == -1) { sockfd 1134 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(fchan->sockfd, codes.GETEVENT, &zt_event_id) == -1) { sockfd 1172 src/ftmod/ftmod_zt/ftmod_zt.c if ((r = read(ftdmchan->sockfd, data, *datalen)) > 0) { sockfd 1219 src/ftmod/ftmod_zt/ftmod_zt.c w = write(ftdmchan->sockfd, data, bytes); sockfd 1228 src/ftmod/ftmod_zt/ftmod_zt.c if (ioctl(ftdmchan->sockfd, codes.GETEVENT, &zt_event_id) == -1) { sockfd 1247 src/ftmod/ftmod_zt/ftmod_zt.c close(ftdmchan->sockfd); sockfd 1248 src/ftmod/ftmod_zt/ftmod_zt.c ftdmchan->sockfd = ZT_INVALID_SOCKET; sockfd 1166 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 395 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))){