Changeset 12434

Show
Ignore:
Timestamp:
08/22/11 00:45:22 (2 years ago)
Author:
mickecarlsson
Message:

Close #5187, add check for offline endpoints in macro-dial-one

Files:

Legend:

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

    r12424 r12434  
    37303730        $ext->add($mcontext,$exten,'', new ext_macro('hangupcall')); 
    37313731 
     3732  /* 
     3733  If an endpoint is offline, app_dial returns with CHANUNAVAIL, we deal with this the same way  
     3734  * as we do with NOANSWER  
     3735  */  
     3736  $exten = 's-CHANUNAVAIL';  
     3737  $ext->add($mcontext,$exten,'', new ext_macro('vm','${SCREEN_EXTEN},BUSY,${IVR_RETVM}'));  
     3738  $ext->add($mcontext,$exten,'', new ext_execif('$["${IVR_RETVM}"!="RETURN" | "${IVR_CONTEXT}"=""]','Hangup'));  
     3739  $ext->add($mcontext,$exten,'', new ext_return(''));  
     3740 
    37323741        /* macro-dial-one */ 
    37333742      }