invoso.com Report post Posted 08/23/2011 06:12 AM first connection: 074314.000 6 4 2 state [was_connected] Evaluate [isEmpty ($RV[transfer])] 074314.000 6 4 2 rv replace start [isEmpty ($RV[transfer])] 074314.000 6 4 2 rv replace end [isEmpty (2011-08-23 07:43:07)] 074314.000 6 4 2 eval[isEmpty (2011-08-23 07:43:07)] in next connection $RV[transfer] was empty but shows previous data: 075128.885 6 4 2 rv replace start [isEmpty ($RV[transfer])] 075128.885 6 4 2 rv replace end [isEmpty (2011-08-23 07:43:07)] 075128.885 6 4 2 eval[isEmpty (2011-08-23 07:43:07)] log attached. other example: inserted [target_number] was 502131658 but in next step VG used other data: 4922128060 as $RV[target_number] 185219.328 6 2 1 rv add [target_number]{502131658} 185219.328 6 d added target_number | 502131658 | ( 74 61 72 67 65 74 5f 6e 75 6d 62 65 72 | 35 30 32 31 33 31 36 35 38 | 20) id=2 185219.328 6 d added target_number | 502131658 | ( 74 61 72 67 65 74 5f 6e 75 6d 62 65 72 | 35 30 32 31 33 31 36 35 38 | 35) id=2 185219.328 6 2 1 path {502131658} not found 185219.328 6 2 1 FindNextVgmTitleInPathList: next module title is=[calculate direction] 185219.328 6 d added target_number_PathTaken | success | ( 74 61 72 67 65 74 5f 6e 75 6d 62 65 72 5f 50 61 74 68 54 61 6b 65 6e | 73 75 63 63 65 73 73 | 36) id=2 185219.328 6 2 1 t timer clear (force=False) 185219.328 6 2 1 RunModule start Evaluate, [calculate direction], iModuleIdx=10, previous: vgm=7, vgs=1:1 185219.328 6 2 1 state [calculate direction] Evaluate [($RV[target_number]*1)-$RV[target_number]=0] 185219.328 6 2 1 rv replace start [($RV[target_number]*1)-$RV[target_number]=0] 185219.328 6 2 1 rv replace end [(4922128060*1)-4922128060=0] 185219.328 6 2 1 eval[(4922128060*1)-4922128060=0] 185219.328 6 2 1 CreateInstance ScriptControl objSC is: [system.__ComObject] 185219.328 6 2 1 rv add [calculate direction_Input]{(4922128060*1)-4922128060=0} Kopia 0823_0731_vgEngine.zip Share this post Link to post
SupportTeam Report post Posted 08/23/2011 07:59 AM Looking at attached trace we can see that in your script in a Evaluate Expression module "transfer" the result of the evaluated expression is set be stored as a "Global RV". Global RVs exist forever (until the VoiceGuide service is restarted). Global RVs are visible to every channel on the system. From http://www.voiceguide.com/vghelp/source/html/modevalexpr.htm'>http://www.voiceguide.com/vghelp/source/html/modevalexpr.htm : Selecting "Make Global RV" will make the created variable a "Global Result Variable". Global RVs need only be used if many different lines want to be able to read/set a central globally available variable which is retained by VoiceGuide as long as the software is running and does not get reset when any new calls arrive on any lines. (This option is used only in rare circumstances). Would suggest that you ensure that no variables in your scripts are saved as 'Global RVs'. Global RVs only need to be used in very rare circumstances. Also the name of the RV is specified as "transfer" - which is the same as the name of the module. This is unnecessary. The result of an Evaluate Expression module is already saved as an RV with the name of the module used as RV name. From http://www.voiceguide.com/vghelp/source/html/modevalexpr.htm : The result of the evaluated expression will be assigned to the $RV[module title] Result Variable. 074307.203 6 4 2 state [transfer] Evaluate [now()] 074307.203 6 4 2 eval[now()] 074307.203 7 qTel run cmd_TsRoute 074307.203 6 4 2 rv add [transfer_Input]{now()} 074307.203 6 d added transfer_Input | now() | ( 74 72 61 6e 73 66 65 72 5f 49 6e 70 75 74 | 6e 6f 77 28 29 | 85) id=4 074307.203 6 d added transfer_Input | now() | ( 74 72 61 6e 73 66 65 72 5f 49 6e 70 75 74 | 6e 6f 77 28 29 | 108) id=4 074307.203 6 4 2 rv add [transfer]{2011-08-23 07:43:07} 074307.203 6 d added transfer | 2011-08-23 07:43:07 | ( 74 72 61 6e 73 66 65 72 | 32 30 31 31 2d 30 38 2d 32 33 20 30 37 3a 34 33 3a 30 37 | 86) id=4 074307.203 6 d added transfer | 2011-08-23 07:43:07 | ( 74 72 61 6e 73 66 65 72 | 32 30 31 31 2d 30 38 2d 32 33 20 30 37 3a 34 33 3a 30 37 | 109) id=4 074307.203 6 d updtd transfer | 2011-08-23 07:43:07 | ( 74 72 61 6e 73 66 65 72 | 32 30 31 31 2d 30 38 2d 32 33 20 30 37 3a 34 33 3a 30 37 | 13) id=0 074307.203 6 4 2 rv add [transfer]{2011-08-23 07:43:07} 074307.203 6 d updtd transfer | 2011-08-23 07:43:07 | ( 74 72 61 6e 73 66 65 72 | 32 30 31 31 2d 30 38 2d 32 33 20 30 37 3a 34 33 3a 30 37 | 86) id=4 074307.203 6 d updtd transfer | 2011-08-23 07:43:07 | ( 74 72 61 6e 73 66 65 72 | 32 30 31 31 2d 30 38 2d 32 33 20 30 37 3a 34 33 3a 30 37 | 109) id=4 075128.885 6 4 2 state [was_connected] Evaluate [isEmpty ($RV[transfer])] 075128.885 6 4 2 rv replace start [isEmpty ($RV[transfer])] 075128.885 6 4 2 rv replace end [isEmpty (2011-08-23 07:43:07)] Share this post Link to post
invoso.com Report post Posted 08/23/2011 04:46 PM Thanks a lot! It's working. Share this post Link to post