Hi Courtney,

This really depends on the type of channel you are using.  We use CAPI with one of our customers and they have ten DID's (DDI's in NZ) and use four BRI lines.  Here is a snippet from their extensions.conf that shows how it dials certain extensions based on the number dialled. The three digit number in the dialling rules are presented by the ISDN channel/CAPI and will probably be slightly different based on your telephony provider.  We had to dial one of the DDI's and see Asterisk reported it as being on the console to figure out how long the DDI number was.

(Note that you would be much better off using macros rather than the numerous entries that we have in extensions.conf, but we have structured it like this upon customer request).

;[incoming]
exten => s,1,Answer
exten => s,2,Dial(SIP/9295,20,t,)
; No answer or busy, so dial other extension(s) - can add others to this list if required
exten => s,3,Dial(SIP/9295&SIP/9287,,t,)   
;Queue not set up, do not use the following unless configuring it first.
;exten => s,3,Queue(receptionqueue)
;DDI's follow
;Manager (290)
exten => 290,1,Answer
exten => 290,2,Dial(SIP/9290,,t,)
exten => 290,3,Voicemail(9290)
exten => 290,4,Congestion
;Supervisor 1 (291)
exten => 291,1,Answer
exten => 291,2,Dial(SIP/9291,,t,)
exten => 291,3,Voicemail(9291)
exten => 291,4,Congestion

Hope this helps.
Damian.

FFF Managed Technology Ltd
60 Cook St
P.O. 6368 Wellesley St
Auckland
t +64 9 356 2911
f +64 9 358 9070
m +64 21 415 297
w www.fff.co.nz


Courtney Couch wrote:
If I were to buy 20 did's how do I know within asterisk which number was dialed? (like say I want a few of the did's to ring specific extensions if they are dialed and others to go through the menu)

Is there any ${var} that has the number dialed in on? (that would be optimum).

-Courtney.
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@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





_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@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

Reply via email to