invoso.com Report post Posted 07/10/2014 08:06 PM From several hours VG making loops. (starting connection, terminating and starting again) as some months ago. example: two treads: session_id: ID20140710212448161 and ID20140710212449161 first looped and second properly working. in line 10382 our scenario registering call inserting connection in 10407 handing up and forwarding to termination script 108872 start new connection (caller don't hear reconnection) What's going on ? Please help... 0710_2116_vgEngine - Kopia.zip Share this post Link to post
SupportTeam Report post Posted 07/10/2014 11:46 PM Trace shows that call during which ID20140710212448161 value was assigned to RV was offered at 212448.282, and was accepted by system at 212448.293, but was never answered, and call disconnected soon after at 212448.408. (120ms after being offered) Soon after (200ms later) the first call offer was disconnected, a new call was offered. Looks like from same caller ID... You should probably speak with the service provider that supplies these E1 lines to see how those E1 lines are set up to react if offered call is not answered immediately. The script used on this system starts running without answering the call and goes through 26 'Evaluate' and 'Database Query' modules (in about 290ms) before deciding to answer the offered call. Suggest that you alter the script to decide whether or not you want to answer the call more promptly. The quicker the decision whether or not to answer the offered call is made, the less of a chance that the the offered call is disconnected before it is answered. Here are some relevant trace excerpts: 212448.282 15 2 1 ev CallState GCEV_OFFERED, crn=2800042, iEvent=0 ,2,0,8, s1:601304409|, s2:222044965, s3: l ! 601304409p 222044965]. build_date: 2014-04-04 13:32:46.19 212448.293 15 2 1 ev CallState GCEV_ACCEPT, crn=2800042, iEvent=0 ,4,1,1, s1:, s2:, s3:]. build_date: 2014-04-04 13:32:46.19 212448.300 7 2 1 state [id_sesji_create] Evaluate [ID20$RV_YY$RV_MM$RV_DD$RV_HH$RV_NN$RV_SS16$RV_PORTNUMBER] 212448.300 7 2 1 rv replace start [ID20$RV_YY$RV_MM$RV_DD$RV_HH$RV_NN$RV_SS16$RV_PORTNUMBER] 212448.300 7 2 1 rv replace end [ID20140710212448161] 212448.408 15 2 1 ev CallState GCEV_DISCONNECTED, crn=2800042, iEvent=0 ,16384,0,64, s1:, s2:, s3:]. build_date: 2014-04-04 13:32:46.19 212448.411 7 2 1 q_scr run evCallState sCode=[GCEV_DISCONNECTED] iActionID=0, crn=2800042 [16384|0|64|0|0][|||||] 00:00:00.0030002 max:2|00:00:00.0080004 212448.903 7 2 1 state Hanging up... [Hangup Module] 212448.904 7 2 1 q_tel + cmd_DropCall 2800042 [0,0,0,0,0][||||] 212448.908 15 2 1 ev CallState GCEV_DROPCALL, crn=2800042, iEvent=0 ,1,0,32, s1:, s2:, s3:]. build_date: 2014-04-04 13:32:46.19 212448.913 15 2 1 ev CallState GCEV_RELEASECALL, crn=2800042, iEvent=2137 ,0,0,0, s1:GCST_NULL, s2:, s3:]. build_date: 2014-04-04 13:32:46.19 212449.121 15 2 1 ev CallState GCEV_OFFERED, crn=2800043, iEvent=0 ,2,0,8, s1:601304409|, s2:222044965, s3: l ! 601304409p 222044965]. build_date: 2014-04-04 13:32:46.19 ... 212449.136 7 2 1 state [id_sesji_create] Evaluate [ID20$RV_YY$RV_MM$RV_DD$RV_HH$RV_NN$RV_SS16$RV_PORTNUMBER] 212449.136 7 2 1 rv replace start [ID20$RV_YY$RV_MM$RV_DD$RV_HH$RV_NN$RV_SS16$RV_PORTNUMBER] 212449.136 7 2 1 rv replace end [ID20140710212449161] Line 9907 : 212448.282 15 2 1 ev CallState GCEV_OFFERED, crn=2800042, iEvent=0 ,2,0,8, s1:601304409|, s2:222044965, s3: l ! 601304409p 222044965]. build_date: 2014-04-04 13:32:46.19 Line 10046: 212448.293 15 2 1 ev CallState GCEV_ACCEPT, crn=2800042, iEvent=0 ,4,1,1, s1:, s2:, s3:]. build_date: 2014-04-04 13:32:46.19 Line 10347: 212448.408 15 2 1 ev CallState GCEV_DISCONNECTED, crn=2800042, iEvent=0 ,16384,0,64, s1:, s2:, s3:]. build_date: 2014-04-04 13:32:46.19 Line 10840: 212448.908 15 2 1 ev CallState GCEV_DROPCALL, crn=2800042, iEvent=0 ,1,0,32, s1:, s2:, s3:]. build_date: 2014-04-04 13:32:46.19 Line 10872: 212448.913 15 2 1 ev CallState GCEV_RELEASECALL, crn=2800042, iEvent=2137 ,0,0,0, s1:GCST_NULL, s2:, s3:]. build_date: 2014-04-04 13:32:46.19 Line 10879: 212449.121 15 2 1 ev CallState GCEV_OFFERED, crn=2800043, iEvent=0 ,2,0,8, s1:601304409|, s2:222044965, s3: l ! 601304409p 222044965]. build_date: 2014-04-04 13:32:46.19 Line 11058: 212449.131 15 2 1 ev CallState GCEV_ACCEPT, crn=2800043, iEvent=0 ,4,1,1, s1:, s2:, s3:]. build_date: 2014-04-04 13:32:46.19 Line 11485: 212449.451 15 2 1 ev CallState GCEV_ANSWERED, crn=2800043, iEvent=0 ,256,1,4, s1:, s2:, s3:]. build_date: 2014-04-04 13:32:46.19 Line 10925: 212449.123 7 2 1 state [START] Evaluate [now()] Line 10940: 212449.124 7 2 1 state [type_card_number=0] Evaluate [0] Line 10954: 212449.125 7 2 1 state [is_number_known] Evaluate [$RV_CIDNUMBER>100000000] Line 10966: 212449.125 7 2 1 state [set_calling_number] Evaluate [$RV_CIDNUMBER] Line 10983: 212449.127 7 2 1 state [ustal DDI] Evaluate [$RV_DNIS] Line 11000: 212449.128 7 2 1 state [DDI] Evaluate [$RV_DNIS] Line 11006: 212449.128 7 2 1 state [DDI] Evaluate [$RV_DNIS] Line 11041: 212449.130 7 2 1 state [reset] Evaluate [Play_Stop] Line 11053: 212449.130 7 2 1 state [DDI] Evaluate [$RV[DDI]] Line 11069: 212449.132 7 2 1 state [manager_11_002] Evaluate [manager11] Line 11085: 212449.133 7 2 1 state [m11_002] Evaluate [11] Line 11100: 212449.134 7 2 1 state [connection_string_109_900_11_002] Evaluate ["ODBC; Driver=PostgreSQL Unicode; Server=IP;User Id=user;Password=pass; Port=5432; Database=$RV[manager];UID=user;PWD=pass;"] Line 11117: 212449.135 7 2 1 state [DDI_900_2] Evaluate [$RV[DDI]-222044900+900] Line 11134: 212449.136 7 2 1 state [id_sesji_create] Evaluate [ID20$RV_YY$RV_MM$RV_DD$RV_HH$RV_NN$RV_SS16$RV_PORTNUMBER] Line 11152: 212449.137 7 2 1 state [complementary_subprojects] Evaluate [$RV[called_DDI]$RV[manager_id]] Line 11167: 212449.138 7 2 1 state [id_proj_sqlquery] Evaluate ["SELECT id_proj, status, nazwa, call_recording, pg_email, nr_infolinii, main_id_proj FROM projekty LEFT JOIN infolinie ON projekty.id_infolinii=infolinie.id WHERE ddi='$RV[called_DDI]'"] Line 11184: 212449.139 7 2 1 state [id_proj] DB Query Line 11265: 212449.231 7 2 1 state [set ID_projektu] Evaluate [$RV[id_proj_1_1]] Line 11282: 212449.232 7 2 1 state [set status projektu] Evaluate [$RV[id_proj_2_1]] Line 11296: 212449.232 7 2 1 state [CDR_user] Evaluate [$RV[session_id]] Line 11314: 212449.233 7 2 1 state [system_LEKTOR] Evaluate ["C:\Program Files (x86)\VoiceGuide\System\voice_LEKTOR"] Line 11330: 212449.234 7 2 1 state [linia_inbound] Evaluate [$RV_PORTNUMBER] Line 11347: 212449.235 7 2 1 state [biling_register] DB Query Line 11383: 212449.323 7 2 1 state [dane_podstawowe] DB Query Line 11443: 212449.411 7 2 1 state [indywidualne projekty] Evaluate [$RV[ID_projektu]$RV[manager_id]] Line 11458: 212449.412 7 2 1 state [subprojects] Evaluate [$RV[id_projektu]$RV[manager_id]] 212449.413 7 2 1 RunModule start Play, [play powitanie projektu], iModuleIdx=107, previous: vgm=262, vgs=2:2 212449.413 7 2 1 [play powitanie projektu] VGMTYPE_PLAY run start 212449.413 7 2 1 answering the call (picking up the line) 0 Line 11495: 212449.452 7 2 1 state [subprojects] Evaluate [$RV[id_projektu]$RV[manager_id]] connected Line 11508: 212449.452 7 2 1 state [play powitanie projektu] Playing wav (\manager11\52801.wav) Share this post Link to post
SupportTeam Report post Posted 07/12/2014 01:33 AM Also: If all the inbound calls are going to be answered then you may as well answer the call immediately. There is no need to have the script set to "start without answering the call". The three database queries that you make at beginning of script take less then 1/3 of a second - not a long amount of time, and this delay will not be noticed by caller. Share this post Link to post