Changeset 5344

Show
Ignore:
Timestamp:
12/04/07 16:02:34 (1 year ago)
Author:
p_lindheimer
Message:

#2303 - create new context to be used for IVR direct extension dialing, that clears the BLKVM related flags in case the IVR is being used as part of a queue breakout menu now that multiple digit breakouts are allowed.

Files:

Legend:

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

    r5330 r5344  
    732732                                                $ext->add('ext-local', $exten['sipname'], '', new ext_goto('1',$item[0],'from-internal')); 
    733733                                        } 
     734                                        // Now make a special context for the IVR inclusions of local extension dialing so that 
     735                                        // when people use the Queues breakout ability, and break out to someone's extensions, voicemail 
     736                                        // works. 
     737                                        // 
     738                                        $ivr_context = 'from-did-direct-ivr'; 
     739                                        $ext->add($ivr_context, $exten['extension'],'', new ext_execif('$["${BLKVM_OVERRIDE}" != ""]','dbDel','${BLKVM_OVERRIDE}')); 
     740                                        $ext->add($ivr_context, $exten['extension'],'', new ext_setvar('__NODEST', '')); 
     741                                        $ext->add($ivr_context, $exten['extension'],'', new ext_goto('1',$exten['extension'],'from-did-direct')); 
    734742                                } 
    735743                        } 
  • modules/branches/2.4/ivr/functions.inc.php

    r5286 r5344  
    159159                                                // ivr. (and no harm done if context does not exist. 
    160160                                                // 
    161                                                 $ext->addInclude($id,'ext-findmefollow'); 
    162                                                 $ext->addInclude($id,'ext-local'); 
     161                                                $ext->addInclude($id,'from-did-direct-ivr'); 
    163162                                        } 
    164163                                        // I'm not sure I like the ability of people to send voicemail from the IVR.