Asterisk PBX : extensions.conf

[e911]
; EMERGENCY OUTBOUND
;
; United States dialing supports “911″ emergency calls
; which are routed to the “closest” emergency contact center.
;
; Of course, you need to make sure that the center to which
; you are connecting is actually able to do something useful
; for the dialer; it doesn’t make sense to have your NY branch
; offices dialing a 911 center in San Francisco.
;
; Note: The ATA-186 is auto-configured to send “911″
; directly to the SIP server with no delay. Be very, very
; careful when experimenting with this – the system does not
; follow standard rules with 911 calls.
;
; If you’re !(USA), feel free to comment this context out entirely.
;
exten => 911,1,Dial(${DIALOUTANALOG}/${EXTEN})
exten => 911,2,Macro(fastbusy)
[forced-analog]
; This is for failure-case outbound dialing. If for some reason
; the outbound SIP connections aren’t working, but aren’t giving errors
; (i.e.: my path to larger Internet is dead) then I can short-circuit
; my way to the local analog dial port by dialing “91npaxxxyyyy” and
; the call will be shunted out the analog port. This is for when
; the inevitable cry of “IT DOESN’T WORK!!” is screamed from the
; living room by She Who Makes Calls.
;
exten => _9.,1,Dial(${DIALOUTANALOG}/${EXTEN:1},70,Tt)
exten => _9.,2,Macro(fastbusy)
exten => _9.,102,Macro(fastbusy)
[inoc-dba-out]
; Next, look to see if it’s an INOC-DBA number. All INOC-DBA
; dial strings are dialed like this: 812345*223 where 12345 is
; the AS of the recipient and 223 is the extension of the person
; with whom I wish to speak.
;
; If any numbers begin with an “8″ character, they are pointed
; at the INOC-DBA SIP server. The ${EXTEN:1} serves to strip
; the first digit from the dialed string out (the “8″ in this
; case.) I could have done the same thing with the StripMSD,1
; application, but that just adds another step in the dial
; process.
;
; NOTE: It is important to use SetCallerID first, THEN use
; the SetCIDName application, or data is lost. Bug.
;
; NOTE: If the INOC-DBA server responds with a “404 Not Found”
; error during the dial, the call will be returned and sent
; to step #4, which plays an “invalid extension” message.
; A 404 error can be due to someone’s phone not being currently
; registered with INOC-DBA, or just a completely bogus and
; unknown number – there is no way to tell which caused the
; error reply.
;
exten => _8.,1,SetCallerID(${MYASN})
exten => _8.,2,SetCIDName(${MYNAME})
exten => _8.,3,Dial(SIP/${EXTEN:1}@inoc-dba)
exten => _8.,4,Playback(invalid)
exten => _8.,5,Hangup

Tags: , , , , , , , , , , , , , , ,

Related posts

Pages: 1 2 3 4 5 6 7 8 9