[asterisk-users] Detecting a fax

Neil Youngman neil.youngman at wirefast.com
Fri Jan 11 04:46:12 CST 2019


On 11/01/2019 10:04, Floimair Florian wrote:
> I would guess from your explanation that the "outgoing" call somehow ends up in your Asterisk machine again, either at the voicetest or fax extension.
> You don't answer it in either of the extensions.
> That's what TOOTAI meant.

No, it's not looped back to the same asterisk extension. For this 
particular test I'm testing against a hardware fax machine plugged into 
a standard phone line.

> If this is done in another extension, than this part of the Dialplan is missing in your post. So we can only guess what's going on.
> Either post the full dialplan or add some log or cli output (with verbose set to at least 1) so we can have a chance of seeing what's going on.

I attach some CLI output.

Neil


Neil Youngman 
Developer
Wirefast Limited
 
Wirefast provides secure corporate messaging services.
See our messaging solutions at  http://www.wirefast.com/ 
Please consider the environment.
Does this email or attachment need to be printed?
This message contains confidential information and is intended only 
for the individual named. If you are not the named addressee you 
should not disseminate, distribute or copy this email. Please 
notify the sender immediately by email if you have received this 
email by mistake and delete this email from your system.

Any views or opinions are solely those of the author
and do not necessarily represent those of Wirefast Limited

Email transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses. The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of email transmission.
Wirefast Limited is registered in England & Wales
Company number: 03865860
Registered Office: 7/10 Chandos Street, Cavendish Square, London, W1G 9DQ

Wirefast definitions of classification can be found here: www.wirefast.com/classifications
-------------- next part --------------

swasp6*CLI> 
  == Using SIP RTP CoS mark 5

swasp6*CLI> 
    -- Called +441632900987 at 10.11.12.13:5060

swasp6*CLI> 
    -- SIP/10.11.12.13:5060-000000f8 is making progress

swasp6*CLI> 
    -- SIP/10.11.12.13:5060-000000f8 answered

swasp6*CLI> 
    -- Executing [voicetest at test:1] NoOp("SIP/10.11.12.13:5060-000000f8", "") in new stack

swasp6*CLI> 
    -- Executing [voicetest at test:2] Log("SIP/10.11.12.13:5060-000000f8", "Notice,SIP/10.11.12.13:5060-000000f8: Extension voiceout starting") in new stack

swasp6*CLI> 
[Jan 11 10:36:35] NOTICE[9709][C-00000117]: Ext. voicetest:2 @ test: SIP/10.11.12.13:5060-000000f8: Extension voiceout starting
    -- Executing [voicetest at test:3] Log("SIP/10.11.12.13:5060-000000f8", "Notice,SIP/10.11.12.13:5060-000000f8: Starting Answer Machine Detection") in new stack
[Jan 11 10:36:35] NOTICE[9709][C-00000117]: Ext. voicetest:3 @ test: SIP/10.11.12.13:5060-000000f8: Starting Answer Machine Detection
    -- Executing [voicetest at test:4] AMD("SIP/10.11.12.13:5060-000000f8", "") in new stack
    -- AMD: SIP/10.11.12.13:5060-000000f8 (N/A) (N/A) (Fmt: alaw)
    -- AMD: initialSilence [2500] greeting [1500] afterGreetingSilence [800] totalAnalysisTime [5000] minimumWordLength [100] betweenWordsSilence [50] maximumNumberOfWords [3] silenceThreshold [256] maximumWordLength [5000] 

swasp6*CLI> 
    -- AMD: Channel [SIP/10.11.12.13:5060-000000f8]. Changed state to STATE_IN_SILENCE

swasp6*CLI> 
    -- AMD: Channel [SIP/10.11.12.13:5060-000000f8]. Word detected. iWordsCount:1
    -- AMD: Channel [SIP/10.11.12.13:5060-000000f8]. Detected Talk, previous silence duration: 1980

swasp6*CLI> 
    -- AMD: Channel [SIP/10.11.12.13:5060-000000f8]. Changed state to STATE_IN_SILENCE

swasp6*CLI> 
    -- AMD: Channel [SIP/10.11.12.13:5060-000000f8]. Detected Talk, previous silence duration: 100

swasp6*CLI> 
    -- AMD: Channel [SIP/10.11.12.13:5060-000000f8]. Word detected. iWordsCount:2

swasp6*CLI> 
    -- AMD: Channel [SIP/10.11.12.13:5060-000000f8]. Changed state to STATE_IN_SILENCE

swasp6*CLI> 
    -- AMD: Channel [SIP/10.11.12.13:5060-000000f8]. Detected Talk, previous silence duration: 100

swasp6*CLI> 
    -- AMD: Channel [SIP/10.11.12.13:5060-000000f8]. Word detected. iWordsCount:3
    -- AMD: Channel [SIP/10.11.12.13:5060-000000f8]. ANSWERING MACHINE: iWordsCount:3

swasp6*CLI> 
    -- Executing [voicetest at test:5] Log("SIP/10.11.12.13:5060-000000f8", "Notice,SIP/10.11.12.13:5060-000000f8: Answer Machine Detection MACHINE/MAXWORDS-3-3") in new stack

swasp6*CLI> 
[Jan 11 10:36:38] NOTICE[9709][C-00000117]: Ext. voicetest:5 @ test: SIP/10.11.12.13:5060-000000f8: Answer Machine Detection MACHINE/MAXWORDS-3-3
    -- Executing [voicetest at test:6] Playback("SIP/10.11.12.13:5060-000000f8", "/var/lib/asterisk/sounds/en/demo-congrats") in new stack

swasp6*CLI> 
    -- <SIP/10.11.12.13:5060-000000f8> Playing '/var/lib/asterisk/sounds/en/demo-congrats.gsm' (language 'en')

swasp6*CLI> 
    -- Executing [voicetest at test:7] Log("SIP/10.11.12.13:5060-000000f8", "Notice,SIP/10.11.12.13:5060-000000f8: Voice out extension complete") in new stack

swasp6*CLI> 
[Jan 11 10:37:09] NOTICE[9709][C-00000117]: Ext. voicetest:7 @ test: SIP/10.11.12.13:5060-000000f8: Voice out extension complete
    -- Executing [voicetest at test:8] Hangup("SIP/10.11.12.13:5060-000000f8", "") in new stack
  == Spawn extension (test, voicetest, 8) exited non-zero on 'SIP/10.11.12.13:5060-000000f8'

swasp6*CLI> exit

Asterisk cleanly ending (0).
Executing last minute cleanups
kroot at swasp6:~\[root at swasp6 ~]# logout
Connection to 127.0.0.1 closed.

kneily at swasp6:~\neily at swasp6 ~ 10:37:30 919 $ exit


More information about the asterisk-users mailing list