I could really use some help here and I’m about to pull all my hair out. I have an asterisk system (version 18.104.22.168) 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:
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 pbx_spool.c: – Attempting call on DAHDI/g0 for [email protected]:1 (Retry 1)
[2011-10-06 20:24:39] VERBOSE pbx.c: – Executing [[email protected]:1] Dial(“DAHDI/1-1”, “DAHDI/g0/ww8878511”) in new stack
[2011-10-06 20:24:39] VERBOSE app_dial.c: – Called g0/ww8878511
[2011-10-06 20:24:43] VERBOSE app_dial.c: – DAHDI/2-1 answered DAHDI/1-1
[2011-10-06 20:24:43] VERBOSE chan_dahdi.c: – Native bridging DAHDI/1-1 and DAHDI/2-1
[2011-10-06 20:24:59] VERBOSE chan_dahdi.c: – Hungup ‘DAHDI/2-1’
[2011-10-06 20:24:59] VERBOSE pbx.c: == Spawn extension (techmart-lights, s, 1) exited non-zero on ‘DAHDI/1-1’
[2011-10-06 20:24:59] VERBOSE chan_dahdi.c: – Hungup ‘DAHDI/1-1’
[2011-10-06 20:24:59] NOTICE pbx_spool.c: Call completed to DAHDI/g0