Koozali.org: home of the SME Server

Faxdetections ends up in congestion

Offline frederik

  • *
  • 9
  • +0/-0
Faxdetections ends up in congestion
« on: August 22, 2009, 06:19:33 PM »
Hi,

I installed sail-2.3.2-12 on an updated SME7.4 (2.6.9-78.0.22.EL)
Server has 1 TDM410 with 1FXS en 2 FXO-modules (DAHDI1-1 and DAHDI2-1)
I connected my faxmachine on the FXS
Extension 5000 is the FXS (DAHDI Ext(FXS)4)

In globals i have :
Autosense FAX Extension:5000
FAX Detect Delay:4

On the second trunk i enabled FAX.  Inbound routes on this trunk go to a call group (only internal phones).

When i want to recieve a fax on the second trunk, the fax is detected (the phones in de call group dont ring), but it ends up in congestion (cf. CDR-database).

QUID ?

F.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Faxdetections ends up in congestion
« Reply #1 on: August 22, 2009, 06:50:00 PM »
Please post a console log of the event

Thanks

S

Offline frederik

  • *
  • 9
  • +0/-0
Re: Faxdetections ends up in congestion
« Reply #2 on: August 22, 2009, 08:32:56 PM »
I hope this is what you mean :

Code: [Select]
Asterisk 1.4.25.1, Copyright (C) 1999 - 2008 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
Connected to Asterisk 1.4.25.1 currently running on hqpol-sme1 (pid = 21101)
Verbosity was 0 and is now 17
    -- Starting simple switch on 'DAHDI/2-1'
    -- Executing [s@mainmenu:1] GotoIf("DAHDI/2-1", "0?DAHDI1-1|1") in new stack
    -- Executing [s@mainmenu:2] GotoIf("DAHDI/2-1", "1?DAHDI2-1|1") in new stack
    -- Goto (mainmenu,DAHDI2-1,1)
    -- Executing [DAHDI2-1@mainmenu:1] AGI("DAHDI/2-1", "selintra|Inbound|DAHDI2-1|DAHDI2-1") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (Background) Options: (silence/4)
    -- <DAHDI/2-1> Playing 'silence/4' (language 'nl')
    -- Redirecting DAHDI/2-1 to fax extension
  == Spawn extension (mainmenu, ÿ, 0) exited non-zero on 'DAHDI/2-1'
    -- Sent into invalid extension 'ÿ' in context 'mainmenu' on DAHDI/2-1
    -- Executing [i@mainmenu:1] PlayTones("DAHDI/2-1", "congestion") in new stack
  == Auto fallthrough, channel 'DAHDI/2-1' status is 'UNKNOWN'
    -- Executing [h@mainmenu:1] Hangup("DAHDI/2-1", "") in new stack
  == Spawn extension (mainmenu, h, 1) exited non-zero on 'DAHDI/2-1'
    -- Hungup 'DAHDI/2-1'
hqpol-sme1*CLI>

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Faxdetections ends up in congestion
« Reply #3 on: August 23, 2009, 09:23:33 PM »
Hi Frederik,

Please send your extensions.conf file to admin@aelintra.com

Thankyou

S

Offline frederik

  • *
  • 9
  • +0/-0
Re: Faxdetections ends up in congestion
« Reply #4 on: August 26, 2009, 04:37:49 PM »
Hi Jeff,

Thank you very much for the patched agi !  Recieving faxes seems to be OK now.  But, i ran into another problem (i am new to SARK/asterisk and testing now ...), dont know if it is related.

When i use some of the 'useful little stubs' i get these :

Code: [Select]
Connected to Asterisk 1.4.25.1 currently running on hqpol-sme1 (pid = 24962)
Verbosity is at least 32
    -- Executing [*901*@internal:1] AGI("SIP/5001-09a5d340", "selintra|*22*1*") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/selintra
    -- AGI Script Executing Application: (Background) Options: (silence/1)
    -- <SIP/5001-09a5d340> Playing 'silence/1' (language 'nl')
    -- AGI Script Executing Application: (Playback) Options: (call-forwarding)
