Every member of Xorcom’s Astribank™ line of products includes two auxiliary output ports and four auxiliary input ports. These features open up a whole world of exciting applications for the Asterisk IP-PBX.
This white paper will demonstrate how to broadcast burglar alarm system voice messages to designated phone numbers by using one of the Astribank input ports and modifying the Asterisk dialing plan.
An input port can be activated by connecting two wires in the input RJ-45 connector ("dry contact"). An input activation is translated as an "off hook" state of an extension. The default mapping of the input ports (when using the Xorcom Rapid™ auto-configuration) starts with the number of the 8th FXS port plus 3. For example, if the Astribank-8 extensions are 401 to 408, the input ports will be extensions 411, 412, 413 and 414 (extensions 409 and 410 are the output ports).
Following is a step-by-step explanation of how to wire and set up your Astribank to send voice messages (as a response to any external event) to designated phone numbers.
|
|
||
|
Figure 1: Illustration of CAT-5 cable with 8 internal wires exposed. |
|
|
||
|
Figure 2: An input event is generated by connecting the input pin to the associated ground pin. |
|
Warning! The input ports are not fused and are not designed to accept any external voltage. Driving external voltage will damage the input ports, and may damage the entire Astribank unit and void your warranty! |
; Context for the input handlers [astbank-input] ; Using the default channel for this context ; The following line will call Zaptel channel number 1 ; And play the “alarm-message” sound file exten => s,1,Dial(Zap/1 ,10,A(alarm-message)) ; After Zap channel 1 finishes, Zaptel channel 2 will be called exten => s,2,Dial(Zap/2 ,10,A(warning-message)) ; You can add as many actions as you like using the following syntax: exten => s,[sequence-number], [action]
Please send your comments or suggested applications to