Hi, Our company is sharing * with multiple small companies. Our dial plan makes heavy use of patterns and DB look ups (postgresql) to avoid having to hard code values, especially since a lot of the dial plan is common to all the different companies. The problem we're run into to with the employee directories. The directory reads its values from voicemail.conf, using the context in voicemail.conf as the context to jump to in extensions.conf. This means that we need to create a context in extensions.conf for every company, duplicating a lot of code. Now, we've found a way to still divide each company into separate contexts in voicemail.conf and have them all just to the same context in extensions.conf. However, we need access to the actual extension number, which does not appear to be passed when the jump to extensions is made. This appears to result from forcing the context to jump to in extensions. So, the question is does anyone know of a way to get the extension number when the dial plan context is entered via Directory(), and if so how? David Filion
On Mon, 01 Nov 2004 16:21:46 -0500, David Filion <dfilion@dotality.com> wrote:> > So, the question is does anyone know of a way to get the extension > number when the dial plan context is entered via Directory(), and if so how? > > David FilionDavid, You could always right your own directory application (AGI if you want) that reads from Postgres. It would be pretty easy. -Chuji
Message: 5 Date: Mon, 1 Nov 2004 16:09:09 -0600 From: Brian Roy <mister.roy@gmail.com> Subject: Re: [Asterisk-Users] Directory app and extension To: Asterisk Users Mailing List - Non-Commercial Discussion <asterisk-users@lists.digium.com> Message-ID: <131664490411011409e6d73b6@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII On Mon, 01 Nov 2004 16:21:46 -0500, David Filion <dfilion@dotality.com> wrote:>> >> So, the question is does anyone know of a way to get the extension >> number when the dial plan context is entered via Directory(), and if so how? >> >> David Filion > >David, You could always right your own directory application (AGI if you want) that reads from Postgres. It would be pretty easy. -Chuji Hi, The problem isn't reading from postgresql. In fact there is app_postgres which work pretty well. The problem is the Directory app doesn't provide appear to provice access to the extension that it has "found", so when it enters the specified context in extensions.conf, we can't refer to the "incoming" extension. We use the extension to do our db look ups, so with out it we're stuck. :( David