[Aug 26 16:27:20] WARNING[15648]: file.c:658 ast_openstream_full: File call-forwarding does not exist in any format
[Aug 26 16:27:20] WARNING[15648]: file.c:966 ast_streamfile: Unable to open call-forwarding (format 0x4 (ulaw)): No such file or directory
[Aug 26 16:27:20] WARNING[15648]: app_playback.c:439 playback_exec: ast_streamfile failed on SIP/5001-09a5d340 for call-forwarding
    -- AGI Script Executing Application: (Playback) Options: (activated)
[Aug 26 16:27:20] WARNING[15648]: file.c:658 ast_openstream_full: File activated does not exist in any format
[Aug 26 16:27:20] WARNING[15648]: file.c:966 ast_streamfile: Unable to open activated (format 0x4 (ulaw)): No such file or directory
[Aug 26 16:27:20] WARNING[15648]: app_playback.c:439 playback_exec: ast_streamfile failed on SIP/5001-09a5d340 for activated
    -- AGI Script selintra completed, returning 0
    -- Executing [*901*@internal:2] Goto("SIP/5001-09a5d340", "utilend|1") in new stack
    -- Goto (internal,utilend,1)
    -- Executing [utilend@internal:1] Playback("SIP/5001-09a5d340", "silence/1") in new stack
    -- <SIP/5001-09a5d340> Playing 'silence/1' (language 'nl')
    -- Executing [utilend@internal:2] Playback("SIP/5001-09a5d340", "activated") in new stack
[Aug 26 16:27:21] WARNING[15648]: file.c:658 ast_openstream_full: File activated does not exist in any format
[Aug 26 16:27:21] WARNING[15648]: file.c:966 ast_streamfile: Unable to open activated (format 0x4 (ulaw)): No such file or directory
[Aug 26 16:27:21] WARNING[15648]: app_playback.c:439 playback_exec: ast_streamfile failed on SIP/5001-09a5d340 for activated
    -- Executing [utilend@internal:3] Hangup("SIP/5001-09a5d340", "") in new stack
  == Spawn extension (internal, utilend, 3) exited non-zero on 'SIP/5001-09a5d340'
    -- Executing [h@internal:1] Hangup("SIP/5001-09a5d340", "") in new stack
  == Spawn extension (internal, h, 1) exited non-zero on 'SIP/5001-09a5d340'
hqpol-sme1*CLI>

In the logs i also have these :

