[Asterisk-Users] Feedback needed! FindMe/FollowMe FeatureSpec.

Brian D'Arcy bdarcy at akiva.com
Tue Jun 1 19:45:44 MST 2004


Hi Adam,

I appreciate your feedback, and understand totally where you're coming
from as far as the database perspective goes.

For the first "draft" of the app, I think I'm going to let it default to
using a conf file for two reasons.

First, my setup currently does not utilize a database.  I would like to
move to that type of a setup in the future however.

Secondly, seeing as how I'm sitting down to learn C this week, I think
that is definitely biting off more than I can chew for a first attempt!


Should my endeavors pan out, I would be more than happy to implement
odbc connectivity.  I need to become more familiar with post and mysql
first however.  Up to this point, I've been strictly a MSSQL DBA due to
my job functions.

Thanks again for your feedback.

Brian D'Arcy
Operations Engineer
Akiva Corporation
 
E-Mail: bdarcy at akiva.com
Web: http://www.akiva.com
Phone: 760-710-3209

-----Original Message-----
From: asterisk-users-admin at lists.digium.com
[mailto:asterisk-users-admin at lists.digium.com] On Behalf Of Adam
Goryachev
Sent: Tuesday, June 01, 2004 5:50 PM
To: asterisk-users at lists.digium.com
Subject: Re: [Asterisk-Users] Feedback needed! FindMe/FollowMe
FeatureSpec.

On Wed, 2004-06-02 at 06:14, Brian D'Arcy wrote:
> Hello all,
> Have a .conf file (findme.conf?) which contains multiple contexts,
each
> context's name should match the naming convention used with sip, or
> iax.conf.  For example, if I have [bdarcy] as one of my sip peer
> entries, in findme.conf I would have, [bdarcy] also listed as an
entry.
> Values within each entry would be labeled something like,
> 
> [bdarcy]
> ExternalNum1: 91235551212
> ExternalNum2: 91235551213
> etc...

Good idea, I encourage you to go ahead and do this!

However, please don't use a seperate .conf file. Either use the dbodbc 
interface (if there is one) or at least use the astdb interface.

If someone 'forgot' their mobile, but is going to be sitting at their
friends house for the day, they 'should' be able to call into the
asterisk
pbx, enter some dialplan ext/password stuff, and remove/turn off the
mobile
followme step, and add in the local phone.

Should also be able to set a priority for each followme number, so they 
are tried in order of your preference.

To store in the db something like:
/followme/6600_1	: 90402xxxxxx
/followme/6600_2	: 6654
/followme/6600_3	: 98424xxxx

This would represent the following attempts to connect the call:
First, try me on my mobile, based on the phone number, 
(starts with a 9) it should grab a line in zap/g2 and call 0402xxxxxx

If that fails, then try me on a local extension (starts with 6) 6654

If that also fails, then try me on a landline (starts with 9) so grab
a line from zap/g2 and call 8424xxxx

I don't know if it is possible to 'use/abuse' the dialplan in this way,
where you can sort of follow the dialplan for a 'while' and then after 
the dial command fall-back to the app and allow it to continue.

The other option if that isn't possible is to specify the channel
details
in the astdb like this:
/followme/6600_1	: Zap/g2/0402xxxxxx
/followme/6600_2	: Zap/124
/followme/6600_3	: Zap/g2/8424xxxx

Actually, on second thoughts, couldn't we just use the Local channel 
driver like this:

Using the first db above, we need to call 90402xxxxxx so we call:
Dial(Local/90402xxxxxx)
which should follow the dialplan to make the call, and if it fails 
come back to us....

Perhaps comments on the above from other people would help.

I think trying to manage a conf file for a few hundred people would be
almost as bad as trying to put this stuff into the extensions.conf

Although, extensions.conf sounds like it will be accessible from a DB
shortly, so this might in fact be your better option anyway....

Just my 0.01c worth...

Regards,
Adam


_______________________________________________
Asterisk-Users mailing list
Asterisk-Users at lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users





More information about the asterisk-users mailing list