SOLVED FIXED: 411 directory not working

ddorminey

Member
Joined
Dec 11, 2007
Messages
78
Reaction score
0
whenever i dial 411 on my pbx, i get...

"no directory entries match your search" on an endless loop.

Anyone know what causes this?

---Devin

piaf
* Running Asterisk Version : Asterisk 1.4.21.2
* Asterisk Source Version : 1.4.21.2
* Zaptel Source Version : 1.4.12.1
* Libpri Source Version : 1.4.7
* Addons Source Version : 1.4.7
 
we've never tried to use it before so i don't know if it ever worked.

I hadn't run the update scripts but have now with now improvement.

Permissions on pbdirectory or on what?
 
Are you not first hearing the "Welcome to the directory..." announcement? If you don't hear that, I would check to see if the file is missing...or permissions...

But, what is your objective- to use the internal directory, or to reach an outside information service?

By default, 411 is the feature code for the internal directory. But others have mapped the 411 to reach a free 411 service...
 
No, I'm not hearing anything but
"no directory entries match your search" on an endless loop.
 
Sorry, responded to the root... My goal is to use the internal automatically generated extension directory.
 
OK, so i did some more digging and went into the pbdirectory script to debug.

When i dial 411, i get the canned response called 'dir-nomatch' on an endless loop. The app does not play the "welcome-to-phonebook" message, nor the 'pbdirectory/first-three-letters-entry' message. she just jumps straight to 'no matching entries'

Does that ring any bells?
 
ok, i just ran chown asterisk:asterisk on that directory and chmod 664 on that directory with no change to the result
"no directory entries match your search"

Thanks for looking at the prob, though.

---D
 
my pbdirectory

Code:
root@pbx:/var/www/html/admin/modules/pbdirectory/sounds $ ls pbdirectory -Al
total 160
-rwxrwxr-x 1 asterisk asterisk 59052 Jul  1  2008 first-three-letters-entry.sln
-rwxrwxr-x 1 asterisk asterisk 27308 Jul  1  2008 if-correct-press.sln
-rwxrwxr-x 1 asterisk asterisk 30550 Jul  1  2008 if-incorrect-press.sln
-rwxrwxr-x 1 asterisk asterisk 35158 Jul  1  2008 welcome-to-phonebook.sln
 
contents of /tmp/pbdirectory.log

below is my pbdirectory log file. updated the last time i dialed 411...

Code:
array(1) {
  [0]=>
  string(37) "/var/lib/asterisk/agi-bin/pbdirectory"
}
int(2)
array(19) {
  [274]=>
  array(2) {
    [0]=>
    array(2) {
      ["number"]=>
      int(708)
      ["name"]=>
      string(6) "Ashley"
    }
    [1]=>
    array(2) {
      ["number"]=>
      int(705)
      ["name"]=>
      string(5) "Brian"
    }
  }
  [292]=>
  array(1) {
    [0]=>
    array(2) {
      ["number"]=>
      int(703)
      ["name"]=>
      string(5) "Ayako"
    }
  }
  [273]=>
  array(1) {
    [0]=>
    array(2) {
      ["number"]=>
      int(711)
      ["name"]=>
      string(9) "BreakRoom"
    }
  }
  [266]=>
  array(1) {
    [0]=>
    array(2) {
      ["number"]=>
      int(710)
      ["name"]=>
      string(16) "Conference Phone"
    }
  }
  [746]=>
  array(1) {
    [0]=>
    array(2) {
      ["number"]=>
      int(710)
      ["name"]=>
      string(16) "Conference Phone"
    }
  }
  [33]=>
  array(1) {
    [0]=>
    array(2) {
      ["number"]=>
      int(916)
      ["name"]=>
      string(8) "DD-Video"
    }
  }
  [338]=>
  array(2) {
    [0]=>
    array(2) {
      ["number"]=>
      int(914)
      ["name"]=>
      string(6) "DDTest"
    }
    [1]=>
    array(2) {
      ["number"]=>
      int(706)
      ["name"]=>
      string(5) "Devin"
    }
  }
  [422]=>
  array(1) {
    [0]=>
    array(2) {
      ["number"]=>
      int(713)
      ["name"]=>
      string(9) "HAAS Guru"
    }
  }
  [487]=>
  array(1) {
    [0]=>
    array(2) {
      ["number"]=>
      int(713)
      ["name"]=>
      string(9) "HAAS Guru"
    }
  }
  [724]=>
  array(1) {
    [0]=>
    array(2) {
      ["number"]=>
      int(777)
      ["name"]=>
      string(6) "Paging"
    }
  }
  [732]=>
  array(1) {
    [0]=>
    array(2) {
      ["number"]=>
      int(997)
      ["name"]=>
      string(8) "RecordMe"
    }
  }
  [742]=>
  array(1) {
    [0]=>
    array(2) {
      ["number"]=>
      int(701)
      ["name"]=>
      string(5) "Ricky"
    }
  }
  [744]=>
  array(1) {
    [0]=>
    array(2) {
      ["number"]=>
      int(712)
      ["name"]=>
      string(8) "Shipping"
    }
  }
  [837]=>
  array(3) {
    [0]=>
    array(2) {
      ["number"]=>
      int(715)
      ["name"]=>
      string(10) "Terry Desk"
    }
    [1]=>
    array(2) {
      ["number"]=>
      int(709)
      ["name"]=>
      string(14) "Terry Portable"
    }
    [2]=>
    array(2) {
      ["number"]=>
      int(714)
      ["name"]=>
      string(8) "Test Lab"
    }
  }
  [337]=>
  array(1) {
    [0]=>
    array(2) {
      ["number"]=>
      int(715)
      ["name"]=>
      string(10) "Terry Desk"
    }
  }
  [767]=>
  array(1) {
    [0]=>
    array(2) {
      ["number"]=>
      int(709)
      ["name"]=>
      string(14) "Terry Portable"
    }
  }
  [522]=>
  array(1) {
    [0]=>
    array(2) {
      ["number"]=>
      int(714)
      ["name"]=>
      string(8) "Test Lab"
    }
  }
  [925]=>
  array(1) {
    [0]=>
    array(2) {
      ["number"]=>
      int(704)
      ["name"]=>
      string(7) "Wallace"
    }
  }
  [945]=>
  array(2) {
    [0]=>
    array(2) {
      ["number"]=>
      int(702)
      ["name"]=>
      string(4) "Will"
    }
    [1]=>
    array(2) {
      ["number"]=>
      int(915)
      ["name"]=>
      string(8) "willTest"
    }
  }
}
 
