DTMF for outbound calls

Today, I tried following configuration, but seems DTMF doesn’t work

Analog/SIP phone---->FXS–Asterisk—>FXO—>prepaid calling card access number

When I dial access number then need to enter account number and pin code.

But Asterisk didn’t passthrough DTMF signal, because other gateway device doesn’t recognize digits send by DTMF.

In case of SIP phone, tried dtmfmode=inband,rfc2833 and relaxdtmf=yes too, but no success.

rxgain, txgain are 5.0

How can I get to work DTMF with Analog/SIP phone?

are you getting DTMF in your actual asterisk box (diaplan)

try:
;;;Please enter a 4 digit number
exten => 900,1,Read(NUM,4,3)

Now watch your cli when you do this, and enter a 4 digit number when you call 900. It will say if it recognized it or not…

If that works we can proceed further…

Please find below information:

pbx:/home/balgaa# asterisk -r
Asterisk 1.4.16.2, Copyright © 1999 - 2007 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for detail s.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.

Connected to Asterisk 1.4.16.2 currently running on pbx (pid = 2205)
Verbosity is at least 3
– Starting simple switch on ‘Zap/5-1’
– Executing [900@tower:1] Read(“Zap/5-1”, “NUM||4|3”) in new stack
– Accepting a maximum of 4 digits.
– User entered ‘1234’
== Auto fallthrough, channel ‘Zap/5-1’ status is ‘UNKNOWN’
– Hungup 'Zap/5-1’
pbx*CLI>

I saw it can recognize digits from analog phone connected to FXS port.

and SIP phone connected to Asterisk.

-- Executing [900@tower:1] Read("SIP/802-0825a360", "NUM||4|3") in new stack
-- Accepting a maximum of 4 digits.
-- User entered '4567'

== Auto fallthrough, channel ‘SIP/802-0825a360’ status is 'UNKNOWN’
pbx*CLI>

What can I to do now?

try:

dtmfmode=info

dtmfmode=info doesn’t work

zapata-channels.conf

;;; line="4 WCTDM/0/3"
signalling=fxs_ks
allow=ulaw
callerid=asreceived
disallow=all
rxgain=1.0
txgain=1.0
group=0
context=tower
channel => 4
;context=default

; Span 2: WCTDM/1 “Wildcard TDM400P REV E/F Board 2”
;;; line="5 WCTDM/1/0"
signalling=fxo_ks
callerid=“Boldsoft NOC 901” <6005>
mailbox=6005
group=5
;context=from-internal
context=tower
channel => 5
callerid=
mailbox=
group=
;context=default

zapata.conf

;
; If you are having trouble with DTMF detection, you can relax the DTMF
; detection parameters. Relaxing them may make the DTMF detector more likely
; to have “talkoff” where DTMF is detected when it shouldn’t be.
;
relaxdtmf=yes
;

This configuration working outbound DTMF from analog phone connected FXS and outgoing call to FXO port.