Re: [Asterisk-Users] How does asterisk know the did called on?

2005-04-03 Thread Rich Adamson
 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).

It varies as to how each provider handles this, but the majority of those
I've tested with send the DID number as the extension dialed.

As an example, when livevoip sends an incoming 800 call (did is the same)
to my * box, they send the call to extn 8001234567 and I handle it in the
extensions.conf like this:
 [livevoip800]
 exten=8001234567,1,Dial(SIP/3000,10)

A customer uses a PRI with about 30 did's. Each incoming DID call includes
the dialed number, and the above approach is used to map those incoming
calls to specific extensions.

A variation of the above is to use a GoTo statement (instead of the Dial
statement) to send the call to an existing context/registration.



___
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


Re: [Asterisk-Users] How does asterisk know the did called on?

2005-04-03 Thread Eric Wieling aka ManxPower
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).
Your carrier can tell you how many digits they will send to you. 
Asterisk sees these digits and will match exten = 1234,1,Blah if the 
carrier sends you 4 digits.

Remember Asterisk does not really support DID on analog ports, only 
T-1/E-1 (including PRI) ports , BRI ports, and VoIP ports.

___
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] How does asterisk know the did called on?

2005-04-02 Thread Courtney Couch
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


Re: [Asterisk-Users] How does asterisk know the did called on?

2005-04-02 Thread Damian Funnell




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/9295SIP/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