Calltime not working in call menu

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Calltime not working in call menu

Postby cvillarreal77 » Sat Oct 06, 2018 10:29 pm

hy guys

i realized a fresh install of vicibox express 8.1.2

and i notice that the timecheck when i configured my first callmenu in this server not not working

this is a bug?

VERSION: 2.14-693a
BUILD: 181003-1619

[Oct 6 22:23:32] == Using SIP RTP CoS mark 5
[Oct 6 22:23:32] > 0x7fd5300181c0 -- Strict RTP learning after remote address set to: 192.168.0.6:40036
[Oct 6 22:23:32] -- Executing [2003@trunkinbound:1] AGI("SIP/2002-00000010", "agi-DID_route.agi") in new stack
[Oct 6 22:23:32] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-DID_route.agi
[Oct 6 22:23:32] -- <SIP/2002-00000010>AGI Script agi-DID_route.agi completed, returning 0
[Oct 6 22:23:32] -- Executing [s@testmenu:1] Answer("SIP/2002-00000010", "") in new stack
[Oct 6 22:23:33] -- Executing [s@testmenu:2] AGI("SIP/2002-00000010", "agi-VDAD_inbound_calltime_check.agi,CALLMENU-----YES-----testmenu-------------------------NO") in new stack
[Oct 6 22:23:33] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-VDAD_inbound_calltime_check.agi
[Oct 6 22:23:33] -- <SIP/2002-00000010> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
[Oct 6 22:23:33] -- <SIP/2002-00000010> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
[Oct 6 22:23:33] -- <SIP/2002-00000010>AGI Script agi-VDAD_inbound_calltime_check.agi completed, returning 0
[Oct 6 22:23:33] -- Executing [s@testmenu:3] Set("SIP/2002-00000010", "INVCOUNT=0") in new stack
[Oct 6 22:23:33] -- Executing [s@testmenu:4] BackGround("SIP/2002-00000010", "pm-invalid-option") in new stack
[Oct 6 22:23:33] -- <SIP/2002-00000010> Playing 'pm-invalid-option.gsm' (language 'en')
[Oct 6 22:23:37] -- Executing [s@testmenu:5] WaitExten("SIP/2002-00000010", "10") in new stack
[Oct 6 22:23:47] -- Timeout on SIP/2002-00000010, going to 't'
[Oct 6 22:23:47] -- Executing [t@testmenu:1] Goto("SIP/2002-00000010", "s,4") in new stack
[Oct 6 22:23:47] -- Goto (testmenu,s,4)
[Oct 6 22:23:47] -- Executing [s@testmenu:4] BackGround("SIP/2002-00000010", "pm-invalid-option") in new stack


i noticed in the logs that the "agi-VDAD_inbound_calltime_check.agi,CALLMENU-----YES-----testmenu-------------------------NO" the call time is not mencioned

i really configred in this callmeny the Menu Time Check to "1" and the Call Time camp " 12pm-5pm"

i delete this menu and created another and the calltime dont show in the logs... i think the script that recover la configuration in the web not working.

could you help me? :)

:D :D :D :D :D :D :D
cvillarreal77
 
Posts: 92
Joined: Wed Dec 16, 2015 3:38 pm

Re: Calltime not working in call menu

Postby mflorell » Sun Oct 07, 2018 7:22 am

Change your Server's "AGI Output" setting to BOTH, run your test again and post the Asterisk CLI output.
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Calltime not working in call menu

Postby cvillarreal77 » Sun Oct 07, 2018 11:40 am

thank you for your response

i change the agi output to both

