Create the 2 extensions in /etc/asterisk/extension.conf 

exten = 88888,1,Answer()
.
Script 1
.

exten = 99999,1,Answer()
.
Script 2
.

Make sure that the channel where the calls come in route the call to the
context where you defined the scripts.

Hope this helps,


Henk

________________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of issam
Sent: donderdag 1 juni 2006 9:41
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] configuration

hello
I have 2 services with 2different numbers. the first is 888888 and the
second is 999999. if a user call 888888 I want to execute the script1 and if
he call 999999 I execute the script2. 
How can I do my configs files?
big Thanks
issam


_______________________________________________
--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