# TALK\_DETECT does not work

**URL:** <https://community.asterisk.org/t/talk-detect-does-not-work/93975>\
**Category:** Asterisk Dialplan\
**Created:** [September 6, 2022, 9:12am UTC](https://community.asterisk.org/t/talk-detect-does-not-work/93975 "2022-09-06T09:12:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nasittide](https://avatars.discourse-cdn.com/v4/letter/n/2acd7d/32.png) [@nasittide](https://community.asterisk.org/u/nasittide)\
**Post date:** [September 6, 2022, 9:12am UTC](https://community.asterisk.org/t/talk-detect-does-not-work/93975/1 "2022-09-06T09:12:30Z")

</div>

Hi,

I use TALK\_DETECT to detect sound on channel but it’s detected just source, but it’s not detected at destination

extensions.conf  
exten =\> \_0X.,1,Answer()  
same =\> n,Set(DENOISE(rx)=on)  
same =\> n,Set(TALK\_DETECT(set)=)

same =\> n,Dial(PJSIP/${EXTEN}@trunk,10,g)

if a call to b  
output from CLI  
PJSIP/(a-endpoint) is now talking  
PJSIP/(a-endpoint) is now silent

I need to detect silent or talking from destination(b). please help thanks.

---

<div class="post-metadata">

**Author:** ![jcolp](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/jcolp/32/8848_2.png) [@jcolp](https://community.asterisk.org/u/jcolp)\
**Post date:** [September 6, 2022, 9:24am UTC](https://community.asterisk.org/t/talk-detect-does-not-work/93975/2 "2022-09-06T09:24:31Z")

</div>

TALK\_DETECT runs on the channel it is placed on. If you want to place it on the outgoing side, then you would use a pre-dial handler[1] to set it there.

[1] [Pre-Dial Handlers - Asterisk Project - Asterisk Project Wiki](https://wiki.asterisk.org/wiki/display/AST/Pre-Dial+Handlers)

---

<div class="post-metadata">

**Author:** ![nasittide](https://avatars.discourse-cdn.com/v4/letter/n/2acd7d/32.png) [@nasittide](https://community.asterisk.org/u/nasittide)\
**Post date:** [September 6, 2022, 9:44am UTC](https://community.asterisk.org/t/talk-detect-does-not-work/93975/3 "2022-09-06T09:44:12Z")

</div>

many thanks. I can solve this problem.

I need to share some of my implement below  
I set it to

extensions  
[outgoing-calls]  
exten =\> \_0X.,1,Answer()  
same =\> n,Dial(PJSIP/${EXTEN}@trunk,10,gb(outgoing-calls,predial,1))

exten =\> predial,1,NoOP()  
same =\> n,Set(DENOISE(rx)=on)  
same =\> n,Set(TALK\_DETECT(set)=)  
same =\> n,Return()

it get  
PJSIP/(b-endpoint) is now talking  
PJSIP/(b-endpoint) is now silent

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [October 6, 2022, 9:44am UTC](https://community.asterisk.org/t/talk-detect-does-not-work/93975/4 "2022-10-06T09:44:26Z")

</div>

Closed on October 6, 2022, 9:44am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
