Hello,

It's not possible, because the flat file is generated since a database, and each day, there is news customers.
Best regards,
Olivier S.

Innocent Evil a écrit :

Why don't you do something like this:

exten => 12345678,1,Dial(10)
exten => 45874521,1,Dial(11)
exten => 32544884,1,Dial(12)

replace Dial(10) and so on with apppriate extension.


Thanks,



--
You don't have any choice, you already made it before you came here.


-----Original Message-----
From: [EMAIL PROTECTED]
Sent: Wed, 26 Apr 2006 08:47:03 +0200
To: [email protected]
Subject: [Asterisk-Users] AGI and incoming call

Hello,

I would like to intercept each incoming call and with an awk script,
search the internal phone number ask.
For example:
I have a text database as this:
External phone   Internal Phone
12345678             10
45874521             11
32544884             12

When the client 45874521 call, Asterisk must routed the incoming call to
the internal phone 11
I have an awk script able to find the good internal phone, but i don't
know how to interface it with Asterisk. I thought that AGI is the best
way. Is it?

Best regards,

--
Olivier Saulnier
STEGANUX
35 Quai Louis Blanc
03100 Montluçon
T: 04.70.02.80.55
F: 04.70.02.80.57
http://www.steganux.com

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

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





--
Olivier Saulnier
STEGANUX
35 Quai Louis Blanc
03100 Montluçon
T: 04.70.02.80.55
F: 04.70.02.80.57
http://www.steganux.com

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

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

Reply via email to