Dear,
I’m having a problem with DAHDI extensions and macro-user-callerid. The macro-caller-userid can’t locate the AMPUSER from my DAHDI extensions.
I saw the forum post http://www.freepbx.org/forum/freepbx/users/not-bug-in-2-7-for-zap-handling-but-in-the-chan-dahdi-conf and I did some checks in my configs.
My chan_dahdi_additional.conf ->
;;;;;;[7000]
signalling=fxo_ks
pickupgroup=1
mailbox=7000@default
immediate=no
echotraining=yes
echocancelwhenbridged=no
echocancel=yes
context=from-internal
callprogress=yes
callgroup=1
callerid=device <7000>
busydetect=yes
busycount=2
accountcode=7000
channel=>3
[root@remi asterisk]# asterisk -rx ‘database show device/7000’ ->
Parsing /etc/asterisk/extconfig.conf
/DEVICE/7000/default_user : 7000
/DEVICE/7000/dial : ZAP/3
/DEVICE/7000/type : fixed
/DEVICE/7000/user : 7000
4 results found.
Asterisk ending (0).
And when I place a call from my dahdi extension 7000 to, for exemple, voicemail *97, the 7000 caller id isn’t identified and the feature *97 asks me for my mailbox and password.
Bellow an output log ->
-- Starting simple switch on 'DAHDI/3-1'
-- Executing [*97@from-internal:1] Answer("DAHDI/3-1", "") in new stack
-- Executing [*97@from-internal:2] Wait("DAHDI/3-1", "1") in new stack
-- Executing [*97@from-internal:3] Macro("DAHDI/3-1", "user-callerid,") in new stack
-- Executing [s@macro-user-callerid:1] Set("DAHDI/3-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("DAHDI/3-1", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("DAHDI/3-1", "1?Set(REALCALLERIDNUM=)") in new stack
-- Executing [s@macro-user-callerid:4] Set("DAHDI/3-1", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("DAHDI/3-1", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("DAHDI/3-1", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("DAHDI/3-1", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("DAHDI/3-1", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("DAHDI/3-1", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("DAHDI/3-1", "Using CallerID "" <>") in new stack
-- Executing [*97@from-internal:4] Macro("DAHDI/3-1", "get-vmcontext,") in new stack
-- Executing [s@macro-get-vmcontext:1] Set("DAHDI/3-1", "VMCONTEXT=") in new stack
-- Executing [s@macro-get-vmcontext:2] GotoIf("DAHDI/3-1", "1?200:300") in new stack
-- Goto (macro-get-vmcontext,s,200)
-- Executing [s@macro-get-vmcontext:200] Set("DAHDI/3-1", "VMCONTEXT=default") in new stack
-- Executing [*97@from-internal:5] MailboxExists("DAHDI/3-1", "@default") in new stack
-- Executing [*97@from-internal:6] GotoIf("DAHDI/3-1", "0?mbexist") in new stack
-- Executing [*97@from-internal:7] VoiceMailMain("DAHDI/3-1", "") in new stack
-- <DAHDI/3-1> Playing 'vm-login.gsm' (language 'en')
I opened a bug ticket but Mister p_lindheimer said this is not a FreePBX bug, is and error in my dahdi configuration, but my chan_dahdi.conf and chan_dahdi_additional.conf are correct because the command asterisk -rx ‘database show device/7000’ reports the correct information.
So, what’s wrong?