[asterisk-bugs] [Asterisk 0012849]: DTMF detection issue in GSM gateway

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Jun 26 04:04:53 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12849 
====================================================================== 
Reported By:                jankrishnan
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12849
Category:                   Addons/General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           1.4.17 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             06-13-2008 03:54 CDT
Last Modified:              06-26-2008 04:04 CDT
====================================================================== 
Summary:                    DTMF detection issue in GSM gateway
Description: 
I am using the GSM gateway(MV-370) for communication with mobile network
from asterisk. In detail,
SIM card is placed in MV-370,
Configured one sip account for this gateway in asterisk, so whenever i
making the from outside to this gateway, it will be landed on configured
sip account. I designed the dialplan is such a way to get the dtmf(Read()
application in asterisk) from the remote end. But, here when pressing the
dtmf digits from remote end, it is not detected. Always saying that no
digits has been pressed,

sip.conf configuration,
;GSM VOIP Gateway MV-370
[103]
type=friend
username=103
secret=103
context=gateway
dtmfmode=inband
host=dynamic
nat=never
canreinvite=no
insecure=very
qualify=yes
disallow=all
allow=ulaw
allow=alaw

in the above i tried with the dtmfmode as info and rfc2833, but i got the
same result.

could you please direct or suggest me in a right direction?

Thanks in advance,
jankrishnan
====================================================================== 

---------------------------------------------------------------------- 
 jankrishnan - 06-26-08 04:04  
---------------------------------------------------------------------- 
I have included the senddtmf(12345) in the dialplan. Then i am able to hear
the dtmf tones in the mobile.

I verified that the codec id is 101 for rfc2833.

As per the suggestion, i enabled the 'sip debug' messages in the asterisk.
I have attached the sip debug log.
Dialplan : 
[gateway]
exten => 103,1,Answer()
exten => 103,2,Set(TIMEOUT(digit)=5)
exten => 103,3,Set(TIMEOUT(response)=7)
exten => 103,4,MixMonitor(/root/mv370.wav)
exten => 103,5,Read(digits|get_dtmf_digits|1||1|6)
exten => 103,6,StopMixMonitor()
exten => 103,7,Hangup()

sip.conf :
[103]
type=friend
username=103
secret=103 ; Asterisk extension password
context=gateway ; Incoming calls context
dtmfmode=rfc2833 ; Very important for DISA to work
host=dynamic
nat=no ; Gateway is not behind a NAT router
canreinvite=no ; Typically set to NO if behind NAT
insecure=very
qualify=yes
disallow=all
allow=ulaw ; prefered codec for DTMF detection
allow=alaw



asterisk IP address :  192.168.1.71
modem IP address : 192.168.1.25
SIM number(placed inside the modem): 9940042766


kindly give your suggestion on this.. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-26-08 04:04  jankrishnan    Note Added: 0089267                          
======================================================================




More information about the asterisk-bugs mailing list