Outgoing calls from Dahdi fail


#1

Hi,

System information:

  1. Asterisk 1.6.2.12
  2. Single SIP trunk. The vast majority of internal extensions are SIP (all - alaw/ulaw)
  3. Single PCI/e card, 4 FXS ports - Wildcard TDM400P REV E/F Board 5 , DAHDI Version: 2.4.0 Echo Canceller: MG2
    3.1) Two of the FXS ports are connected to analog ‘regular’ fax machines.

I can receive faxes on two regular (analog) fax machines but I can’t send faxes…
When dialing, I get ‘busy’ signal, and sometimes I get the secretary extension…wired
when dialing from old DECT phone, and from door keypad , they work.
Maybe some DTMF problem? or timing of dialing (too fast)? or…?


chan_dahdi.conf

[code][channels]
language=en

; #include dahdi-channels.conf
; include dahdi extensions defined in FreePBX
#include chan_dahdi_additional.conf

; XTDM20B Port #1,2 plugged into PSTN
;AMPLABEL:Channel %c - Button %n
context=from-pstn
signalling=fxs_ks
faxdetect=incoming
usecallerid=yes
echocancel=yes
echocancelwhenbridged=no
echotraining=800
group=0
channel=1-4[/code]

dahdi-channels.conf

[code]; Autogenerated by /usr/sbin/dahdi_genconf on Sun Sep 18 14:04:39 2011
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;

; Span 1: WCTDM/4 “Wildcard TDM400P REV E/F Board 5” (MASTER)
;;; line="1 WCTDM/4/0 FXOKS (SWEC: MG2)"
signalling=fxo_ks
callerid=“Channel 1” <301>
mailbox=301
group=5
context=from-internal
channel => 1
callerid=
mailbox=
group=
context=default

;;; line="2 WCTDM/4/1 FXOKS (SWEC: MG2)"
signalling=fxo_ks
callerid=“Channel 2” <302>
mailbox=302
group=5
context=from-internal
channel => 2
callerid=
mailbox=
group=
context=default

;;; line="3 WCTDM/4/2 FXOKS (SWEC: MG2)"
signalling=fxo_ks
callerid=“Channel 3” <303>
mailbox=303
group=5
context=from-internal
channel => 3
callerid=
mailbox=
group=
context=default

;;; line="4 WCTDM/4/3 FXOKS (SWEC: MG2)"
signalling=fxo_ks
callerid=“Channel 4” <304>
mailbox=304
group=5
context=from-internal
channel => 4
callerid=
mailbox=
group=
context=default[/code]

system.conf

[code]# Autogenerated by /usr/sbin/dahdi_genconf on Sun Sep 18 14:04:39 2011

If you edit this file and execute /usr/sbin/dahdi_genconf again,

your manual changes will be LOST.

Dahdi Configuration File

This file is parsed by the Dahdi Configurator, dahdi_cfg

Span 1: WCTDM/4 “Wildcard TDM400P REV E/F Board 5” (MASTER)

fxoks=1
echocanceller=mg2,1
fxoks=2
echocanceller=mg2,2
fxoks=3
echocanceller=mg2,3
fxoks=4
echocanceller=mg2,4

Global data

loadzone = us
defaultzone = us[/code]

Some additional information

[code]pbx*CLI> dahdi show channels
Chan Extension Context Language MOH Interpret Blocked State
pseudo default default In Service
1 from-pstn en default In Service
2 from-pstn en default In Service
3 from-pstn en default In Service
4 from-pstn en default In Service

pbx*CLI> dahdi show channel 2
Channel: 2
File Descriptor: 17
Span: 1
Extension:
Dialing: no
Context: from-pstn
Caller ID: 304
Calling TON: 0
Caller ID name: device
Mailbox: 304@device
Destroy: 0
InAlarm: 0
Signalling Type: FXO Kewlstart
Radio: 0
Owner:
Real:
Callwait:
Threeway:
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Busy Detection: no
TDD: no
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
DND: no
Echo Cancellation:
128 taps
(unless TDM bridged) currently OFF
Wait for dialtone: 0ms
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Onhook

pbx*CLI> dahdi show channel 3
Channel: 3
File Descriptor: 33
Span: 1
Extension:
Dialing: no
Context: from-pstn
Caller ID: 304
Calling TON: 0
Caller ID name: device
Mailbox: 304@device
Destroy: 0
InAlarm: 0
Signalling Type: FXO Kewlstart
Radio: 0
Owner:
Real:
Callwait:
Threeway:
Confno: -1
Propagated Conference: -1
Real in conference: 0
DSP: no
Busy Detection: no
TDD: no
Relax DTMF: no
Dialing/CallwaitCAS: 0/0
Default law: ulaw
Fax Handled: no
Pulse phone: no
DND: no
Echo Cancellation:
128 taps
(unless TDM bridged) currently OFF
Wait for dialtone: 0ms
Actual Confinfo: Num/0, Mode/0x0000
Actual Confmute: No
Hookstate (FXS only): Onhook

pbx*CLI> dahdi show status
Description Alarms IRQ bpviol CRC4 Fra Codi Options LBO
Wildcard TDM400P REV E/F Board 5 OK 0 0 0 CAS Unk 0 db (CSU)/0-133 feet (DSX-1)[/code]

======================================================================================================

Log from outgoing fax session:

