[Asterisk-Dev] Dev Meeting list

Matthew Boehm mboehm at cytelcom.com
Fri Apr 29 13:44:14 MST 2005


Andrew Kohlsmith wrote:
> On April 29, 2005 02:40 pm, Matthew Boehm wrote:
>>     I would remove ${DIALSTATUS} and ${HANGUPCAUSE} all togehter and
>> merge them into ${RES}.
>
> Well DIALSTATUS and HANGUPCAUSE are two different things, and RES
> should only be numeric IMO, or perhaps have RES and an optional
> RES_TXT?

    Not really. Because again, since there are a predefined number of return
codes, as long as they are all defined, there is no need to have text
messages. The numeric code would have the text version.

> well that can be done without a catchall:
>
> exten => X,n,GotoIf($[${RES} == 0],good);
> exten => X,n,GotoIf($[${RES} == 1],notgoodbutokay);
> exten => X,n,NoOp(all others will end up here)

    There ya go. That works.

-Matthew




More information about the asterisk-dev mailing list