tech_pvt 262 mod_freetdm/mod_freetdm.c private_t *tech_pvt; tech_pvt 269 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 275 mod_freetdm/mod_freetdm.c if (switch_test_flag(tech_pvt, TFLAG_HOLD)) { tech_pvt 277 mod_freetdm/mod_freetdm.c switch_clear_flag_locked(tech_pvt, TFLAG_HOLD); tech_pvt 280 mod_freetdm/mod_freetdm.c switch_set_flag_locked(tech_pvt, TFLAG_HOLD); tech_pvt 284 mod_freetdm/mod_freetdm.c switch_set_flag_locked(tech_pvt, TFLAG_HOLD); tech_pvt 287 mod_freetdm/mod_freetdm.c switch_clear_flag_locked(tech_pvt, TFLAG_HOLD); tech_pvt 300 mod_freetdm/mod_freetdm.c static switch_status_t tech_init(private_t *tech_pvt, switch_core_session_t *session, ftdm_channel_t *ftdmchan) tech_pvt 306 mod_freetdm/mod_freetdm.c tech_pvt->ftdmchan = ftdmchan; tech_pvt 307 mod_freetdm/mod_freetdm.c tech_pvt->read_frame.data = tech_pvt->databuf; tech_pvt 308 mod_freetdm/mod_freetdm.c tech_pvt->read_frame.buflen = sizeof(tech_pvt->databuf); tech_pvt 309 mod_freetdm/mod_freetdm.c tech_pvt->cng_frame.data = tech_pvt->cng_databuf; tech_pvt 310 mod_freetdm/mod_freetdm.c tech_pvt->cng_frame.buflen = sizeof(tech_pvt->cng_databuf); tech_pvt 311 mod_freetdm/mod_freetdm.c tech_pvt->cng_frame.flags = SFF_CNG; tech_pvt 312 mod_freetdm/mod_freetdm.c tech_pvt->cng_frame.codec = &tech_pvt->read_codec; tech_pvt 313 mod_freetdm/mod_freetdm.c memset(tech_pvt->cng_frame.data, 255, tech_pvt->cng_frame.buflen); tech_pvt 314 mod_freetdm/mod_freetdm.c switch_mutex_init(&tech_pvt->mutex, SWITCH_MUTEX_NESTED, switch_core_session_get_pool(session)); tech_pvt 315 mod_freetdm/mod_freetdm.c switch_mutex_init(&tech_pvt->flag_mutex, SWITCH_MUTEX_NESTED, switch_core_session_get_pool(session)); tech_pvt 316 mod_freetdm/mod_freetdm.c switch_core_session_set_private(session, tech_pvt); tech_pvt 317 mod_freetdm/mod_freetdm.c tech_pvt->session = session; tech_pvt 353 mod_freetdm/mod_freetdm.c if (switch_core_codec_init(&tech_pvt->read_codec, tech_pvt 360 mod_freetdm/mod_freetdm.c NULL, switch_core_session_get_pool(tech_pvt->session)) != SWITCH_STATUS_SUCCESS) { tech_pvt 364 mod_freetdm/mod_freetdm.c if (switch_core_codec_init(&tech_pvt->write_codec, tech_pvt 371 mod_freetdm/mod_freetdm.c NULL, switch_core_session_get_pool(tech_pvt->session)) != SWITCH_STATUS_SUCCESS) { tech_pvt 373 mod_freetdm/mod_freetdm.c switch_core_codec_destroy(&tech_pvt->read_codec); tech_pvt 379 mod_freetdm/mod_freetdm.c switch_core_session_set_read_codec(tech_pvt->session, &tech_pvt->read_codec); tech_pvt 380 mod_freetdm/mod_freetdm.c switch_core_session_set_write_codec(tech_pvt->session, &tech_pvt->write_codec); tech_pvt 381 mod_freetdm/mod_freetdm.c switch_set_flag_locked(tech_pvt, TFLAG_CODEC); tech_pvt 382 mod_freetdm/mod_freetdm.c tech_pvt->read_frame.codec = &tech_pvt->read_codec; tech_pvt 383 mod_freetdm/mod_freetdm.c switch_set_flag_locked(tech_pvt, TFLAG_IO); tech_pvt 392 mod_freetdm/mod_freetdm.c private_t *tech_pvt = NULL; tech_pvt 394 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 395 mod_freetdm/mod_freetdm.c assert(tech_pvt != NULL); tech_pvt 400 mod_freetdm/mod_freetdm.c if (switch_test_flag(tech_pvt, TFLAG_DEAD)) { tech_pvt 411 mod_freetdm/mod_freetdm.c ftdm_channel_init(tech_pvt->ftdmchan); tech_pvt 421 mod_freetdm/mod_freetdm.c private_t *tech_pvt = NULL; tech_pvt 426 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 427 mod_freetdm/mod_freetdm.c switch_assert(tech_pvt != NULL); tech_pvt 429 mod_freetdm/mod_freetdm.c switch_assert(tech_pvt->ftdmchan != NULL); tech_pvt 434 mod_freetdm/mod_freetdm.c ftdm_channel_call_indicate(tech_pvt->ftdmchan, FTDM_CHANNEL_INDICATE_PROCEED); tech_pvt 443 mod_freetdm/mod_freetdm.c private_t *tech_pvt = NULL; tech_pvt 448 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 449 mod_freetdm/mod_freetdm.c switch_assert(tech_pvt != NULL); tech_pvt 459 mod_freetdm/mod_freetdm.c private_t *tech_pvt = NULL; tech_pvt 461 mod_freetdm/mod_freetdm.c if ((tech_pvt = switch_core_session_get_private(session))) { tech_pvt 463 mod_freetdm/mod_freetdm.c if (tech_pvt->read_codec.implementation) { tech_pvt 464 mod_freetdm/mod_freetdm.c switch_core_codec_destroy(&tech_pvt->read_codec); tech_pvt 467 mod_freetdm/mod_freetdm.c if (tech_pvt->write_codec.implementation) { tech_pvt 468 mod_freetdm/mod_freetdm.c switch_core_codec_destroy(&tech_pvt->write_codec); tech_pvt 478 mod_freetdm/mod_freetdm.c private_t *tech_pvt = NULL; tech_pvt 485 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 486 mod_freetdm/mod_freetdm.c assert(tech_pvt != NULL); tech_pvt 488 mod_freetdm/mod_freetdm.c if (!tech_pvt->ftdmchan) { tech_pvt 492 mod_freetdm/mod_freetdm.c ftdm_channel_clear_token(tech_pvt->ftdmchan, switch_core_session_get_uuid(session)); tech_pvt 494 mod_freetdm/mod_freetdm.c chantype = ftdm_channel_get_type(tech_pvt->ftdmchan); tech_pvt 500 mod_freetdm/mod_freetdm.c ftdm_channel_call_hangup(tech_pvt->ftdmchan); tech_pvt 505 mod_freetdm/mod_freetdm.c if (!ftdm_channel_call_check_busy(tech_pvt->ftdmchan) && !ftdm_channel_call_check_done(tech_pvt->ftdmchan)) { tech_pvt 506 mod_freetdm/mod_freetdm.c tokencnt = ftdm_channel_get_token_count(tech_pvt->ftdmchan); tech_pvt 508 mod_freetdm/mod_freetdm.c cycle_foreground(tech_pvt->ftdmchan, 0, NULL); tech_pvt 510 mod_freetdm/mod_freetdm.c ftdm_channel_call_hangup(tech_pvt->ftdmchan); tech_pvt 521 mod_freetdm/mod_freetdm.c ftdm_channel_call_hangup_with_cause(tech_pvt->ftdmchan, hcause); tech_pvt 534 mod_freetdm/mod_freetdm.c switch_clear_flag_locked(tech_pvt, TFLAG_IO); tech_pvt 550 mod_freetdm/mod_freetdm.c private_t *tech_pvt = NULL; tech_pvt 555 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 556 mod_freetdm/mod_freetdm.c assert(tech_pvt != NULL); tech_pvt 560 mod_freetdm/mod_freetdm.c switch_clear_flag_locked(tech_pvt, TFLAG_IO); tech_pvt 561 mod_freetdm/mod_freetdm.c switch_set_flag_locked(tech_pvt, TFLAG_DEAD); tech_pvt 564 mod_freetdm/mod_freetdm.c switch_set_flag_locked(tech_pvt, TFLAG_BREAK); tech_pvt 587 mod_freetdm/mod_freetdm.c private_t *tech_pvt = NULL; tech_pvt 590 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 591 mod_freetdm/mod_freetdm.c assert(tech_pvt != NULL); tech_pvt 593 mod_freetdm/mod_freetdm.c if (switch_test_flag(tech_pvt, TFLAG_DEAD)) { tech_pvt 599 mod_freetdm/mod_freetdm.c ftdm_channel_command(tech_pvt->ftdmchan, FTDM_COMMAND_SEND_DTMF, tmp); tech_pvt 607 mod_freetdm/mod_freetdm.c private_t *tech_pvt = NULL; tech_pvt 620 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 621 mod_freetdm/mod_freetdm.c assert(tech_pvt != NULL); tech_pvt 623 mod_freetdm/mod_freetdm.c if (switch_test_flag(tech_pvt, TFLAG_DEAD)) { tech_pvt 631 mod_freetdm/mod_freetdm.c chunk = ftdm_channel_get_io_interval(tech_pvt->ftdmchan) * 2; tech_pvt 640 mod_freetdm/mod_freetdm.c if (switch_test_flag(tech_pvt, TFLAG_BREAK)) { tech_pvt 641 mod_freetdm/mod_freetdm.c switch_clear_flag_locked(tech_pvt, TFLAG_BREAK); tech_pvt 645 mod_freetdm/mod_freetdm.c if (switch_test_flag(tech_pvt, TFLAG_HOLD) || do_break) { tech_pvt 646 mod_freetdm/mod_freetdm.c switch_yield(ftdm_channel_get_io_interval(tech_pvt->ftdmchan) * 1000); tech_pvt 647 mod_freetdm/mod_freetdm.c tech_pvt->cng_frame.datalen = ftdm_channel_get_io_packet_len(tech_pvt->ftdmchan); tech_pvt 648 mod_freetdm/mod_freetdm.c tech_pvt->cng_frame.samples = tech_pvt->cng_frame.datalen; tech_pvt 649 mod_freetdm/mod_freetdm.c tech_pvt->cng_frame.flags = SFF_CNG; tech_pvt 650 mod_freetdm/mod_freetdm.c *frame = &tech_pvt->cng_frame; tech_pvt 651 mod_freetdm/mod_freetdm.c if (ftdm_channel_get_codec(tech_pvt->ftdmchan) == FTDM_CODEC_SLIN) { tech_pvt 652 mod_freetdm/mod_freetdm.c tech_pvt->cng_frame.samples /= 2; tech_pvt 657 mod_freetdm/mod_freetdm.c if (!switch_test_flag(tech_pvt, TFLAG_IO)) { tech_pvt 663 mod_freetdm/mod_freetdm.c status = ftdm_channel_wait(tech_pvt->ftdmchan, &wflags, chunk); tech_pvt 671 mod_freetdm/mod_freetdm.c if (!switch_test_flag(tech_pvt, TFLAG_HOLD)) { tech_pvt 685 mod_freetdm/mod_freetdm.c len = tech_pvt->read_frame.buflen; tech_pvt 686 mod_freetdm/mod_freetdm.c if (ftdm_channel_read(tech_pvt->ftdmchan, tech_pvt->read_frame.data, &len) != FTDM_SUCCESS) { tech_pvt 691 mod_freetdm/mod_freetdm.c *frame = &tech_pvt->read_frame; tech_pvt 692 mod_freetdm/mod_freetdm.c tech_pvt->read_frame.datalen = (uint32_t)len; tech_pvt 693 mod_freetdm/mod_freetdm.c tech_pvt->read_frame.samples = tech_pvt->read_frame.datalen; tech_pvt 695 mod_freetdm/mod_freetdm.c if (ftdm_channel_get_codec(tech_pvt->ftdmchan) == FTDM_CODEC_SLIN) { tech_pvt 696 mod_freetdm/mod_freetdm.c tech_pvt->read_frame.samples /= 2; tech_pvt 699 mod_freetdm/mod_freetdm.c while (ftdm_channel_dequeue_dtmf(tech_pvt->ftdmchan, dtmf, sizeof(dtmf))) { tech_pvt 713 mod_freetdm/mod_freetdm.c switch_clear_flag_locked(tech_pvt, TFLAG_IO); tech_pvt 722 mod_freetdm/mod_freetdm.c private_t *tech_pvt = NULL; tech_pvt 731 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 732 mod_freetdm/mod_freetdm.c assert(tech_pvt != NULL); tech_pvt 734 mod_freetdm/mod_freetdm.c if (!tech_pvt->ftdmchan) { tech_pvt 738 mod_freetdm/mod_freetdm.c if (switch_test_flag(tech_pvt, TFLAG_DEAD)) { tech_pvt 742 mod_freetdm/mod_freetdm.c if (switch_test_flag(tech_pvt, TFLAG_HOLD)) { tech_pvt 746 mod_freetdm/mod_freetdm.c if (!switch_test_flag(tech_pvt, TFLAG_IO)) { tech_pvt 753 mod_freetdm/mod_freetdm.c if ((frame->datalen = tech_pvt->write_codec.implementation->encoded_bytes_per_packet) > frame->buflen) { tech_pvt 761 mod_freetdm/mod_freetdm.c status = ftdm_channel_wait(tech_pvt->ftdmchan, &wflags, ftdm_channel_get_io_interval(tech_pvt->ftdmchan) * 10); tech_pvt 769 mod_freetdm/mod_freetdm.c if (ftdm_channel_write(tech_pvt->ftdmchan, frame->data, frame->buflen, &len) != FTDM_SUCCESS) { tech_pvt 770 mod_freetdm/mod_freetdm.c if (++tech_pvt->wr_error > 10) { tech_pvt 775 mod_freetdm/mod_freetdm.c tech_pvt->wr_error = 0; tech_pvt 782 mod_freetdm/mod_freetdm.c switch_clear_flag_locked(tech_pvt, TFLAG_IO); tech_pvt 790 mod_freetdm/mod_freetdm.c private_t *tech_pvt; tech_pvt 796 mod_freetdm/mod_freetdm.c tech_pvt = (private_t *) switch_core_session_get_private(session); tech_pvt 797 mod_freetdm/mod_freetdm.c assert(tech_pvt != NULL); tech_pvt 799 mod_freetdm/mod_freetdm.c if (switch_test_flag(tech_pvt, TFLAG_DEAD)) { tech_pvt 804 mod_freetdm/mod_freetdm.c phy_id = ftdm_channel_get_ph_id(tech_pvt->ftdmchan); tech_pvt 814 mod_freetdm/mod_freetdm.c ftdm_channel_call_indicate(tech_pvt->ftdmchan, FTDM_CHANNEL_INDICATE_PROGRESS); tech_pvt 819 mod_freetdm/mod_freetdm.c ftdm_channel_call_indicate(tech_pvt->ftdmchan, FTDM_CHANNEL_INDICATE_PROGRESS_MEDIA); tech_pvt 824 mod_freetdm/mod_freetdm.c ftdm_channel_call_answer(tech_pvt->ftdmchan); tech_pvt 837 mod_freetdm/mod_freetdm.c private_t *tech_pvt; tech_pvt 842 mod_freetdm/mod_freetdm.c tech_pvt = (private_t *) switch_core_session_get_private(session); tech_pvt 843 mod_freetdm/mod_freetdm.c assert(tech_pvt != NULL); tech_pvt 845 mod_freetdm/mod_freetdm.c if (switch_test_flag(tech_pvt, TFLAG_DEAD)) { tech_pvt 850 mod_freetdm/mod_freetdm.c if (ftdm_channel_call_check_hangup(tech_pvt->ftdmchan)) { tech_pvt 861 mod_freetdm/mod_freetdm.c ftdm_channel_call_indicate(tech_pvt->ftdmchan, FTDM_CHANNEL_INDICATE_RINGING); tech_pvt 866 mod_freetdm/mod_freetdm.c ftdm_channel_call_indicate(tech_pvt->ftdmchan, FTDM_CHANNEL_INDICATE_PROGRESS_MEDIA); tech_pvt 871 mod_freetdm/mod_freetdm.c ftdm_channel_call_answer(tech_pvt->ftdmchan); tech_pvt 884 mod_freetdm/mod_freetdm.c private_t *tech_pvt; tech_pvt 889 mod_freetdm/mod_freetdm.c tech_pvt = (private_t *) switch_core_session_get_private(session); tech_pvt 890 mod_freetdm/mod_freetdm.c assert(tech_pvt != NULL); tech_pvt 892 mod_freetdm/mod_freetdm.c if (switch_test_flag(tech_pvt, TFLAG_DEAD)) { tech_pvt 904 mod_freetdm/mod_freetdm.c ftdm_channel_call_answer(tech_pvt->ftdmchan); tech_pvt 916 mod_freetdm/mod_freetdm.c private_t *tech_pvt; tech_pvt 921 mod_freetdm/mod_freetdm.c tech_pvt = (private_t *) switch_core_session_get_private(session); tech_pvt 922 mod_freetdm/mod_freetdm.c assert(tech_pvt != NULL); tech_pvt 924 mod_freetdm/mod_freetdm.c if (switch_test_flag(tech_pvt, TFLAG_DEAD)) { tech_pvt 936 mod_freetdm/mod_freetdm.c ftdm_channel_call_answer(tech_pvt->ftdmchan); tech_pvt 944 mod_freetdm/mod_freetdm.c ftdm_channel_call_indicate(tech_pvt->ftdmchan, FTDM_CHANNEL_INDICATE_RINGING); tech_pvt 957 mod_freetdm/mod_freetdm.c private_t *tech_pvt; tech_pvt 963 mod_freetdm/mod_freetdm.c tech_pvt = (private_t *) switch_core_session_get_private(session); tech_pvt 964 mod_freetdm/mod_freetdm.c assert(tech_pvt != NULL); tech_pvt 968 mod_freetdm/mod_freetdm.c if (switch_test_flag(tech_pvt, TFLAG_DEAD)) { tech_pvt 973 mod_freetdm/mod_freetdm.c if (!(ftdmchan = tech_pvt->ftdmchan)) { tech_pvt 978 mod_freetdm/mod_freetdm.c if (!tech_pvt->ftdmchan) { tech_pvt 990 mod_freetdm/mod_freetdm.c ftdm_channel_command(tech_pvt->ftdmchan, FTDM_COMMAND_SET_PRE_BUFFER_SIZE, &tmp); tech_pvt 994 mod_freetdm/mod_freetdm.c ftdm_channel_command(tech_pvt->ftdmchan, FTDM_COMMAND_DISABLE_DTMF_DETECT, NULL); tech_pvt 1000 mod_freetdm/mod_freetdm.c ftdm_channel_replace_token(tech_pvt->ftdmchan, msg->string_array_arg[0], msg->string_array_arg[1]); tech_pvt 1007 mod_freetdm/mod_freetdm.c switch (ftdm_channel_get_type(tech_pvt->ftdmchan)) { tech_pvt 1079 mod_freetdm/mod_freetdm.c private_t *tech_pvt; tech_pvt 1103 mod_freetdm/mod_freetdm.c tech_init(hdata->tech_pvt, hdata->new_session, fchan); tech_pvt 1113 mod_freetdm/mod_freetdm.c hdata->tech_pvt->caller_profile = hdata->caller_profile; tech_pvt 1398 mod_freetdm/mod_freetdm.c private_t *tech_pvt; tech_pvt 1402 mod_freetdm/mod_freetdm.c if (!(tech_pvt = (private_t *) switch_core_session_alloc(*new_session, sizeof(private_t)))) { tech_pvt 1417 mod_freetdm/mod_freetdm.c hunt_data.tech_pvt = tech_pvt; tech_pvt 1421 mod_freetdm/mod_freetdm.c if (tech_pvt->read_codec.implementation) { tech_pvt 1422 mod_freetdm/mod_freetdm.c switch_core_codec_destroy(&tech_pvt->read_codec); tech_pvt 1425 mod_freetdm/mod_freetdm.c if (tech_pvt->write_codec.implementation) { tech_pvt 1426 mod_freetdm/mod_freetdm.c switch_core_codec_destroy(&tech_pvt->write_codec); tech_pvt 1468 mod_freetdm/mod_freetdm.c private_t *tech_pvt = NULL; tech_pvt 1493 mod_freetdm/mod_freetdm.c tech_pvt = (private_t *) switch_core_session_alloc(session, sizeof(private_t)); tech_pvt 1494 mod_freetdm/mod_freetdm.c assert(tech_pvt != NULL); tech_pvt 1496 mod_freetdm/mod_freetdm.c if (tech_init(tech_pvt, session, sigmsg->channel) != SWITCH_STATUS_SUCCESS) { tech_pvt 1516 mod_freetdm/mod_freetdm.c tech_pvt->caller_profile = switch_caller_profile_new(switch_core_session_get_pool(session), tech_pvt 1529 mod_freetdm/mod_freetdm.c assert(tech_pvt->caller_profile != NULL); tech_pvt 1532 mod_freetdm/mod_freetdm.c switch_set_flag(tech_pvt->caller_profile, SWITCH_CPF_SCREEN); tech_pvt 1535 mod_freetdm/mod_freetdm.c tech_pvt->caller_profile->caller_ton = channel_caller_data->cid_num.type; tech_pvt 1536 mod_freetdm/mod_freetdm.c tech_pvt->caller_profile->caller_numplan = channel_caller_data->cid_num.plan; tech_pvt 1537 mod_freetdm/mod_freetdm.c tech_pvt->caller_profile->ani_ton = channel_caller_data->ani.type; tech_pvt 1538 mod_freetdm/mod_freetdm.c tech_pvt->caller_profile->ani_numplan = channel_caller_data->ani.plan; tech_pvt 1539 mod_freetdm/mod_freetdm.c tech_pvt->caller_profile->destination_number_ton = channel_caller_data->dnis.type; tech_pvt 1540 mod_freetdm/mod_freetdm.c tech_pvt->caller_profile->destination_number_numplan = channel_caller_data->dnis.plan; tech_pvt 1541 mod_freetdm/mod_freetdm.c tech_pvt->caller_profile->rdnis_ton = channel_caller_data->rdnis.type; tech_pvt 1542 mod_freetdm/mod_freetdm.c tech_pvt->caller_profile->rdnis_numplan = channel_caller_data->rdnis.plan; tech_pvt 1545 mod_freetdm/mod_freetdm.c switch_set_flag(tech_pvt->caller_profile, SWITCH_CPF_HIDE_NAME | SWITCH_CPF_HIDE_NUMBER); tech_pvt 1548 mod_freetdm/mod_freetdm.c snprintf(name, sizeof(name), "FreeTDM/%u:%u/%s", spanid, chanid, tech_pvt->caller_profile->destination_number); tech_pvt 1551 mod_freetdm/mod_freetdm.c switch_channel_set_caller_profile(channel, tech_pvt->caller_profile); tech_pvt 1732 mod_freetdm/mod_freetdm.c private_t *tech_pvt = NULL; tech_pvt 1734 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 1735 mod_freetdm/mod_freetdm.c switch_set_flag_locked(tech_pvt, TFLAG_DEAD); tech_pvt 1820 mod_freetdm/mod_freetdm.c private_t *tech_pvt = NULL; tech_pvt 1828 mod_freetdm/mod_freetdm.c private_t *tech_pvt = NULL; tech_pvt 1835 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session_a); tech_pvt 1837 mod_freetdm/mod_freetdm.c switch_clear_flag_locked(tech_pvt, TFLAG_HOLD); tech_pvt 1844 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session_b); tech_pvt 1846 mod_freetdm/mod_freetdm.c switch_clear_flag_locked(tech_pvt, TFLAG_HOLD); tech_pvt 1879 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 1880 mod_freetdm/mod_freetdm.c switch_set_flag_locked(tech_pvt, TFLAG_DEAD); tech_pvt 1909 mod_freetdm/mod_freetdm.c private_t *tech_pvt; tech_pvt 1911 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 1916 mod_freetdm/mod_freetdm.c switch_clear_flag_locked(tech_pvt, TFLAG_HOLD); tech_pvt 2024 mod_freetdm/mod_freetdm.c private_t *tech_pvt = NULL; tech_pvt 2026 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 2027 mod_freetdm/mod_freetdm.c switch_set_flag_locked(tech_pvt, TFLAG_DEAD); tech_pvt 2164 mod_freetdm/mod_freetdm.c private_t *tech_pvt = NULL; tech_pvt 2166 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 2167 mod_freetdm/mod_freetdm.c switch_set_flag_locked(tech_pvt, TFLAG_DEAD); tech_pvt 4104 mod_freetdm/mod_freetdm.c private_t *tech_pvt; tech_pvt 4110 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 4112 mod_freetdm/mod_freetdm.c if (switch_test_flag(tech_pvt, TFLAG_DEAD)) { tech_pvt 4117 mod_freetdm/mod_freetdm.c ftdm_channel_command(tech_pvt->ftdmchan, FTDM_COMMAND_ENABLE_DTMF_DETECT, NULL); tech_pvt 4118 mod_freetdm/mod_freetdm.c ftdm_log(FTDM_LOG_INFO, "DTMF detection enabled in channel %d:%d\n", ftdm_channel_get_id(tech_pvt->ftdmchan), ftdm_channel_get_span_id(tech_pvt->ftdmchan)); tech_pvt 4123 mod_freetdm/mod_freetdm.c private_t *tech_pvt; tech_pvt 4129 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 4131 mod_freetdm/mod_freetdm.c if (switch_test_flag(tech_pvt, TFLAG_DEAD)) { tech_pvt 4136 mod_freetdm/mod_freetdm.c ftdm_channel_command(tech_pvt->ftdmchan, FTDM_COMMAND_DISABLE_DTMF_DETECT, NULL); tech_pvt 4137 mod_freetdm/mod_freetdm.c ftdm_log(FTDM_LOG_INFO, "DTMF detection Disabled in channel %d:%d\n", ftdm_channel_get_id(tech_pvt->ftdmchan), ftdm_channel_get_span_id(tech_pvt->ftdmchan)); tech_pvt 4142 mod_freetdm/mod_freetdm.c private_t *tech_pvt; tech_pvt 4150 mod_freetdm/mod_freetdm.c tech_pvt = switch_core_session_get_private(session); tech_pvt 4152 mod_freetdm/mod_freetdm.c if (switch_test_flag(tech_pvt, TFLAG_DEAD)) { tech_pvt 4157 mod_freetdm/mod_freetdm.c ftdm_channel_command(tech_pvt->ftdmchan, FTDM_COMMAND_DISABLE_ECHOCANCEL, &x); tech_pvt 4158 mod_freetdm/mod_freetdm.c ftdm_channel_command(tech_pvt->ftdmchan, FTDM_COMMAND_DISABLE_ECHOTRAIN, &x);