All pastes #2073740 Raw Edit

outbound calling problems with d

public text v1 · immutable
#2073740 ·published 2011-06-02 15:48 UTC
rendered paste body
==== Call file that works ====
Channel: SIP/mytrunk/17705551212
Callerid: 12055551212
Context: outbound-test
MaxRetries: 1
RetryTime: 60
WaitTime: 30
Extension: 10
Archive: 1

==== Call file that doesn't work ====
Channel: DAHDI/1/917705551212
Callerid: 12055551212
Context: outbound-test
MaxRetries: 1
RetryTime: 60
WaitTime: 30
Extension: 10
Archive: 1

==== CLI output (asterisk -rvvvvvvvvvvd) with non-working call file ====

    -- Attempting call on DAHDI/1/917705551212 for 10@outbound-test:1 (Retry 1)
    -- Hungup 'DAHDI/1-1'
    -- Executing [failed@outbound-test:1] Verbose("OutgoingSpoolFailed", "exten failed - Channel: OutgoingSpoolFailed Reason: 0 DialStatus: ") in new stack
exten failed - Channel: OutgoingSpoolFailed Reason: 0 DialStatus: 
  == Auto fallthrough, channel 'OutgoingSpoolFailed' status is 'UNKNOWN'
    -- Executing [h@outbound-test:1] Verbose("OutgoingSpoolFailed", "exten h - Channel: OutgoingSpoolFailed Reason: 0 HangupCause: 0 DialStatus: ") in new stack
exten h - Channel: OutgoingSpoolFailed Reason: 0 HangupCause: 0 DialStatus: 

==== Full log ====

[Jun  2 08:36:56] DEBUG[5044] chan_dahdi.c: Dialing '917705551212'
[Jun  2 08:36:56] DEBUG[5044] chan_dahdi.c: Deferring dialing... (res -1)
[Jun  2 08:36:57] DEBUG[5044] chan_dahdi.c: Exception on 10, channel 1
[Jun  2 08:36:57] DEBUG[5044] chan_dahdi.c: Got event Hook Transition Complete(12) on channel 1 (index 0)
[Jun  2 08:36:57] DEBUG[5044] chan_dahdi.c: Sent deferred digit string: T917705551212w
[Jun  2 08:37:00] DEBUG[5044] chan_dahdi.c: Exception on 10, channel 1
[Jun  2 08:37:00] DEBUG[5044] chan_dahdi.c: Got event Dial Complete(9) on channel 1 (index 0)
[Jun  2 08:37:00] DEBUG[5044] chan_dahdi.c: Enabled echo cancellation on channel 1
[Jun  2 08:37:28] DEBUG[5044] channel.c: Hanging up channel 'DAHDI/1-1'
[Jun  2 08:37:28] DEBUG[5044] chan_dahdi.c: dahdi_hangup(DAHDI/1-1)
[Jun  2 08:37:28] DEBUG[5044] chan_dahdi.c: Hangup: channel: 1 index = 0, normal = 10, callwait = -1, thirdcall = -1
[Jun  2 08:37:28] DEBUG[5044] chan_dahdi.c: disabled echo cancellation on channel 1
[Jun  2 08:37:28] DEBUG[5044] chan_dahdi.c: Set option TDD MODE, value: OFF(0) on DAHDI/1-1
[Jun  2 08:37:28] DEBUG[5044] chan_dahdi.c: Updated conferencing on 1, with 0 conference users
[Jun  2 08:37:28] VERBOSE[5044] logger.c:     -- Hungup 'DAHDI/1-1'
[Jun  2 08:37:28] DEBUG[5044] pbx.c: Launching 'Verbose'
[Jun  2 08:37:28] VERBOSE[5044] logger.c:     -- Executing [failed@outbound-test:1] Verbose("OutgoingSpoolFailed", "exten failed - Channel: OutgoingSpoolFailed Reason: 0 DialStatus: ") in new stack
[Jun  2 08:37:28] VERBOSE[5044] logger.c: exten failed - Channel: OutgoingSpoolFailed Reason: 0 DialStatus: 
[Jun  2 08:37:28] VERBOSE[5044] logger.c:   == Auto fallthrough, channel 'OutgoingSpoolFailed' status is 'UNKNOWN'
[Jun  2 08:37:28] DEBUG[5044] channel.c: Soft-Hanging up channel 'OutgoingSpoolFailed'
[Jun  2 08:37:28] DEBUG[5044] pbx.c: Launching 'Verbose'
[Jun  2 08:37:28] VERBOSE[5044] logger.c:     -- Executing [h@outbound-test:1] Verbose("OutgoingSpoolFailed", "exten h - Channel: OutgoingSpoolFailed Reason: 0 HangupCause: 0 DialStatus: ") in new stack
[Jun  2 08:37:28] VERBOSE[5044] logger.c: exten h - Channel: OutgoingSpoolFailed Reason: 0 HangupCause: 0 DialStatus: 
[Jun  2 08:37:28] DEBUG[5044] channel.c: Hanging up channel 'OutgoingSpoolFailed'
[Jun  2 08:37:28] NOTICE[5044] pbx_spool.c: Call failed to go through, reason (0) Call Failure (not BUSY, and not NO_ANSWER, maybe Circuit busy or down?)

==== /etc/dahdi/system.conf ====

span=1,1,0,esf,b8zs
e&m=1-24
loadzone        = us
defaultzone     = us

==== /etc/asterisk/chan_dahdi.conf ====

[channels]
context=from-legacy-pbx
signalling=em_w
immediate=no
busydetect=yes
busycount=5
callprogress=no
group=1
channel => 1-24

==== /etc/asterisk/extensions.conf ====

[globals]
SS=$

[general]
autofallthrough=yes

[default]

[incoming_calls]

[internal]

[phones]
include => internal

[from-legacy-pbx]
exten => _91NXXNXXXXXX,1,Verbose(from-legacy-pbx context entered, exten phone no)

exten => 10,1,Verbose(from-legacy-pbx context entered, exten 10)

[outbound-test]
exten => 10,1,Verbose("started in outbound-test")

exten => 10,n,Answer()
exten => 10,n,Verbose("past Answer() in outbound-test")
exten => 10,n,Background(slience/1)
exten => 10,n,Verbose(device_state(${testme}): ${DEVICE_STATE(${testme})})
exten => 10,n,Verbose(device_state(${CHANNEL}): ${DEVICE_STATE(${CHANNEL})})
exten => 10,n,AMD()
exten => 10,n,Verbose(AMDSTATUS is ${AMDSTATUS})
exten => 10,n,GotoIf($[${AMDSTATUS}=HUMAN]?humn:mach)
exten => 10,n(humn),Verbose(Human detected)
exten => 10,n,WaitForSilence(500)
exten => 10,n,Festival(Testing human human)
exten => 10,n,SayDigits(123)
exten => 10,n,Hangup()
exten => 10,n(mach),Verbose(Machine detected)
exten => 10,n,WaitForSilence(2500)
exten => 10,n,Festival(Testing machine machine)
exten => 10,n,SayDigits(456)
exten => 10,n,Festival(Goodbye)
exten => 10,n,Hangup()
exten => h,1,Verbose(exten h - Channel: ${CHANNEL} Reason: ${REASON} HangupCause: ${HANGUPCAUSE} DialStatus: ${DIALSTATUS})
exten => failed,1,Verbose(exten failed - Channel: ${CHANNEL} Reason: ${REASON} DialStatus: ${DIALSTATUS})