Page 1 of 1

Call menu time check recording not playing

PostPosted: Sun Jan 30, 2011 12:08 pm
by Trying
Within the Call Menu I set time check to active and selected a recording to play. However, when phoning in after hours the recording is not playing or is not audible.

[Jan 30 19:01:21] -- Accepting call from '+27823449100' to '0120017000' on c hannel 0/28, span 1
[Jan 30 19:01:21] -- Executing [0120017000@trunkinbound:1] AGI("DAHDI/28-1", "agi-DID_route.agi") in new stack
[Jan 30 19:01:21] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-DID_r oute.agi
[Jan 30 19:01:21] -- AGI Script Executing Application: (Monitor) Options: (w av|/var/spool/asterisk/monitor/MIX/20110130190121_0120017000_27823449100)
[Jan 30 19:01:21] ERROR[10029]: utils.c:967 ast_carefulwrite: write() returned e rror: Broken pipe
[Jan 30 19:01:21] -- AGI Script agi-DID_route.agi completed, returning 0
[Jan 30 19:01:21] -- Executing [s@AOCMAINIVR:1] AGI("DAHDI/28-1", "agi-VDAD_ inbound_calltime_check.agi|CALLMENU-----YES-----AOCMAINIVR-----12pm-5pm-----HANG UP-----demo-abouttotry-----") in new stack
[Jan 30 19:01:21] -- Launched AGI Script /var/lib/asterisk/agi-bin/agi-VDAD_ inbound_calltime_check.agi
[Jan 30 19:01:21] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0 )
[Jan 30 19:01:21] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0 )
[Jan 30 19:01:22] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0 )
[Jan 30 19:01:22] -- Playing 'sip-silence' (escape_digits=) (sample_offset 0 )
[Jan 30 19:01:22] -- Playing 'demo-abouttotry' (escape_digits=) (sample_offs et 0)
[Jan 30 19:01:33] -- Channel 0/28, span 1 got hangup request, cause 16
[Jan 30 19:01:33] -- Executing [h@AOCMAINIVR:1] DeadAGI("DAHDI/28-1", "agi:/ /127.0.0.1:4577/call_log--HVcauses--PRI-----NODEBUG-----16---------------") in n ew stack
[Jan 30 19:01:33] -- AGI Script agi://127.0.0.1:4577/call_log--HVcauses--PRI -----NODEBUG-----16--------------- completed, returning 0
[Jan 30 19:01:33] -- Hungup 'DAHDI/28-1'

PostPosted: Sun Jan 30, 2011 7:25 pm
by williamconley
try another file that's already in the asterisk sounds folder. if format of the file is your problem, the new file will work. then you can fix your format.

PostPosted: Sun Jan 30, 2011 11:33 pm
by Trying
Hi William

I have tried some of the included sound files as well. They all play fine if I use them anywhere else but not for time check. For example if I activate the same file as an "invalid prompt" it works fine but not when it is selected for "time check".

PostPosted: Mon Jan 31, 2011 3:13 pm
by Trying
I have done some more tests. When I select the recordings in the after hours action of an in-group it plays just fine. Just not in the call menu.

PostPosted: Wed Feb 02, 2011 2:27 pm
by Trying
Any ideas guys? I am really stuck with this.

PostPosted: Sat Feb 05, 2011 7:33 am
by Trying
Let me try another angle. Is there actually somebody using it in 3.1.6 and it is working?

PostPosted: Thu Feb 10, 2011 6:19 am
by Trying
Still stuck. I have measured the time of the silence until the system hangs up the call. The file is definitely playing because the time of the silence matches the time that the file will normally play - if you understand what I am talking about.

No matter what file I am choosing to play there is just no sound. So this is definitely not an issue with the playing of the file but with the files in that specific time check menu not being audible. Also, if I choose hangup with an audio file for any other option than time check, the file is audible.

PostPosted: Thu Feb 10, 2011 11:16 am
by williamconley
investigate the dialplan and agi logs difference(s) between an audible success and a silent failure. something is obviously different. see if you can identify the flaw.

similar problem

PostPosted: Sat Feb 12, 2011 1:13 pm
by striker
hi mee too suffered the same problem

see this post http://www.vicidial.org/VICIDIALforum/v ... highlight=

and finally i write a dialplan for the timecheck and get it done

Re: Call menu time check recording not playing

PostPosted: Sat Aug 11, 2012 5:19 pm
by sqlerror
We encounterd the same issue.
The answer is actually in the comments of the agi-VDAD_inbound_calltime_check.agi:

Code: Select all
# ;inbound calls check calltime:
#exten => 1234,1,Answer                  ; Answer the line
#exten => 1234,2,AGI(agi-VDAD_inbound_calltime_check.agi,INBOUND-----YES-----START-----24hours-----EXTENSION-----101-----default
 


Generated dialplan does not comply with that, the Answer command is missing: resulting in call accepted but unanswered

Code: Select all
[MyIVR]
exten => s,1,AGI(agi-VDAD_inbound_calltime_check.agi,CALLMENU-----YES-----MyIVR-----830-1700-----HANGUP-----MyIVR_afterhours_announce-----)
exten => s,n,Set(INVCOUNT=0)
...


According to the instructions, it should be:

Code: Select all
[MyIVR]
exten => s,1,Answer
exten => s,n,AGI(agi-VDAD_inbound_calltime_check.agi,CALLMENU-----YES-----MyIVR-----830-1700-----HANGUP-----MyIVR_afterhours_announce-----)
exten => s,n,Set(INVCOUNT=0)
...

As a workaround we now answer incoming calls explicitly by modifying the trunkinbound dialplan entry in /etc/asterisk/exentsions.conf by inserting an amswer command before calling the ag-DID_route extension gets called:
Code: Select all
[trunkinbound]
exten => _X.,1,Answer
exten => _X.,2,AGI(agi-DID_route.agi)


So the only answer to this problem is to Answer the line and get that into the dialplan.
Of course the solution is to update the script that generates the dialplan entries in such a way that it adds the Answer exten to the genreated ViCiDial call menu fragments.

Have a happy inbound,

Geert