# Solves this and get $25

**URL:** <https://community.asterisk.org/t/solves-this-and-get-25/23159>\
**Category:** Asterisk Support\
**Created:** [September 22, 2008, 6:23pm UTC](https://community.asterisk.org/t/solves-this-and-get-25/23159 "2008-09-22T18:23:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankycooper](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@ankycooper](https://community.asterisk.org/u/ankycooper)\
**Post date:** [September 22, 2008, 6:23pm UTC](https://community.asterisk.org/t/solves-this-and-get-25/23159/1 "2008-09-22T18:23:21Z")

</div>

Hi  
I have a dialplan in which i wish to pass DTMF after HEARING THE VOICE.  
Please Help.  
Here is what i have  
exten =\> 1234,1,Dial(SIP/18003454570@myprovider,15,r)  
exten =\> 1234,n,WaitExten(1)  
exten =\> 1234,n,SendDTMF(84177647324723)  
exten =\> 1234,n,WaitExten(1)  
exten =\> 1234,n,SendDTMF(123456789)

But it doent proceed From Dial(SIP/18003454570@myprovider,15,r) to WaitExten(1)

I need to make sure i hear a voice before passing dtmf

and this needs to happen 2 times.  
Please Help.  
Solve this and get $25 in your paypal A/C

---

<div class="post-metadata">

**Author:** ![ianplain](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ianplain/32/1776_2.png) [@ianplain](https://community.asterisk.org/u/ianplain)\
**Post date:** [September 22, 2008, 7:45pm UTC](https://community.asterisk.org/t/solves-this-and-get-25/23159/2 "2008-09-22T19:45:52Z")

</div>

Off the top of my head

[code]exten =\> 1234,1,Dial(SIP/18003454570@myprovider,15,rM(senddtmf))

[senddtmf]  
exten =\> s,1,Wait(1)  
exten =\> s,n,SendDTMF(84177647324723)  
exten =\> s,n,Wait(1)  
exten =\> s,n,SendDTMF(123456789) [/code]

Not tested it but the theory is correct and I use similar for accepting calls.

Ian

[www.cyber-cottage.co.uk](http://www.cyber-cottage.co.uk)

---

<div class="post-metadata">

**Author:** ![ankycooper](https://avatars.discourse-cdn.com/v4/letter/a/858c86/32.png) [@ankycooper](https://community.asterisk.org/u/ankycooper)\
**Post date:** [September 23, 2008, 12:46pm UTC](https://community.asterisk.org/t/solves-this-and-get-25/23159/3 "2008-09-23T12:46:21Z")

</div>

Thanks a bunch for reply…  
Tried your steps still didn’t work…  
Today evening my buddy is coming HE is a VOIP Guru…  
I’ll take his suggestion. if you have another step to follow plz post it

---

<div class="post-metadata">

**Author:** ![g2010](https://avatars.discourse-cdn.com/v4/letter/g/dfb087/32.png) [@g2010](https://community.asterisk.org/u/g2010)\
**Post date:** [September 23, 2008, 1:04pm UTC](https://community.asterisk.org/t/solves-this-and-get-25/23159/4 "2008-09-23T13:04:50Z")

</div>

I assume you are doing the Dial() once you have a call up to bridge two channels together, is that correct? If asterisk is bridging the call it won’t fall through until after the call ends…

try this, it may solve your problem

```auto
exten => 1234,1,Dial(SIP/18003454570@myprovider,15,rD(ww84177647324723ww123456789))
```

---

<div class="post-metadata">

**Author:** ![davevg](https://avatars.discourse-cdn.com/v4/letter/d/6a8cbe/32.png) [@davevg](https://community.asterisk.org/u/davevg)\
**Post date:** [September 23, 2008, 1:45pm UTC](https://community.asterisk.org/t/solves-this-and-get-25/23159/5 "2008-09-23T13:45:40Z")

</div>

Ian’s suggestion is the one I’d suggest as well. You can tweak it a bit to try to get it to work something like this.

[code]exten =\> 1234,1,Dial(SIP/18003454570@myprovider,15,rM(senddtmf))

[macro-senddtmf]  
exten =\> s,1,Playback(silence/1)  
exten =\> s,n,WaitforSilence(750|1|5000)  
exten =\> s,n,SendDTMF(84177647324723)  
exten =\> s,n,Wait(1)  
exten =\> s,n,SendDTMF(123456789)[/code]

If this works, send Ian the money 😉

---

<div class="post-metadata">

**Author:** ![ianplain](https://sea1.discourse-cdn.com/asterisk/user_avatar/community.asterisk.org/ianplain/32/1776_2.png) [@ianplain](https://community.asterisk.org/u/ianplain)\
**Post date:** [September 23, 2008, 2:36pm UTC](https://community.asterisk.org/t/solves-this-and-get-25/23159/6 "2008-09-23T14:36:58Z")

</div>

Hi

Perhaps you could post the cli output from when a call fails.

Using the macro should and does work when I use it for calling mobiles etc on customer systems.

Ian
