John Harragin
2003-Dec-02 12:02 UTC
[Asterisk-Users] How do you differentiate Busy and Congestion on Dialing PRI
I have asterisk boxes in 2 different buildings each connected to the telco with a PRI. I am now setting up asterisk machines in remote buildings - dialing out via one of the other 2 machines. These are a snip from each extension.conf on 1 remote and the 2 machines connected to the PRIs, to illustrate what I want to do... [remote_bldg_7_digit_out] ; The remote machine connected through IAX exten => _9NXXXXXX,1,Dial(IAX2/remote1@PRI-Machine-1/${EXTEN}) ; if PRI-Machine-1 is congested or off-line, try PRI-Machine-2. exten => _9NXXXXXX,2,Dial(IAX2/remote1@PRI-Machine-2/${EXTEN}) exten => _9NXXXXXX,3,Congestion [7-digit-PRI-Machine-1] ; The machine connected to PRI 1 exten => _9NXXXXXX,1,Dial(Zap/g1/${EXTEN:1}) exten => _9NXXXXXX,102,Busy [7-digit-PRI-Machine-2] ; The machine connected to PRI 2 (on its g1) exten => _9NXXXXXX,1,Dial(Zap/g1/${EXTEN:1}) exten => _9NXXXXXX,102,Busy ...however Dial does not increment the priority by an extra 100 when it encounters a busy on PRI. How can I best get this functionality? John This e-mail was scanned and found clean by Monroe-Woodbury CSD Antivirus.
John Harragin
2003-Dec-03 11:55 UTC
[Asterisk-Users] How do you differentiate Busy and Congestion on Dialing PRI
OK, an answer is in README.variables & causes.h... [7-digit-PRI-Machine-2] ; The machine connected to PRI 2 (on its g1) exten => _9NXXXXXX,1,Dial(Zap/g1/${EXTEN:1}) exten => _9NXXXXXX,2,gotoif,$[${HANGUPCAUSE} = 2]?99999|1 exten => 99999,1,Busy John ******** original message ************* I have asterisk boxes in 2 different buildings each connected to the telco with a PRI. I am now setting up asterisk machines in remote buildings - dialing out via one of the other 2 machines. These are a snip from each extension.conf on 1 remote and the 2 machines connected to the PRIs, to illustrate what I want to do... [remote_bldg_7_digit_out] ; The remote machine connected through IAX exten => _9NXXXXXX,1,Dial(IAX2/remote1@PRI-Machine-1/${EXTEN}) ; if PRI-Machine-1 is congested or off-line, try PRI-Machine-2. exten => _9NXXXXXX,2,Dial(IAX2/remote1@PRI-Machine-2/${EXTEN}) exten => _9NXXXXXX,3,Congestion [7-digit-PRI-Machine-1] ; The machine connected to PRI 1 exten => _9NXXXXXX,1,Dial(Zap/g1/${EXTEN:1}) exten => _9NXXXXXX,102,Busy [7-digit-PRI-Machine-2] ; The machine connected to PRI 2 (on its g1) exten => _9NXXXXXX,1,Dial(Zap/g1/${EXTEN:1}) exten => _9NXXXXXX,102,Busy ...however Dial does not increment the priority by an extra 100 when it encounters a busy on PRI. How can I best get this functionality? John This e-mail was scanned and found clean by Monroe-Woodbury CSD Antivirus.
Olle E. Johansson
2003-Dec-03 12:39 UTC
[Asterisk-Users] How do you differentiate Busy and Congestion on Dialing PRI
John Harragin wrote:> OK, an answer is in README.variables & causes.h... > > [7-digit-PRI-Machine-2] ; The machine connected to PRI 2 (on its g1) > exten => _9NXXXXXX,1,Dial(Zap/g1/${EXTEN:1}) > exten => _9NXXXXXX,2,gotoif,$[${HANGUPCAUSE} = 2]?99999|1 > exten => 99999,1,BusyAdded to http://www.voip-info.org/tiki-index.php?page=Asterisk%20variable%20hangupcause /Olle