We “Playback” a converted .wav file on an answered phone but the caller, i.e. the other
phone on the line, sees no DTMF on the caller phone. We’ve independantly verified that the sender does send sound containing DTMF tones. When we use asterisk AMI via “PlayDTMF” commands, the other phone on the call, i.e. non-sender receives DTMF.
We are concerned that the caller phone configuration is not “telling” it to look for / convert the audio to DTMF events where appropriate. The only thing we know about is the “dtmfmode => inband” setting which we place in the caller’s section of sip.conf.
We certainly would appreciate any help or suggestions with this issue.
Called phone’s extensions.conf segment:
[code][externalphone]
exten => 45002,1,Verbose(Playback exten=${EXTEN})
same => n, Answer(1)
same => n, Playback(/nfs/newadmin/public/users/crs/testbuddy/log/ast87_ao1/01)
same => n, wait(30)
same => n, Hangup()
exten => _X.,1,Verbose(exten=${EXTEN})
same => n, Dial(SIP/${EXTEN}@152.148.200.236:5060
same => n, Hangup()
[default]
include => outgoing
include => incoming
exten => _X.,1,Verbose(exten=${EXTEN} default)
same => n,Goto(incoming,${EXTEN},1)[/code]
Caller’s extensions.conf segment:
[code][outgoing]
;
; OXE phones
; registrar = ao1-oxe-ed.inse.lucent.com
; registrar ip = 152.148.200.236
;
exten => 51207,1,Verbose(51207 outgoing)
same => n,Wait(1)
same => n,Dial(SIP/51207@152.148.200.236:5060,20,rt)
same => n,wait(99999)[/code]
Caller’s sip.conf segment:
[code];
; OXE
;
register=>51207:password@152.148.200.236:5060/51207
register=>51208:password@152.148.200.236:5060/51208
;
; OXE client sections
;
[51207]
dtmfmode => inband
disallow=all
allow=ulaw
allow=alaw[/code]
From the calls dtmf log:
[Feb 26 13:18:20] Asterisk 11.12.1 built by root @ rsmith-linux1 on a i686 running Linux on 2014-09-25 15:04:32 UTC
log/ast87_ao1/dtmf_file (END)
Relevant segment from CLI:
[code]—
[Feb 26 13:19:27] DEBUG[32660][C-00000000]: pbx.c:4883 pbx_extension_helper: Launching ‘Verbose’
– Executing [45002@externalphone:1] Verbose(“SIP/152.148.200.236:5060-00000000”, “Playback exten=45002”) in new stack
Playback exten=45002
[Feb 26 13:19:27] DEBUG[32660][C-00000000]: pbx.c:4883 pbx_extension_helper: Launching ‘Answer’
– Executing [45002@externalphone:2] Answer(“SIP/152.148.200.236:5060-00000000”, “1”) in new stack
[Feb 26 13:19:27] DEBUG[32660][C-00000000]: pbx.c:4883 pbx_extension_helper: Launching ‘Playback’
– Executing [45002@externalphone:3] Playback(“SIP/152.148.200.236:5060-00000000”, “/nfs/newadmin/public/users/crs/testbuddy/log/ast87_ao1/01”) in new stack
<— SIP read from UDP:152.148.200.236:5060 —>
INVITE sip:asterisk@192.168.15.224:5060 SIP/2.0
Allow: INVITE, ACK, CANCEL, BYE, PRACK, NOTIFY, REFER, SUBSCRIBE, OPTIONS, UPDATE
Contact: sip:152.148.200.236
Supported: replaces,timer,path,100rel
User-Agent: OmniPCX Enterprise R11.0 k1.400.29.e
Session-Expires: 1800;refresher=uac
Min-SE: 900
Content-Type: application/sdp
To: sip:asterisk@192.168.15.224;tag=as4a9481ac
From: sip:51207@152.148.200.236:5060;tag=2e9fc6133e470de774f20f63bdec12b5
Call-ID: 68f6e1227e2210dc72565d8346938637@192.168.15.224:5060
CSeq: 321844588 INVITE
Via: SIP/2.0/UDP 152.148.200.236;branch=z9hG4bKf904382b4361e1db4e91e0b65005a1f7
Max-Forwards: 70
Content-Length: 221
v=0
o=OXE 1424974767 1424974768 IN IP4 152.148.200.236
s=abs
c=IN IP4 192.168.15.224
t=0 0
m=audio 15056 RTP/AVP 0 101
a=sendrecv
a=rtpmap:0 PCMU/8000
a=ptime:20
a=maxptime:30
a=rtpmap:101 telephone-event/8000
<------------->
— (15 headers 11 lines) —
Sending to 152.148.200.236:5060 (NAT)
[Feb 26 13:19:27] DEBUG[32362][C-00000000]: chan_sip.c:25447 handle_request_invite: Initializing initreq for method INVITE - callid 68f6e1227e2210dc72565d8346938637@192.168.15.224:5060
Found RTP audio format 0
[Feb 26 13:19:27] DEBUG[32362][C-00000000]: rtp_engine.c:557 ast_rtp_codecs_payloads_set_m_type: Setting payload 0 based on m type on 0xb642f868
Found RTP audio format 101
[Feb 26 13:19:27] DEBUG[32362][C-00000000]: rtp_engine.c:557 ast_rtp_codecs_payloads_set_m_type: Setting payload 101 based on m type on 0xb642f868
Found audio description format PCMU for ID 0
Found audio description format telephone-event for ID 101
Capabilities: us - (ulaw|alaw), peer - audio=(ulaw)/video=(nothing)/text=(nothing), combined - (ulaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
[Feb 26 13:19:27] DEBUG[32362][C-00000000]: res_rtp_asterisk.c:4336 ast_rtp_remote_address_set: Setting RTCP address on RTP instance '0xb720c824’
Peer audio RTP is at port 192.168.15.224:15056
[Feb 26 13:19:27] DEBUG[32362][C-00000000]: res_rtp_asterisk.c:4246 ast_rtp_prop_set: Ignoring duplicate RTCP property on RTP instance ‘0xb720c824’
[Feb 26 13:19:27] DEBUG[32362][C-00000000]: chan_sip.c:10663 process_sdp: Setting native formats after processing SDP. peer joint formats (ulaw), old nativeformats (ulaw)
<— Transmitting (NAT) to 152.148.200.236:5060 —>
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 152.148.200.236;branch=z9hG4bKf904382b4361e1db4e91e0b65005a1f7;received=152.148.200.236;rport=5060
From: sip:51207@152.148.200.236:5060;tag=2e9fc6133e470de774f20f63bdec12b5
To: sip:asterisk@192.168.15.224;tag=as4a9481ac
Call-ID: 68f6e1227e2210dc72565d8346938637@192.168.15.224:5060
CSeq: 321844588 INVITE
Server: Asterisk PBX 11.12.1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uac
Contact: sip:asterisk@192.168.15.224:5060
Content-Length: 0
<------------>
[Feb 26 13:19:27] DEBUG[32362][C-00000000]: chan_sip.c:13534 transmit_response_with_sdp: Setting framing from config on incoming call
[Feb 26 13:19:27] DEBUG[32362][C-00000000]: chan_sip.c:13088 add_sdp: ** Our capability: (ulaw) Video flag: True Text flag: True
[Feb 26 13:19:27] DEBUG[32362][C-00000000]: chan_sip.c:13089 add_sdp: ** Our prefcodec: (slin)
Audio is at 11578
Adding codec 100003 (ulaw) to SDP
Adding non-codec 0x1 (telephone-event) to SDP[/code]