Dial-by-name / directory not working

Running latest Trixbox (1.1.1), and have most things working (including the AstTapi Outlook plug-in, which is cool!)

One of the few things I can’t get working is the dial-by-name / directory function. I have a digital receptionist entry set up with the “Enable Directory” option checked, but when hitting “#” to access the directory, it says it is an invalid response (or maybe invalid extension?)

Here are the corresponding log entries:

Aug 10 16:52:18 DEBUG[5494] pbx.c: Launching ‘BackGround’
Aug 10 16:52:18 DEBUG[5494] channel.c: Set channel Zap/1-1 to write format slin
Aug 10 16:52:18 DEBUG[5494] channel.c: Scheduling timer at 160 sample intervals
Aug 10 16:52:31 DEBUG[5494] chan_zap.c: DTMF digit: # on Zap/1-1
Aug 10 16:52:31 DEBUG[5494] channel.c: Scheduling timer at 0 sample intervals
Aug 10 16:52:31 DEBUG[5494] channel.c: Set channel Zap/1-1 to write format ulaw
Aug 10 16:52:31 DEBUG[5494] pbx.c: Oooh, got something to jump out with (’#’)!
Aug 10 16:52:31 DEBUG[5494] pbx.c: Launching 'Playback’
Aug 10 16:52:31 DEBUG[5494] channel.c: Set channel Zap/1-1 to write format ulaw
Aug 10 16:52:31 DEBUG[5494] channel.c: Scheduling timer at 160 sample intervals
Aug 10 16:52:35 DEBUG[5494] channel.c: Scheduling timer at 18 sample intervals
Aug 10 16:52:35 DEBUG[5494] channel.c: Scheduling timer at 0 sample intervals
Aug 10 16:52:35 DEBUG[5494] channel.c: Scheduling timer at 0 sample intervals
Aug 10 16:52:35 DEBUG[5494] channel.c: Set channel Zap/1-1 to write format ulaw
Aug 10 16:52:35 DEBUG[5494] pbx.c: Launching 'Goto’
Aug 10 16:52:35 DEBUG[5494] pbx.c: Expression result is '1’
Aug 10 16:52:35 DEBUG[5494] pbx.c: Launching 'Set’
Aug 10 16:52:35 DEBUG[5494] pbx.c: Expression result is '0’
Aug 10 16:52:35 DEBUG[5494] pbx.c: Launching 'GotoIf’
Aug 10 16:52:35 DEBUG[5494] pbx.c: Not taking any branch
Aug 10 16:52:35 DEBUG[5494] pbx.c: Launching 'Goto’
Aug 10 16:52:35 DEBUG[5494] pbx.c: Launching 'Set’
Aug 10 16:52:35 DEBUG[5494] pbx.c: Launching 'Set’
Aug 10 16:52:35 DEBUG[5494] pbx.c: Launching ‘BackGround’

Post what the CLI shows during the call with a verbosity of atleast 4

Thanks for the suggestion.

I started Asterisk with verbosity levels up to 6, and only got this extra bit of info:

VERBOSE[3812] logger.c: – Invalid extension ‘#’ in context ‘ivr-3’ on Zap/1-1

Did more digging, and see that it is logging this error that I missed previously:

WARNING[4397] pbx.c: Context ‘ivr-3’ tries includes nonexistent context ‘app-directory’

The [ivr-3] clause in extensions_additional.conf:

[ivr-3]
include => ivr-3-custom
include => ext-findmefollow
include => ext-local
include => app-directory
exten => h,1,Hangup
exten => s,1,Set(LOOPCOUNT=0)
exten => s,n,Set(__DIR-CONTEXT=default)
exten => s,n,Answer
exten => s,n,Wait(1)
exten => s,n(begin),Set(TIMEOUT(digit)=3)
exten => s,n,Set(TIMEOUT(response)=10)
exten => s,n,Background(custom/main-greeting)
exten => hang,1,Playback(vm-goodbye)
exten => hang,n,Hangup
exten => 0,1,Goto(ext-local,${VM_PREFIX}199,1)
exten => 1,1,Goto(ext-local,${VM_PREFIX}199,1)
exten => 2,1,Goto(ext-local,${VM_PREFIX}199,1)
exten => t,1,Goto(ext-local,${VM_PREFIX}199,1)
exten => i,1,Playback(invalid)
exten => i,n,Goto(loop,1)
exten => loop,1,Set(LOOPCOUNT=$[${LOOPCOUNT} + 1])
exten => loop,n,GotoIf($[${LOOPCOUNT} > 2]?hang,1)
exten => loop,n,Goto(ivr-3,s,begin)
exten => fax,1,Goto(ext-fax,in_fax,1)

The applications.conf file is what shipped w/ Trixbox; here is the directory section:

[app-directory]
;DIR-CONTEXT set in Digital Receptionist
exten => ${APP-DIRECTORY},1,Wait(1)
exten => ${APP-DIRECTORY},2,AGI(directory,${DIR-CONTEXT},ext-local,${DIRECTORY:0:1}${DIRECTORY_OPTS}o)
exten => ${APP-DIRECTORY},3,Playback(vm-goodbye)
exten => ${APP-DIRECTORY},4,Hangup
; ${APP-DIRECTORY-TOTAL} will access the entire directory (not just a single context)
exten => ${APP-DIRECTORY-TOTAL},1,Answer
exten => ${APP-DIRECTORY-TOTAL},2,Wait(1)
exten => ${APP-DIRECTORY-TOTAL},3,AGI(directory,general,ext-local,${DIRECTORY:0:1}${DIRECTORY_OPTS})
exten => ${APP-DIRECTORY-TOTAL},4,Playback(vm-goodbye)
exten => ${APP-DIRECTORY-TOTAL},5,Hangup
exten => h,1,Hangup
exten => o,1,GotoIf($[“foo${FROM_DID}” = “foo”]?from-pstn,s,1:from-pstn,${FROM_DID},1)

Any help appreciated!

what do you have set for the directory options ?? in extensions_additional.conf, what values are there for APP-DIRECTORY and APP-DIRECTORY-TOTAL

did you search the TrixBox forums ? is this applicable ? trixbox.org/modules/newbb/vi … 25&forum=2

Yes, I did quite a bit of digging before posting, but didn’t see the thread you linked.

That was one problem (thanks for the pointer!) but then I ran into another problem described here:

trixbox.org/modules/newbb/vi … 96&forum=1

(*411 would work if I changed the directory code in the feature codes list,
but # wouldn’t)

For grins, I tried changing the feature code back to default, and that did the
trick - now it works with “#” as it should…

Again, thanks for the help!