[asterisk-dev] Question about AMD/WaitforSilence errors on EC2
Jamuel Starkey
jamuel at hcvoip.com
Mon Apr 26 19:11:25 CDT 2010
This is a question mostly for asterisk-users list. But take a look at the latest dahdi-linux as there is no need for compiling dahdi/zt-dummy drivers for timing.
----- Original Message -----
From: asterisk-dev-bounces at lists.digium.com <asterisk-dev-bounces at lists.digium.com>
To: asterisk-dev at lists.digium.com <asterisk-dev at lists.digium.com>
Sent: Mon Apr 26 20:04:38 2010
Subject: [asterisk-dev] Question about AMD/WaitforSilence errors on EC2
Hello,
I have two asterisk systems both on 1.6.2.6. One is on a server at my
home, the other is on Amazon EC2. They both have the same code, same
SIP provider, they both use the same account on the SIP provider.
AMD and WaitforSilence on the server work fine. AMD detects
machine/human in a second or two. WaitForSilence waits as long as I
ask.
AMD and WaitForSIlence don't work on EC2. AMD always returns NOTSURE
and takes less than a half second. WaitForSIlence waits less than half
a second no matter what input I give it and no matter what sound is on
the other end.
Looking through the source code, it seems to me that on EC2 I get:
f->frametype == AST_FRAME_NULL
or something like that. I'm not too familiar with the internals, but
clearly, something is wrong.
Anyway, here's what I see from the console on EC2:
-- AMD: SIP/xxxxxxx 5555555555 (null) (Fmt: 64)
-- AMD: initialSilence [2500] greeting [1500] afterGreetingSilence
[800] totalAnalysisTime [5000] minimumWordLength [100]
betweenWordsSilence [50] maximumNumberOfWords [3] silenceThreshold [0]
maximumWordLength [5000]
-- AMD: Channel [SIP/xxxxxxx]. Changed state to STATE_IN_SILENCE
-- AMD: Channel [SIP/xxxxxxx]. Too long...
-- AMD: Channel [SIP/xxxxxxx]. Too long...
After further investigation, it seems it might be a timing issue
related to ztdummy. Unfortunately, I can't seem to compile ztdummy on
EC2. Can anyone help with the error or otherwise with a binary of
ztdummy that would work on EC2?
Thanks in advance,
Jimmy
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-dev
More information about the asterisk-dev
mailing list