by striker » Mon Oct 18, 2010 10:38 am
hi william
digium card te122p
menu settings is simple
did--callmenu---press1 to ingroup--TIMECHECK to hangup
menu timecheck enabled
calltime 1900hrs to 0000 hrs
if callcomes at 1900 to 0000 the call shoud be hangup
if callcomes at 0001 to 1859 the call should play the audio choosed in callmenu
but wat ever time itis its playing the audio file and wait for dtmf digit
below is the cli between the time 1900 to 0000
Accepting call from 'xxxxxxx' to '0000' on channel 0/18, span 1
[Oct 18 20:50:28] -- Executing [0000@trunkinbound:1] AGI("DAHDI/18-1", "agi-DID_route.agi") in new stack
[Oct 18 20:50:28] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_route.agi
[Oct 18 20:50:28] -- AGI Script Executing Application: (Monitor) Options: (wav|/var/spool/asterisk/monitor/MIX/20101018205028_0000_xxxxxxxxx)
[Oct 18 20:50:28] -- AGI Script agi-DID_route.agi completed, returning 0
[Oct 18 20:50:28] -- Executing [s@AOEvening:1] AGI("DAHDI/18-1", "agi-VDAD_inbound_calltime_check.agi|CALLMENU-----YES-----AOEvening-----1900pm12pm-----HANGUP----------") in new stack
[Oct 18 20:50:28] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_inbound_calltime_check.agi
[Oct 18 20:50:28] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Oct 18 20:50:28] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0)
[Oct 18 20:50:28] -- AGI Script agi-VDAD_inbound_calltime_check.agi completed, returning 0
[Oct 18 20:50:28] -- Executing [s@AOEvening:2] BackGround("DAHDI/18-1", "EveningClosingHoursEnglish") in new stack
[Oct 18 20:50:28] -- <DAHDI/18-1> Playing 'EveningClosingHoursEnglish' (language 'en')
[Oct 18 20:50:31] -- Channel 0/18, span 1 got hangup request, cause 16
in var/log/astguiclient there are lot of files which one u need to post here
FASTagiout.2010-10-18
action_full.2010-10-18
action_launch.2010-10-18
action_process.2010-10-18
action_send.2010-10-18
adapt.2010-10-18
agiout.2010-10-18
clean.2010-10-18
didin.2010-10-18
hopper.2010-10-18
listen.2010-10-18
listen_process.2010-10-18
remoteagent.2010-10-18
screenlog.0.2010-10-18
update.2010-10-18
vdautodial.2010-10-18