== Manager 'admin' logged on from 127.0.0.1 == Manager 'admin' logged off from 127.0.0.1 -- Starting simple switch on 'DAHDI/3-1' -- Executing [9@from-pstn:1] NoOp("DAHDI/3-1", "Catch-All DID Match - Found 9 - You probably want a DID for this.") in new stack -- Executing [9@from-pstn:2] Goto("DAHDI/3-1", "ext-did,s,1") in new stack -- Goto (ext-did,s,1) -- Executing [s@ext-did:1] Set("DAHDI/3-1", "__FROM_DID=s") in new stack -- Executing [s@ext-did:2] Gosub("DAHDI/3-1", "app-blacklist-check,s,1") in new stack -- Executing [s@app-blacklist-check:1] GotoIf("DAHDI/3-1", "0?blacklisted") in new stack -- Executing [s@app-blacklist-check:2] Set("DAHDI/3-1", "CALLED_BLACKLIST=1") in new stack -- Executing [s@app-blacklist-check:3] Return("DAHDI/3-1", "") in new stack -- Executing [s@ext-did:3] ExecIf("DAHDI/3-1", "0 ?Set(CALLERID(name)=304)") in new stack -- Executing [s@ext-did:4] Set("DAHDI/3-1", "__CALLINGPRES_SV=allowed_not_screened") in new stack -- Executing [s@ext-did:5] Set("DAHDI/3-1", "CALLERPRES()=allowed_not_screened") in new stack -- Executing [s@ext-did:6] Goto("DAHDI/3-1", "ivr-8,s,1") in new stack -- Goto (ivr-8,s,1) -- Executing [s@ivr-8:1] Set("DAHDI/3-1", "MSG=custom/inmz_ivr_intro") in new stack -- Executing [s@ivr-8:2] Set("DAHDI/3-1", "LOOPCOUNT=0") in new stack -- Executing [s@ivr-8:3] Set("DAHDI/3-1", "__DIR-CONTEXT=") in new stack -- Executing [s@ivr-8:4] Set("DAHDI/3-1", "_IVR_CONTEXT_ivr-8=") in new stack -- Executing [s@ivr-8:5] Set("DAHDI/3-1", "_IVR_CONTEXT=ivr-8") in new stack -- Executing [s@ivr-8:6] GotoIf("DAHDI/3-1", "0?begin") in new stack -- Executing [s@ivr-8:7] Answer("DAHDI/3-1", "") in new stack -- Executing [s@ivr-8:8] Wait("DAHDI/3-1", "1") in new stack -- Executing [s@ivr-8:9] Set("DAHDI/3-1", "TIMEOUT(digit)=3") in new stack -- Digit timeout set to 3.000 -- Executing [s@ivr-8:10] Set("DAHDI/3-1", "TIMEOUT(response)=10") in new stack -- Response timeout set to 10.000 -- Executing [s@ivr-8:11] Set("DAHDI/3-1", "__IVR_RETVM=") in new stack -- Executing [s@ivr-8:12] ExecIf("DAHDI/3-1", "1?Background(custom/inmz_ivr_intro)") in new stack -- <DAHDI/3-1> Playing 'custom/inmz_ivr_intro.slin' (language 'en') -- Invalid extension '50' in context 'ivr-8' on DAHDI/3-1 == CDR updated on DAHDI/3-1 -- Executing [i@ivr-8:1] Playback("DAHDI/3-1", "invalid") in new stack -- <DAHDI/3-1> Playing 'invalid.ulaw' (language 'en') -- Redirecting DAHDI/3-1 to fax extension == Spawn extension (ivr-8, fax, 1) exited non-zero on 'DAHDI/3-1' -- Executing [fax@ivr-8:1] Goto("DAHDI/3-1", ",,") in new stack == Spawn extension (ivr-8, fax, 1) exited non-zero on 'DAHDI/3-1' -- Executing [h@ivr-8:1] Hangup("DAHDI/3-1", "") in new stack == Spawn extension (ivr-8, h, 1) exited non-zero on 'DAHDI/3-1' -- Hungup 'DAHDI/3-1'

second fax verbose log (level 5)

pbx*CLI> -- Starting simple switch on 'DAHDI/2-1' -- Redirecting DAHDI/2-1 to fax extension -- Executing [fax@from-pstn:1] Goto("DAHDI/2-1", ",,") in new stack == Spawn extension (from-pstn, fax, 1) exited non-zero on 'DAHDI/2-1' -- Executing [h@from-pstn:1] Macro("DAHDI/2-1", "hangupcall,") in new stack -- Executing [s@macro-hangupcall:1] GotoIf("DAHDI/2-1", "1?skiprg") in new stack -- Goto (macro-hangupcall,s,4) -- Executing [s@macro-hangupcall:4] GotoIf("DAHDI/2-1", "1?skipblkvm") in new stack -- Goto (macro-hangupcall,s,7) -- Executing [s@macro-hangupcall:7] GotoIf("DAHDI/2-1", "1?theend") in new stack -- Goto (macro-hangupcall,s,9) -- Executing [s@macro-hangupcall:9] Hangup("DAHDI/2-1", "") in new stack == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'DAHDI/2-1' in macro 'hangupcall' == Spawn extension (from-pstn, h, 1) exited non-zero on 'DAHDI/2-1' -- Hungup 'DAHDI/2-1' pbx*CLI>

Thanks for your help,

Uri