[Oct 7 02:32:48] == Using SIP RTP CoS mark 5
[Oct 7 02:32:48] > 0x7fd53001c0c0 -- Strict RTP learning after remote address set to: 192.168.0.6:40026
[Oct 7 02:32:48] -- Executing [2003@trunkinbound:1] AGI("SIP/2002-00000021", "agi-DID_route.agi") in new stack
[Oct 7 02:32:48] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-DID_route.agi
[Oct 7 02:32:49] -- <SIP/2002-00000021>AGI Script agi-DID_route.agi completed, returning 0
[Oct 7 02:32:49] -- Executing [s@testmenu:1] Answer("SIP/2002-00000021", "") in new stack
[Oct 7 02:32:49] -- Executing [s@testmenu:2] AGI("SIP/2002-00000021", "agi-VDAD_inbound_calltime_check.agi,CALLMENU-----YES-----testmenu-------------------------NO") in new stack
[Oct 7 02:32:49] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-VDAD_inbound_calltime_check.agi
[Oct 7 02:32:50] -- <SIP/2002-00000021> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
[Oct 7 02:32:50] -- <SIP/2002-00000021> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
[Oct 7 02:32:50] -- <SIP/2002-00000021>AGI Script agi-VDAD_inbound_calltime_check.agi completed, returning 0
[Oct 7 02:32:50] -- Executing [s@testmenu:3] Set("SIP/2002-00000021", "INVCOUNT=0") in new stack
[Oct 7 02:32:50] -- Executing [s@testmenu:4] BackGround("SIP/2002-00000021", "3") in new stack
[Oct 7 02:32:50] -- <SIP/2002-00000021> Playing '3.slin' (language 'en')
[Oct 7 02:32:50] -- Executing [s@testmenu:5] WaitExten("SIP/2002-00000021", "2") in new stack
[Oct 7 02:32:52] -- Timeout on SIP/2002-00000021, continuing...
[Oct 7 02:32:52] -- Executing [s@testmenu:6] BackGround("SIP/2002-00000021", "3") in new stack
[Oct 7 02:32:52] -- <SIP/2002-00000021> Playing '3.slin' (language 'en')
[Oct 7 02:32:52] -- Executing [s@testmenu:7] WaitExten("SIP/2002-00000021", "2") in new stack
[Oct 7 02:32:54] -- Timeout on SIP/2002-00000021, going to 't'
[Oct 7 02:32:54] -- Executing [t@testmenu:1] Goto("SIP/2002-00000021", "s,4") in new stack
[Oct 7 02:32:54] -- Goto (testmenu,s,4)
[Oct 7 02:32:54] -- Executing [s@testmenu:4] BackGround("SIP/2002-00000021", "3") in new stack
[Oct 7 02:32:54] -- <SIP/2002-00000021> Playing '3.slin' (language 'en')
[Oct 7 02:32:54] -- Executing [s@testmenu:5] WaitExten("SIP/2002-00000021", "2") in new stack
[Oct 7 02:32:56] -- Timeout on SIP/2002-00000021, continuing...
[Oct 7 02:32:56] -- Executing [s@testmenu:6] BackGround("SIP/2002-00000021", "3") in new stack
[Oct 7 02:32:56] -- <SIP/2002-00000021> Playing '3.slin' (language 'en')
[Oct 7 02:32:57] -- Executing [s@testmenu:7] WaitExten("SIP/2002-00000021", "2") in new stack
[Oct 7 02:32:59] -- Timeout on SIP/2002-00000021, going to 't'
[Oct 7 02:32:59] -- Executing [t@testmenu:1] Goto("SIP/2002-00000021", "s,4") in new stack
[Oct 7 02:32:59] -- Goto (testmenu,s,4)
[Oct 7 02:32:59] -- Executing [s@testmenu:4] BackGround("SIP/2002-00000021", "3") in new stack
[Oct 7 02:32:59] -- <SIP/2002-00000021> Playing '3.slin' (language 'en')
[Oct 7 02:32:59] -- Executing [s@testmenu:5] WaitExten("SIP/2002-00000021", "2") in new stack
[Oct 7 02:33:01] -- Timeout on SIP/2002-00000021, continuing...
[Oct 7 02:33:01] -- Executing [s@testmenu:6] BackGround("SIP/2002-00000021", "3") in new stack
[Oct 7 02:33:01] -- <SIP/2002-00000021> Playing '3.slin' (language 'en')
[Oct 7 02:33:01] -- Executing [s@testmenu:7] WaitExten("SIP/2002-00000021", "2") in new stack
[Oct 7 02:33:03] -- Timeout on SIP/2002-00000021, going to 't'
[Oct 7 02:33:03] -- Executing [t@testmenu:1] Goto("SIP/2002-00000021", "s,4") in new stack
[Oct 7 02:33:03] -- Goto (testmenu,s,4)
[Oct 7 02:33:03] -- Executing [s@testmenu:4] BackGround("SIP/2002-00000021", "3") in new stack
[Oct 7 02:33:03] -- <SIP/2002-00000021> Playing '3.slin' (language 'en')
[Oct 7 02:33:04] -- Executing [s@testmenu:5] WaitExten("SIP/2002-00000021", "2") in new stack
[Oct 7 02:33:05] == Manager 'sendcron' logged on from 127.0.0.1
[Oct 7 02:33:05] == Manager 'sendcron' logged on from 127.0.0.1
[Oct 7 02:33:05] == Manager 'sendcron' logged off from 127.0.0.1
[Oct 7 02:33:05] == Manager 'sendcron' logged off from 127.0.0.1
[Oct 7 02:33:06] -- Timeout on SIP/2002-00000021, continuing...
[Oct 7 02:33:06] -- Executing [s@testmenu:6] BackGround("SIP/2002-00000021", "3") in new stack
[Oct 7 02:33:06] -- <SIP/2002-00000021> Playing '3.slin' (language 'en')
[Oct 7 02:33:06] -- Executing [s@testmenu:7] WaitExten("SIP/2002-00000021", "2") in new stack
[Oct 7 02:33:07] == Spawn extension (testmenu, s, 7) exited non-zero on 'SIP/2002-00000021'
[Oct 7 02:33:07] WARNING[11222][C-00000032]: func_hangupcause.c:140 hangupcause_read: Unable to find information for channel
[Oct 7 02:33:07] -- Executing [h@testmenu:1] AGI("SIP/2002-00000021", "agi://127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----0--------------------)") in new stack
[Oct 7 02:33:07] -- <SIP/2002-00000021>AGI Script agi://127.0.0.1:4577/call_log--HVcauses ... ----------) completed, returning 0
[Oct 7 02:33:10] == Manager 'sendcron' logged on from 127.0.0.1
[Oct 7 02:33:10] == Manager 'sendcron' logged off from 127.0.0.1

