[asterisk-users] Macro: s-NOANSWER, _s-.

Mojo with Horan & Company, LLC mojo at horanappraisals.com
Fri Jul 13 17:41:58 CDT 2007


After the Dial application completes, the variable ${DIALSTATUS} will 
contain something like BUSY or NOANSWER or CONGESTION (CONGESTION here 
means like no free phone lines or no route to destination for example)

Then, immediately after the Dial line is the Goto line
   Goto(s-${DIALSTATUS},1)
this will in reality evaluate to something like
   Goto(s-CONGESTION,1)
or
   Goto(s-BUSY,1)

based on the contents of the DIALSTATUS variable (which is dependent on 
the results of the Dial application)

Therefore, you need the extensions s-BUSY and s-NOANSWER etc to deal 
with these statuses.



Moj


bilal ghayyad wrote:
> Dear Jared;
> 
> Thanks for your kindly help.
> 
> But what do u mean by more characters? What that
> pattern that will contain a character?
> 
> Also, what that pattern that will contain a dash (-)?
> 
> Regarding to the s-CONGESTION then what it means by
> "CONGESTION" word? Why u used here "CONGESTION"?
> 
> Regards,
> -------------------------
> IP Telephony and Contact Center Engineer
> Eng. Bilal Ghayad
> Mobile: 00965 9849460
> 
> 
>> I have this example for Macro and I am not able to
>> understand some line, if any one can help me plz :)-
> 
> [snip]
> 
>> exten => _s-.,1,Goto(s-NOANSWER,1)
>>
>> Also, what does it mean _s-. ? It indicated for
> which
>> dialing number?
> 
> The underscore signifies that it's a pattern match,
> and the period
>  means
> one more more characters after the s and the dash.  In
> other words,
>  it's
> a patter that would match s-CONGESTION or anything
> else that started
> with an s and a dash.
> 
> Regards
> Bilal Ghayad
> 
> 
>        
> ____________________________________________________________________________________
> Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. 
> http://mobile.yahoo.com/go?refer=1GNXIC
> 
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
> 
> 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