[size=150]P.s. I will fscking paypal you $$ if you can help solve this once and for all. Not even kidding.[/size]
Also here’s my dahdi.conf
[code];autogenerated by /usr/sbin/wancfg_dahdi do not hand edit
;autogenrated on 2011-01-23
;Dahdi Channels Configurations
;For detailed Dahdi options, view /etc/asterisk/chan_dahdi.conf.bak
[trunkgroups]
[channels]
context=default
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0.0
txgain=0.0
group=1
callgroup=1
pickupgroup=1
immediate=no
busydetect=yes
busycount=9
busypattern=500,500
hanguponpolarityswitch=yes
;Sangoma AFT-A200 [slot:2 bus:3 span:1]
context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 1
context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 2
context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 3
context=from-zaptel
group=0
echocancel=yes
signalling = fxs_ks
channel => 4
[/code]
Here’s a debug output on the DAHDI 3-1 that is tied up at the moment.
[code]
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Executing [s@macro-vm:2] Set(“DAHDI/3-1”, “VMGAIN=”"") in new stack
[Jun 6 19:10:18] DEBUG[7177] app_macro.c: Executed application: Set
[Jun 6 19:10:18] WARNING[7177] func_db.c: DB requires an argument, DB(/)
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Executing [s@macro-vm:3] GotoIf(“DAHDI/3-1”, “1?vmx|1”) in new stack
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Goto (macro-vm,vmx,1)
[Jun 6 19:10:18] DEBUG[7177] app_macro.c: Executed application: GotoIf
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Executing [vmx@macro-vm:1] Set(“DAHDI/3-1”, “MEXTEN=100”) in new stack
[Jun 6 19:10:18] DEBUG[7177] app_macro.c: Executed application: Set
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Executing [vmx@macro-vm:2] Set(“DAHDI/3-1”, “MMODE=NOANSWER”) in new stack
[Jun 6 19:10:18] DEBUG[7177] app_macro.c: Executed application: Set
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Executing [vmx@macro-vm:3] Set(“DAHDI/3-1”, “RETVM=”) in new stack
[Jun 6 19:10:18] DEBUG[7177] app_macro.c: Executed application: Set
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Executing [vmx@macro-vm:4] Set(“DAHDI/3-1”, “MODE=unavail”) in new stack
[Jun 6 19:10:18] DEBUG[7177] app_macro.c: Executed application: Set
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Executing [vmx@macro-vm:5] GotoIf(“DAHDI/3-1”, “1?chknomsg”) in new stack
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Goto (macro-vm,vmx,7)
[Jun 6 19:10:18] DEBUG[7177] app_macro.c: Executed application: GotoIf
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Executing [vmx@macro-vm:7] GotoIf(“DAHDI/3-1”, “0?s-NOANSWER|1”) in new stack
[Jun 6 19:10:18] DEBUG[7177] app_macro.c: Executed application: GotoIf
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Executing [vmx@macro-vm:8] GotoIf(“DAHDI/3-1”, “1?notdirect”) in new stack
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Goto (macro-vm,vmx,10)
[Jun 6 19:10:18] DEBUG[7177] app_macro.c: Executed application: GotoIf
[Jun 6 19:10:18] DEBUG[7177] func_db.c: DB: AMPUSER/100/vmx/unavail/state not found in database.
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Executing [vmx@macro-vm:10] NoOp(“DAHDI/3-1”, "Checking if ext 100 is enabled: ") in new stack
[Jun 6 19:10:18] DEBUG[7177] app_macro.c: Executed application: Noop
[Jun 6 19:10:18] DEBUG[7177] func_db.c: DB: AMPUSER/100/vmx/unavail/state not found in database.
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Executing [vmx@macro-vm:11] GotoIf(“DAHDI/3-1”, “1?s-NOANSWER|1”) in new stack
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Goto (macro-vm,s-NOANSWER,1)
[Jun 6 19:10:18] DEBUG[7177] app_macro.c: Executed application: GotoIf
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Executing [s-NOANSWER@macro-vm:1] Macro(“DAHDI/3-1”, “get-vmcontext|100”) in new stack
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Executing [s@macro-get-vmcontext:1] Set(“DAHDI/3-1”, “VMCONTEXT=default”) in new stack
[Jun 6 19:10:18] DEBUG[7177] app_macro.c: Executed application: Set
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Executing [s@macro-get-vmcontext:2] GotoIf(“DAHDI/3-1”, “0?200:300”) in new stack
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Goto (macro-get-vmcontext,s,300)
[Jun 6 19:10:18] DEBUG[7177] app_macro.c: Executed application: GotoIf
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Executing [s@macro-get-vmcontext:300] NoOp(“DAHDI/3-1”, “”) in new stack
[Jun 6 19:10:18] DEBUG[7177] app_macro.c: Executed application: NoOp
[Jun 6 19:10:18] DEBUG[7177] app_macro.c: Executed application: Macro
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – Executing [s-NOANSWER@macro-vm:2] VoiceMail(“DAHDI/3-1”, “100@default|u”) in new stack
[Jun 6 19:10:18] DEBUG[7177] chan_dahdi.c: Took DAHDI/3-1 off hook
[Jun 6 19:10:18] DEBUG[7177] chan_dahdi.c: No echo training requested
[Jun 6 19:10:18] VERBOSE[7177] logger.c: – <DAHDI/3-1> Playing ‘/var/spool/asterisk/voicemail/default/100/unavail’ (language ‘en’)
[Jun 6 19:10:45] VERBOSE[7177] logger.c: – <DAHDI/3-1> Playing ‘vm-intro’ (language ‘en’)
[Jun 6 19:10:49] VERBOSE[7222] logger.c: == Manager ‘admin’ logged on from 127.0.0.1
[Jun 6 19:10:50] VERBOSE[7222] logger.c: == Manager ‘admin’ logged off from 127.0.0.1
[Jun 6 19:10:51] VERBOSE[7177] logger.c: – <DAHDI/3-1> Playing ‘beep’ (language ‘en’)
[Jun 6 19:10:51] VERBOSE[7177] logger.c: – Recording the message
[Jun 6 19:10:51] VERBOSE[7177] logger.c: – x=0, open writing: /var/spool/asterisk/voicemail/default/100/tmp/ca9DcL format: wav49, 0x9ff4420
[Jun 6 19:10:51] VERBOSE[7177] logger.c: – x=1, open writing: /var/spool/asterisk/voicemail/default/100/tmp/ca9DcL format: wav, 0x9ff9208[/code]