Changeset 3789

Show
Ignore:
Timestamp:
02/16/07 13:48:34 (6 years ago)
Author:
p_lindheimer
Message:

Allow option for IVR to loop back to itself without corrupting the return-to-ivr to the parent

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.2/ivr/functions.inc.php

    r3716 r3789  
    170170              $ext->add($id, $dest['selection'],'', new ext_dbdel('${BLKVM_OVERRIDE}')); 
    171171              $ext->add($id, $dest['selection'],'', new ext_setvar('__NODEST', '')); 
     172 
     173              // if the goto goes loops back to this ivr, then don't go to the begining or it will break the return to previous ivr info 
     174              // 
     175              $dest_context = trim(strtok($dest['dest'],",|")); 
     176              if ($dest_context == $id) { 
     177                $dest['dest'] = $id.',s,begin'; 
     178              } 
     179 
    172180              if ($dest['ivr_ret']) { 
    173181                $ext->add($id, $dest['selection'],'', new ext_gotoif('$["x${IVR_CONTEXT_${CONTEXT}}" = "x"]', $dest['dest'].':${IVR_CONTEXT_${CONTEXT}},return,1')); 
  • modules/branches/2.2/ivr/module.xml

    r3761 r3789  
    22  <rawname>ivr</rawname> 
    33  <name>IVR</name> 
    4   <version>2.5.10</version> 
     4  <version>2.5.11</version> 
    55  <type>setup</type> 
    66  <category>Inbound Call Control</category> 
     
    99  </description> 
    1010  <changelog> 
     11    *2.5.11* Allow option for IVR to loop back to itself without corrupting the return-to-ivr to the parent 
    1112    *2.5.10* Fix bug where pressing enter in a field would delete the IVR 
    1213    *2.5.9* some tweaks because of strange inheritance behavior, so need to reset IVR variables upon returns for some looping conditions