[asterisk-users] BUSY vs. CONGESTION

Danny Nicholas danny at debsinc.com
Wed Apr 18 11:12:25 CDT 2012


If you are dialing out on an in-use line, you should get the Congested
message.  Of course you could put the CHANAVAIL command ahead of dial to
avoid this.
Question two - Goto is a straight jump, gotoif jumps on a condition.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Joseph
Sent: Friday, April 13, 2012 7:34 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] BUSY vs. CONGESTION

I have two lines, fax & voice. 
I usually call out on fax line (to have voice line available)

I need to set the dial line based on dial-status.  When I try to call out on
fax line and it is receiving a fax will I get a BUSY or CONGESTION signal?

What is the difference in dial plan condition: "goto" and "gotoif"

exten => 1,1,Dial(SIP/7780${EXTEN}@pstn-9998,60,tr)
exten => 1,2,Goto(1-${DIALSTATUS},1)
exten => 1-BUSY,1,Dial(SIP/9780${EXTEN}@pstn-4444,60,tr)
exten => 1-CONGESTION,1,Dial(SIP/9780${EXTEN}@pstn-4444,60,tr)

vs.

exten => 1,1,Dial(SIP/7780${EXTEN}@pstn-9998,60,tr)
exten => 1,n,GotoIf($["${DIALSTATUS}"="BUSY"]?line2)
exten => 1,n,GotoIf($["${DIALSTATUS}"="CONGESTION"]?line2)
exten => 1-n(line2),1,Dial(SIP/9780${EXTEN}@pstn-4444,60,tr)

--
Joseph

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list