mine stops too soon...

-- Executing [411@from-internal:1] Answer("SIP/706-b7c33000", "") in new stack
-- Executing [411@from-internal:2] Wait("SIP/706-b7c33000", "1") in new stack
-- Executing [411@from-internal:3] Goto("SIP/706-b7c33000", "pbdirectory|1") in new stack
-- Goto (from-internal,pbdirectory,1)
-- Executing [pbdirectory@from-internal:1] Macro("SIP/706-b7c33000", "user-callerid|") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/706-b7c33000", "AMPUSER=706") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/706-b7c33000", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/706-b7c33000", "1|Set|REALCALLERIDNUM=706") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/706-b7c33000", "AMPUSER=706") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/706-b7c33000", "AMPUSERCIDNAME=Devin") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/706-b7c33000", "0?report") in new stack
-- Executing [s@macro-user-callerid:7] Set("SIP/706-b7c33000", "AMPUSERCID=706") in new stack
-- Executing [s@macro-user-callerid:8] Set("SIP/706-b7c33000", "CALLERID(all)="Devin" <706>") in new stack
-- Executing [s@macro-user-callerid:9] ExecIf("SIP/706-b7c33000", "0|Set|CHANNEL(language)=") in new stack
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/706-b7c33000", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/706-b7c33000", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/706-b7c33000", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/706-b7c33000", "Using CallerID "Devin" <706>") in new stack
-- Executing [pbdirectory@from-internal:2] AGI("SIP/706-b7c33000", "pbdirectory") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/pbdirectory
pbdirectory: test
pbdirectory: start loop
pbdirectory: loop = 0
-- Playing 'dir-nomatch' (escape_digits=) (sample_offset 0)
== Spawn extension (from-internal, pbdirectory, 2) exited non-zero on 'SIP/706-b7c33000'
-- Executing [h@from-internal:1] Macro("SIP/706-b7c33000", "hangupcall") in new stack
-- Executing [s@macro-hangupcall:1] GotoIf("SIP/706-b7c33000", "1?skiprg") in new stack
-- Goto (macro-hangupcall,s,4)
-- Executing [s@macro-hangupcall:4] GotoIf("SIP/706-b7c33000", "1?skipblkvm") in new stack
-- Goto (macro-hangupcall,s,7)
-- Executing [s@macro-hangupcall:7] GotoIf("SIP/706-b7c33000", "1?theend") in new stack
-- Goto (macro-hangupcall,s,9)
-- Executing [s@macro-hangupcall:9] Hangup("SIP/706-b7c33000", "") in new stack
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/706-b7c33000' in macro 'hangupcall'
== Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/706-b7c33000'
 
This fix worked for me...

I have PIAF "purple" 1.7.5.5.4 (64-bit) running in a new installation, and it seemed to be working OK except for some documented blind transfer/VM bugs (note that I can't confirm whether 411 was working at this point or not). I used the "update-source" script to update the Asterisk source from 1.8.1.1 to 1.8.2, and this fixed the transfer/VM problems... but it was during functional testing after the update that I discovered that my 411 directory was returning only the repeated "no directory entries match your search" messages, and my IVR entry for the directory did the same.

So... after doing some reading in the forums, I did the following:

1.) In FreePBX "Module Admin", I uninstalled the "Phonebook Directory" module.

2.) I deleted the entire /var/www/html/admin/modules/pbdirectory tree

3.) After restarting, I went back to FreePBX "Module Admin" and Phonebook Directory was gone. I did a "check for updates online", and Phonebook Directory was installable. I installed Phonebook Directory using the normal FreePBX proceedure.

Presto! 411/IVR spell-by-name directory was working. I'm not sure whether it ever worked in my new install at all, or if the update to Asterisk 1.8.2 broke it. As others have indicated, could be a permissions thing, etc.

That worked for me... hope it helps someone else!

Dan
 
that fixed it for me too. although i had to delete the pbdirectory script in /var/lib/asterisk/agi-bin... maybe because I had monkeyed with it so much...

I had uninstalled and re-installed the module previously but not forceably deleted the files. thanks for the tip, G.O.D. ;)

---D
 
Sorry about that. I was having trouble making a dial-by-name directory work. I got it fixed. Thank you.
 
with asterisk 12, any ways to disable that 411 internal feature and map it to external?

Some tutorial about getting toll free 411, 1888-555-1212, using misc destination and misc app.

if I choose any number other than 411, it works. But when I tried 411, it fails. It looks like 411 is used by something (this internal phonebook), how to disable it? I can't find anything in 411 related to any phonebook, feature codes (I changed the Phonebook dial-by-name directory and even disabled it).. no extension of 411.

??
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,409
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top