Dahdi - dialing out and hanging up - please help

Hi All,

I could really use some help here and I’m about to pull all my hair out. I have an asterisk system (version with 4 analog lines coming in using an Sagoma A400 card. Internally, I’m using IP phones. So far the system has been working fine for the last 6 months.

Now, because my building automatically turn off the lights at 6:15, I’m trying to program the system to call out at 6:15pm everyday to turn the lights on (this is accomplished by calling a phone number and pressing certain digits).

I have written the files below. I can get the calling out part to work. But the call would hang up without sending the DTMF (please see the log below) or even executing the next line. I have researched native bridging, tried setting “transfer=no” in channel_dahdi.conf, and a number of other things without success.

So far I could not figure out what is wrong. What is native bridging and why is it happening? Why does it hang up after native bridging? What do I need to do? Please help and thank you all for helping.


The lines below are content of the “lights.call” file:
Channel: DAHDI/g0
MaxRetries: 3
WaitTime: 30
Context: techmart-lights
Extension: s
Priority: 1

The lines below are in the extensions_custom.conf
exten => s,1,Dial(DAHDI/g0/ww8878511)
exten => s,2,Wait(10)
exten => s,3,SendDTMF(w2w7w0w1w#w)
exten => s,4,Hangup

The lines below are from the “full” asterisk log file:

[2011-10-06 20:24:38] VERBOSE[5599] pbx_spool.c: – Attempting call on DAHDI/g0 for [email protected]:1 (Retry 1)
[2011-10-06 20:24:39] VERBOSE[5599] pbx.c: – Executing [[email protected]:1] Dial(“DAHDI/1-1”, “DAHDI/g0/ww8878511”) in new stack
[2011-10-06 20:24:39] VERBOSE[5599] app_dial.c: – Called g0/ww8878511
[2011-10-06 20:24:43] VERBOSE[5599] app_dial.c: – DAHDI/2-1 answered DAHDI/1-1
[2011-10-06 20:24:43] VERBOSE[5599] chan_dahdi.c: – Native bridging DAHDI/1-1 and DAHDI/2-1
[2011-10-06 20:24:59] VERBOSE[5599] chan_dahdi.c: – Hungup ‘DAHDI/2-1’
[2011-10-06 20:24:59] VERBOSE[5599] pbx.c: == Spawn extension (techmart-lights, s, 1) exited non-zero on ‘DAHDI/1-1’
[2011-10-06 20:24:59] VERBOSE[5599] chan_dahdi.c: – Hungup ‘DAHDI/1-1’
[2011-10-06 20:24:59] NOTICE[5599] pbx_spool.c: Call completed to DAHDI/g0

May I ask what this has to do with FreePBX?

This is an Asterisk development issue.

Oooops! I’m just so used to reading this forum and have my issues resolved here; it did not occur to me that this is FreePBX (which I use). Sorry! I’ll try somewhere else and if any one can direct me to another forum or suggestions, it would be much appreciated. Thank you all.