Show
Ignore:
Timestamp:
04/12/11 11:05:44 (2 years ago)
Author:
p_lindheimer
Message:

fixes #5065 check against 'true' now since values are now 'true' or 'false'

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.9/core/functions.inc.php

    r11990 r11992  
    35763576        $ext->add($mcontext,$exten,'', new ext_set('DIALSTATUS', 'BUSY')); 
    35773577        $ext->add($mcontext,$exten,'', new ext_goto('nodial')); 
    3578         $ext->add($mcontext,$exten,'cwinusebusy', new ext_gotoif('$["${EXTHASCW}"!="" & "${CWINUSEBUSY}"!=""]','next3','continue')); 
     3578        //TODO: we know about CWINUSEBUSY at generation time, so change this and above corresponding targets to streamline at generation 
     3579        $ext->add($mcontext,$exten,'cwinusebusy', new ext_gotoif('$["${EXTHASCW}"!="" & "${CWINUSEBUSY}"="true"]','next3','continue')); 
    35793580        $ext->add($mcontext,$exten,'next3', new ext_execif('$["${EXTENSION_STATE(${DEXTEN})}"!="UNAVAILABLE" & "${EXTENSION_STATE(${DEXTEN})}"!="NOT_INUSE" & "${EXTENSION_STATE(${DEXTEN})}"!="UNKNOWN"]', 'Set', 'DIALSTATUS_CW=BUSY')); 
    35803581        $ext->add($mcontext,$exten,'continue', new ext_gotoif('$["${DEXTEN}"=""]','nodial'));