[asterisk-dev] ${DIALSTATUS} = NULL - is that OK?
Russell Bryant
russell at digium.com
Mon Jun 9 09:57:15 CDT 2008
Andrew Kohlsmith (lists) wrote:
> On June 9, 2008 06:34:29 am Chris Maciejewski wrote:
>> Is behaviour described above normal? The reason I am asking is because
>> my dialplan logic depends on ${DIALSTATUS} variable and currently I
>> use "GotoIf($[${ISNULL(${DIALSTATUS})} = 1]?label1:label2)" which
>> works fine for now, but may break if Dial will return some status in
>> the future.
>
> Personally I would like to see Dial set the variable to INPROGRESS as soon as
> it runs. I use DIALSTATUS=NULL to see if I dialed at all. :-)
That would be a reasonable enhancement to make.
In response to the original question. I think that if there is any code
path which allows Dial() to exist without setting a DIALSTATUS, then
that is a bug.
--
Russell Bryant
Senior Software Engineer
Open Source Team Lead
Digium, Inc.
More information about the asterisk-dev
mailing list