Code: [Select]
Aug 26 13:57:11 hqpol-sme1 esmith::event[30837]: expanding /etc/asterisk/iax.conf 
Aug 26 13:57:11 hqpol-sme1 esmith::event[30837]: WARNING in /etc/e-smith/templates//etc/asterisk/iax.conf/10-general: Use of uninitialized value in string eq at /etc/e-smith/templates//etc/asterisk/iax.conf/10-general line 39. 
Aug 26 13:57:11 hqpol-sme1 esmith::event[30837]: WARNING: Template processing succeeded for //etc/asterisk/iax.conf: 1 fragment generated warnings 
Aug 26 13:57:11 hqpol-sme1 esmith::event[30837]:  at /etc/e-smith/events/actions/generic_template_expand line 56 
Aug 26 13:57:11 hqpol-sme1 esmith::event[30837]: expanding /etc/asterisk/queues.conf 
Aug 26 13:57:12 hqpol-sme1 esmith::event[30837]: expanding /etc/asterisk/manager.conf 
Aug 26 13:57:12 hqpol-sme1 esmith::event[30837]: expanding /etc/asterisk/agents.conf 
Aug 26 13:57:12 hqpol-sme1 esmith::event[30837]: expanding /etc/asterisk/extensions.conf 
Aug 26 13:57:12 hqpol-sme1 esmith::event[30837]: WARNING in /etc/e-smith/templates//etc/asterisk/extensions.conf/15-globals: Use of uninitialized value in concatenation (.) or string at /etc/e-smith/templates//etc/asterisk/extensions.conf/15-globals line 68. 
Aug 26 13:57:12 hqpol-sme1 esmith::event[30837]: WARNING in /etc/e-smith/templates//etc/asterisk/extensions.conf/15-globals: Use of uninitialized value in concatenation (.) or string at /etc/e-smith/templates//etc/asterisk/extensions.conf/15-globals line 68. 
Aug 26 13:57:12 hqpol-sme1 esmith::event[30837]: WARNING in /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions: Use of uninitialized value in numeric le (<=) at /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions line 48. 
Aug 26 13:57:12 hqpol-sme1 esmith::event[30837]: WARNING in /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions: Use of uninitialized value in numeric le (<=) at /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions line 48. 
Aug 26 13:57:12 hqpol-sme1 esmith::event[30837]: WARNING in /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions: Use of uninitialized value in numeric le (<=) at /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions line 49. 
Aug 26 13:57:12 hqpol-sme1 esmith::event[30837]: WARNING in /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions: Use of uninitialized value in numeric le (<=) at /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions line 49. 
Aug 26 13:57:12 hqpol-sme1 esmith::event[30837]: WARNING in /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions: Use of uninitialized value in concatenation (.) or string at /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions line 50. 
Aug 26 13:57:12 hqpol-sme1 esmith::event[30837]: WARNING in /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions: Use of uninitialized value in concatenation (.) or string at /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions line 50. 
Aug 26 13:57:12 hqpol-sme1 esmith::event[30837]: WARNING in /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions: Use of uninitialized value in concatenation (.) or string at /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions line 51. 
Aug 26 13:57:12 hqpol-sme1 esmith::event[30837]: WARNING in /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions: Use of uninitialized value in concatenation (.) or string at /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions line 51. 
Aug 26 13:57:12 hqpol-sme1 esmith::event[30837]: WARNING in /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions: Use of uninitialized value in numeric le (<=) at /etc/e-smith/templates//etc/asterisk/extensions.conf/30-extensions line 52. 
Aug 26 13:57:13 hqpol-sme1 /etc/e-smith/events/actions/generic_template_expand[30838]: /home/e-smith/db/selintra: OLD pageall=(undefined)
Aug 26 13:57:13 hqpol-sme1 /etc/e-smith/events/actions/generic_template_expand[30838]: /home/e-smith/db/selintra: NEW pageall=page
Aug 26 13:57:13 hqpol-sme1 /etc/e-smith/events/actions/generic_template_expand[30838]: /home/e-smith/db/selintra: OLD pageall=page
Aug 26 13:57:13 hqpol-sme1 /etc/e-smith/events/actions/generic_template_expand[30838]: /home/e-smith/db/selintra: NEW pageall=page|pagegroup|SIP/5006&SIP/5004&SIP/5002&SIP/5000&SIP/5005&SIP/5003&SIP/5001
Aug 26 13:57:13 hqpol-sme1 esmith::event[30837]: WARNING: Template processing succeeded for //etc/asterisk/extensions.conf: 11 fragments generated warnings 
Aug 26 13:57:13 hqpol-sme1 esmith::event[30837]:  at /etc/e-smith/events/actions/generic_template_expand line 56 
Aug 26 13:57:13 hqpol-sme1 esmith::event[30837]: expanding /etc/asterisk/sip.conf 
Aug 26 13:57:13 hqpol-sme1 esmith::event[30837]: WARNING in /etc/e-smith/templates//etc/asterisk/sip.conf/11-general: Use of uninitialized value in string eq at /etc/e-smith/templates//etc/asterisk/sip.conf/11-general line 48. 
Aug 26 13:57:13 hqpol-sme1 esmith::event[30837]: WARNING: Template processing succeeded for //etc/asterisk/sip.conf: 1 fragment generated warnings 
Aug 26 13:57:13 hqpol-sme1 esmith::event[30837]:  at /etc/e-smith/events/actions/generic_template_expand line 56 


You can ask the new root-password of the server by mail, if you need it to logon.

F.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Faxdetections ends up in congestion
« Reply #5 on: August 26, 2009, 06:15:30 PM »
Hello,

Some audio prompts aren't being found on your system.  You will need to check why they are not in the nl language stack or not on your system at all.  They should be somewhere in /var/lib/asterisk/sounds. 

Whenever you see the messages...
Code: [Select]
WARNING[15648]: file.c:658 ast_openstream_full: File xxxxxxxx does not exist in any format
WARNING[15648]: file.c:966 ast_streamfile: Unable to open xxxxxxxxx (format 0x4 (ulaw)): No such file or directory
WARNING[15648]: app_playback.c:439 playback_exec: ast_streamfile failed on SIP/5001-09a5d340 for xxxxxxxxx

It means that there is a sound file it can't find.

also...
 
You can ignore the log warnings - they are there just to show the world what bad perl programmers we are.   ;)


Best

S