Hi,
As a simple test, I’ve configured my Asterisk server to forward all incoming calls to my ITSP’s IVR.
When I call my ITSP directly from a PSTN phone, I can enter my PIN etc without any problems. However, when I call my DID from a PSTN which diverts to my ITSP then nothing happens when I press the keys on my phone.
I’ve tried setting dtmfmode=inband in the general context of sip.conf as it looked like it might be relevant from searching these forums. I’ve noticed that the inbound and outbound calls appear to be gsm if that makes any difference, and that my Asterisk server appears to hand-off the call to the ITSP’s.
So why can’t I get DTMF to work?
Here’s a trace of what’s happening …
pr 20 20:25:15 NOTICE[1547]: res_musiconhold.c:533 monmp3thread: Request to schedule in the past?!?!
– Accepting UNAUTHENTICATED call from 204.11.194.34:
> requested format = g729,
> requested prefs = (),
> actual format = gsm,
> host prefs = (gsm|ilbc),
> priority = mine
– Executing GotoIf(“IAX2/204.11.194.34:4569-4”, “0?200:10”) in new stack
– Goto (shanghai,s,10)
– Executing Playback(“IAX2/204.11.194.34:4569-4”, “pls-wait-connect-call”) in new stack
– Playing ‘pls-wait-connect-call’ (language ‘en’)
– Executing Dial(“IAX2/204.11.194.34:4569-4”, “IAX2/trunk_3/15551234567|30”) in new stack
– Called trunk_3/15551234567
– Call accepted by 62.4.81.180 (format gsm)
– Format for call is gsm
– IAX2/trunk_3-6 is making progress passing it to IAX2/204.11.194.34:4569-4
– IAX2/trunk_3-6 is ringing
– IAX2/trunk_3-6 is making progress passing it to IAX2/204.11.194.34:4569-4
– IAX2/trunk_3-6 stopped sounds
– IAX2/trunk_3-6 answered IAX2/204.11.194.34:4569-4
– Attempting native bridge of IAX2/204.11.194.34:4569-4 and IAX2/trunk_3-6
– Channel ‘IAX2/trunk_3-6’ ready to transfer
– Channel ‘IAX2/204.11.194.34:4569-4’ ready to transfer
– Releasing IAX2/204.11.194.34:4569-4 and IAX2/trunk_3-6
Apr 20 20:31:45 NOTICE[1547]: res_musiconhold.c:533 monmp3thread: Request to schedule in the past?!?!
– Hungup ‘IAX2/trunk_3-6’
== Spawn extension (shanghai, s, 11) exited non-zero on ‘IAX2/204.11.194.34:4569-4’
– Hungup ‘IAX2/204.11.194.34:4569-4’
NOTE: That after the Hungup appears in the trace, the call is still connected between the 2 endpoints (presumably without my Asterisk server in the middle any more).
And after my server bows out of the connection, DTMF still doesn’t work.