i notice the same result, and i noticided the option menu repeat not working too..... i configured this to "1" y the menu repeted several times..

:(
cvillarreal77
 
Posts: 92
Joined: Wed Dec 16, 2015 3:38 pm

Re: Calltime not working in call menu

Postby mflorell » Sun Oct 07, 2018 6:15 pm

It still doesn't look like your Server's API Output is set properly, this is what it should look like:


-- [Oct 7 19:11:47] -- Launched AGI Script /usr/share/asterisk/agi-bin/agi-VDAD_inbound_calltime_check.agi
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi|Perl Environment Dump:
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi|0|TEST_IN3-----NO-----test_menu-----24hours-----VMAIL_NO_INST-----9875----------NO
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- accountcode = cc352
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- arg_1 = TEST_IN3-----NO-----test_menu-----24hours-----VMAIL_NO_INST-----9875----------NO
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- callerid = 3125551212
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- calleridname = station 352
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- callingani2 = 0
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- callingpres = 1
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- callingtns = 0
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- callington = 0
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- channel = IAX2/cc352-13685
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- context = test_menu
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- dnid = 7275551112
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- enhanced = 0.0
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- extension = s
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- language = en
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- priority = 2
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- rdnis = unknown
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- request = agi-VDAD_inbound_calltime_check.agi
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- threadid = 139938599249664
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- type = IAX2
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- uniqueid = 1538953907.111
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi| -- version = 11.25.1-vici
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi|AGI Variables: |1538953907.111|IAX2/cc352-13685|s|IAX2|3125551212|
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi|+++++ INBOUND CALL VDCL STARTED : |TEST_IN3|3125551212-|2018-10-07 19:11:47
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi|Holiday check: |0|SELECT count(*) from vicidial_call_time_holidays where holiday_date='2018-10-07' and holiday_status='ACTIVE';||Today||
-- [Oct 7 19:11:47] -- <IAX2/cc352-13685> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
-- [Oct 7 19:11:47] -- <IAX2/cc352-13685> Playing 'sip-silence.gsm' (escape_digits=) (sample_offset 0) (language 'en')
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi||INSERT INTO live_inbound_log (uniqueid,channel,server_ip,caller_id,extension,phone_ext,start_time,comment_a,comment_b,comment_d,comment_e) values('1538953907.111','IAX2/cc352-13685','192.168.198.5','3125551212','s','3125551212','2018-10-07 19:11:47','TEST_IN3','test_menu','test_menu','2')|
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi|-- LIL insert: |1|1538953907.111|3125551212|s|
2018-10-07 19:11:47|agi-VDAD_inbound_calltime_check.agi||INSERT INTO queue_log SET `partition`='P01',time_id='1538953907',call_id='1538953907.111',queue='NONE',agent='NONE',verb='INFO',data1='IVR',data2='test_menu',serverid='VIC';|
-- [Oct 7 19:11:47] -- <IAX2/cc352-13685>AGI Script agi-VDAD_inbound_calltime_check.agi completed, returning 0
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Calltime not working in call menu

Postby cvillarreal77 » Sun Oct 07, 2018 8:44 pm

i only run the command asterisk -rvvv ....id correct?
cvillarreal77
 
Posts: 92
Joined: Wed Dec 16, 2015 3:38 pm

Re: Calltime not working in call menu

Postby cvillarreal77 » Sun Oct 07, 2018 9:29 pm

i find this log

/var/log/astguiclient # vi agiout.2018-10-07


2018-10-07 07:07:30|agi-DID_route.agi|exiting the DID app, transferring call to CALLMENU testmenu
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi|Perl Environment Dump:
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi|0|CALLMENU-----YES-----testmenu-------------------------NO
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- accountcode = 2002
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- arg_1 = CALLMENU-----YES-----testmenu-------------------------NO
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- callerid = 2002
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- calleridname = SIP2002
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- callingani2 = 0
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- callingpres = 0
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- callingtns = 0
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- callington = 0
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- channel = SIP/2002-00000002
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- context = testmenu
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- dnid = 2003
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- enhanced = 0.0
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- extension = s
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- language = en
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- priority = 2
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- rdnis = unknown
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- request = agi-VDAD_inbound_calltime_check.agi
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- threadid = 139877034039040
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- type = SIP
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- uniqueid = 1538914050.2
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi| -- version = 13.21.1-vici
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi|AGI Variables: |1538914050.2|SIP/2002-00000002|s|SIP||
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi|+++++ INBOUND CALL VDCL STARTED : |CALLMENU|-|2018-10-07 07:07:31
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi|-- VDAC vac record deleted: |0E0| 1538914050.2||
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi||INSERT INTO vicidial_auto_calls (server_ip,campaign_id,lead_id,status,uniqueid,callerid,channel,phone_code,phone_number,call_time,call_type,stage,queue_priority,last_update_time) values('192.168.0.22','CALLMENU','0','IVR','1538914050.2','','SIP/2002-00000002','','2002','2018-10-07 07:07:31','IN','IVR-0','','20181007071731')|
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi|-- VAC insert: |1|1538914050.2||s|
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi||INSERT INTO live_inbound_log (uniqueid,channel,server_ip,caller_id,extension,phone_ext,start_time,comment_a,comment_b,comment_d,comment_e) values('1538914050.2','SIP/2002-00000002','192.168.0.22','','s','2002','2018-10-07 07:07:31','CALLMENU','testmenu','testmenu','2')|
2018-10-07 07:07:31|agi-VDAD_inbound_calltime_check.agi|-- LIL insert: |1|1538914050.2||s|
cvillarreal77
 
Posts: 92
Joined: Wed Dec 16, 2015 3:38 pm

Re: Calltime not working in call menu

Postby mflorell » Mon Oct 08, 2018 5:11 am

Please post your Call Menu settings now.
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Calltime not working in call menu

Postby cvillarreal77 » Mon Oct 08, 2018 10:46 am

Menu Repeat:2

Menu Time Check :1

Call Time:12pm-5pm

is very stranger.....

i know that the log should be "agi-VDAD_inbound_calltime_check.agi,CALLMENU-----YES-----testmenu------------12pm-5pm-------------NO" but this no update the option checks in the browser... I tried with another browser and nothing :(

i think puts this in Custom Dialplan Entry option... is it posible?
cvillarreal77
 
Posts: 92
Joined: Wed Dec 16, 2015 3:38 pm

Re: Calltime not working in call menu

Postby mflorell » Mon Oct 08, 2018 12:14 pm

What does the context for that call menu look like in the /etc/asterisk/extensions-vicidial.conf file?
mflorell
Site Admin
 
Posts: 18384
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Calltime not working in call menu

Postby cvillarreal77 » Mon Oct 08, 2018 12:36 pm

is testmenu..


I thought that the browsers did not update the option correctly, but I got into phpmyadmin to verify the table .. and if the table is being updated correctly , Menu Time Check :1 and Call Time:12pm-5pm

is a fresh install..

could you install the iso in virtualbox and verific for me please please please :) :) ? .. i think the iso have a problem :)

I believe that I am the only user that has reported it in this version :D :D
cvillarreal77
 
Posts: 92
Joined: Wed Dec 16, 2015 3:38 pm

Re: Calltime not working in call menu

Postby cvillarreal77 » Fri Oct 19, 2018 6:41 pm

diy you probe the iso :(
cvillarreal77
 
Posts: 92
Joined: Wed Dec 16, 2015 3:38 pm


Return to Support

Who is online

Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 113 guests