Inband DTMF detection

A forum for Skype For Asterisk users to ask questions and get advice from other users

Moderators: twilson, pete engler

Inband DTMF detection

Postby duncanthrax » Thu Jul 30, 2009 3:07 pm

I've got the software set up successfully, and it registers a newly created account in Skype. When I call the Skype account, I get connected and an echo test works perfectly.

What I can seem to get to work is inband DTMF. I'm using the Skype client DTMF keypad. Whenever a tone is generated, all that the debug log (level 9) says is:

Code: Select all
[Jul 30 22:54:46] DEBUG[3890]: chan_skype.c:3255 do_monitor: poll returned 1
[Jul 30 22:54:46] DEBUG[3890]: chan_skype.c:3245 do_monitor: entering poll for 2 fds


That happens exactly when a tone is sent. However they are not detected as such. The incoming call seems to use ulaw.

Here's the full debug trace of a call (with the DTMF keypresses at the end):

Code: Select all
ragweed*CLI> core set debug 9
Core debug was 3 and is now 9
[Jul 30 22:54:36] DEBUG[3890]: chan_skype.c:3255 do_monitor: poll returned 1
[Jul 30 22:54:36] DEBUG[3890]: core.cpp:255 create_control_socket: creating socket sfa-control-0x7f487c02eed0-0000001d
[Jul 30 22:54:36] DEBUG[3890]: chan_skype.c:815 new_call: Incoming call for Skype user eurescom_ac from duncanthrax (Tom Kistner)
[Jul 30 22:54:36] DEBUG[3890]: chan_skype.c:3245 do_monitor: entering poll for 2 fds
[Jul 30 22:54:36] DEBUG[3987]: pbx.c:1842 pbx_extension_helper: Launching 'Answer'
[Jul 30 22:54:36] DEBUG[3890]: chan_skype.c:3255 do_monitor: poll returned 1
[Jul 30 22:54:36] DEBUG[3987]: devicestate.c:306 __ast_device_state_changed_literal: Notification of state change to be queued on device/channel Skype/eurescom_ac-7005cef8
[Jul 30 22:54:36] DEBUG[3987]: devicestate.c:306 __ast_device_state_changed_literal: Notification of state change to be queued on device/channel Skype/eurescom_ac
[Jul 30 22:54:36] DEBUG[3890]: chan_skype.c:3245 do_monitor: entering poll for 2 fds
[Jul 30 22:54:36] DEBUG[3883]: devicestate.c:163 ast_device_state: No provider found, checking channel drivers for Skype - eurescom_ac-7005cef8
[Jul 30 22:54:36] DEBUG[3987]: pbx.c:1842 pbx_extension_helper: Launching 'Wait'
[Jul 30 22:54:36] DEBUG[3883]: devicestate.c:289 do_state_change: Changing state for Skype/eurescom_ac-7005cef8 - state 0 (Unknown)
[Jul 30 22:54:36] DEBUG[3883]: devicestate.c:163 ast_device_state: No provider found, checking channel drivers for Skype - eurescom_                                                                                         ac
[Jul 30 22:54:36] DEBUG[3883]: devicestate.c:289 do_state_change: Changing state for Skype/eurescom_ac - state 2 (In use)
[Jul 30 22:54:36] DEBUG[3987]: core.cpp:1663 sfa_call_process: accepting socket connection from voice engine
[Jul 30 22:54:36] DEBUG[3890]: chan_skype.c:3255 do_monitor: poll returned 1
[Jul 30 22:54:36] DEBUG[3987]: core.cpp:1636 process_ve_frame: received audio socket address 127.0.0.1:52589
[Jul 30 22:54:36] DEBUG[3987]: core.cpp:1773 sfa_call_set_audio_socket_address: sending audio socket address 127.0.0.1:15912
[Jul 30 22:54:36] DEBUG[3890]: chan_skype.c:3245 do_monitor: entering poll for 2 fds
[Jul 30 22:54:36] DEBUG[3890]: chan_skype.c:3255 do_monitor: poll returned 1
[Jul 30 22:54:36] DEBUG[3890]: chan_skype.c:730 queue_event: got control event type 4 with subclass 4.
[Jul 30 22:54:36] DEBUG[3890]: chan_skype.c:3245 do_monitor: entering poll for 2 fds
[Jul 30 22:54:38] DEBUG[3987]: pbx.c:1842 pbx_extension_helper: Launching 'Set'
[Jul 30 22:54:38] DEBUG[3987]: pbx.c:1842 pbx_extension_helper: Launching 'Set'
[Jul 30 22:54:38] DEBUG[3987]: pbx.c:1842 pbx_extension_helper: Launching 'Read'
[Jul 30 22:54:38] DEBUG[3987]: channel.c:2840 set_format: Set channel Skype/eurescom_ac-7005cef8 to write format gsm
[Jul 30 22:54:38] DEBUG[3987]: rtp.c:2769 ast_rtp_write: Ooh, format changed from unknown to ulaw
[Jul 30 22:54:38] DEBUG[3987]: rtp.c:2786 ast_rtp_write: Created smoother: format: 4 ms: 20 len: 160
[Jul 30 22:54:38] DEBUG[3987]: channel.c:1821 ast_settimeout: Scheduling timer at 160 sample intervals
[Jul 30 22:54:43] DEBUG[3987]: channel.c:1821 ast_settimeout: Scheduling timer at 0 sample intervals
[Jul 30 22:54:43] DEBUG[3987]: channel.c:1821 ast_settimeout: Scheduling timer at 0 sample intervals
[Jul 30 22:54:46] DEBUG[3890]: chan_skype.c:3255 do_monitor: poll returned 1
[Jul 30 22:54:46] DEBUG[3890]: chan_skype.c:3245 do_monitor: entering poll for 2 fds
[Jul 30 22:54:48] DEBUG[3890]: chan_skype.c:3255 do_monitor: poll returned 1
[Jul 30 22:54:48] DEBUG[3890]: chan_skype.c:3245 do_monitor: entering poll for 2 fds
[Jul 30 22:54:51] DEBUG[3890]: chan_skype.c:3255 do_monitor: poll returned 1
[Jul 30 22:54:51] DEBUG[3890]: chan_skype.c:3245 do_monitor: entering poll for 2 fds
[Jul 30 22:54:51] DEBUG[3890]: chan_skype.c:3255 do_monitor: poll returned 1
[Jul 30 22:54:51] DEBUG[3890]: chan_skype.c:3245 do_monitor: entering poll for 2 fds
[Jul 30 22:54:52] DEBUG[3890]: chan_skype.c:3255 do_monitor: poll returned 1
duncanthrax
Newsterisk
 
Posts: 1
Joined: Thu Jul 30, 2009 2:58 pm

Postby twilson » Fri Jul 31, 2009 9:08 am

Can you show what your dialplan/chan_skype.conf look like as well as what Asterisk version you are using and 32/64-bitness? I'll try to recreate.
twilson
Oldsterisk
 
Posts: 87
Joined: Mon Jun 01, 2009 9:35 am


Return to Skype For Asterisk

Who is online

Users browsing this forum: No registered users and 1 guest