[asterisk-users] SendDTMF() behaves strangely
Stephen Bosch
posting at vodacomm.ca
Sat Nov 4 16:34:07 MST 2006
Stephen Bosch wrote:
> Moises Silva wrote:
>> try enabling DTMF debugging on logger.conf for the console, and tell
>> us here waht do you see
>
> This is what comes out on the console, with IP addresses removed:
>
>
>> -- Call accepted by xx.xx.xx.xx (format ulaw)
>> -- Format for call is ulaw
>> -- IAX2/[provider_channel_id] is making progress passing it to SIP/polycom-081827b0
>> -- IAX2/[provider_channel_id] answered SIP/polycom-081827b0
>> -- Executing Wait("IAX2/[provider_channel_id]", "0.5") in new stack
>> -- Executing SendDTMF("IAX2/[provider_channel_id]", "4") in new stack
>> Nov 4 11:21:34 DTMF[17046]: channel.c:2345 ast_write: IAX2/[provider_channel_id] : 4
>> -- Executing SendDTMF("IAX2/[provider_channel_id]", "6") in new stack
>> Nov 4 11:21:34 DTMF[17046]: channel.c:2345 ast_write: IAX2/[provider_channel_id] : 6
>> -- Executing SendDTMF("IAX2/[provider_channel_id]", "1") in new stack
>> Nov 4 11:21:34 DTMF[17046]: channel.c:2345 ast_write: IAX2/[provider_channel_id] : 1
>> -- Executing SendDTMF("IAX2/[provider_channel_id]", "3") in new stack
>> Nov 4 11:21:35 DTMF[17046]: channel.c:2345 ast_write: IAX2/[provider_channel_id] : 3
>> -- Executing Set("IAX2/[provider_channel_id]", "MACRO_RESULT=CONTINUE") in new stack
>> -- Hungup 'IAX2/[provider_channel_id]'
>> -- Executing Hangup("SIP/polycom-081827b0", "") in new stack
>> == Spawn extension (internal, 123, 4) exited non-zero on 'SIP/polycom-081827b0'
If I change the macro section to read like so:
> [macro-page]
> exten => s,1,Wait(1)
> exten => s,n,SendDTMF(2)
> exten => s,n,Wait(10)
> exten => s,n,SendDTMF(6)
> exten => s,n,Wait(10)
> exten => s,n,Set(MACRO_RESULT=CONTINUE)
the called party hears the '2' for about 1.5 seconds, followed by a 10
second pause, followed by the '6' for three seconds.
This is highly unexpected and unspecified behaviour. What's wrong here?
-Stephen-
More information about the asterisk-users
mailing list