FreeSWITCH dialplan: allow voicemail/answer supervision actions

146 views
Skip to first unread message

Laurentiu Ceausescu

unread,
Jun 6, 2011, 11:39:34 AM6/6/11
to ope...@googlegroups.com
Hi,

According to https://github.com/Vagabond/OpenACD/wiki/Getting-Started,
the FS dialplan has the follwing action:
<action application="set" data="allow_voicemail=true"/>
which allow the caller to leave a voicemail while waiting in queue.

1. this action works well on my install with one exception:
from freeswitch log:
[NOTICE] switch_ivr.c:1606 Transfer
sofia/mydomain.org/3...@mydomain.org to
inline[playback:IVR/prrec.wav,gentones:%(500\,0\,500),sleep:600,record:/tmp/${uuid}.wav@default]
[ERR] mod_sndfile.c:194 Error Opening File
[/opt/freeswitch/sounds/en/us/callie/IVR/prrec.wav] [System error : No
such file or directory.]

The 'prrec.wav' file is the file that announce the caller to leave a VM.
Is there any way to set the correct path to this file?

2. I tried to disable this option with
<action application="set" data="allow_voicemail=false"/>
but seems not working.

But if I've completely removed the action from the FS dialplan I've
saw in full.log:
16:55:01.991555 [NOTICE] <0.6450.0>@freeswitch_media:752 caller
attempted to go to voicemail but is not allowed to do so
"fa9620f0-168b-4d58-b290-575ea7ecfd1c"
which leads me to believe that this is the solution that I sought.
Am I right?

3. Regarding 'answer supervision' action: <action application="answer"/>
What is this option used for? Should I put another complementary
action(s) in FS dial plan or is this option enough?

Thanks,
Laurentiu

Andrew Thompson

unread,
Jun 6, 2011, 12:18:14 PM6/6/11
to ope...@googlegroups.com
On Mon, Jun 06, 2011 at 06:39:34PM +0300, Laurentiu Ceausescu wrote:
> Hi,
>
> According to https://github.com/Vagabond/OpenACD/wiki/Getting-Started,
> the FS dialplan has the follwing action:
> <action application="set" data="allow_voicemail=true"/>
> which allow the caller to leave a voicemail while waiting in queue.
>
> 1. this action works well on my install with one exception:
> from freeswitch log:
> [NOTICE] switch_ivr.c:1606 Transfer
> sofia/mydomain.org/3...@mydomain.org to
> inline[playback:IVR/prrec.wav,gentones:%(500\,0\,500),sleep:600,record:/tmp/${uuid}.wav@default]
> [ERR] mod_sndfile.c:194 Error Opening File
> [/opt/freeswitch/sounds/en/us/callie/IVR/prrec.wav] [System error : No
> such file or directory.]
>
> The 'prrec.wav' file is the file that announce the caller to leave a VM.
> Is there any way to set the correct path to this file?

I think its hardcoded right now. It should probably be settable via the
dialplan, so you can have custom files per-DNIS or whatever.


>
> 2. I tried to disable this option with
> <action application="set" data="allow_voicemail=false"/>
> but seems not working.

Its probably checking simply for the presence of the dialplan variable.


>
> But if I've completely removed the action from the FS dialplan I've
> saw in full.log:
> 16:55:01.991555 [NOTICE] <0.6450.0>@freeswitch_media:752 caller
> attempted to go to voicemail but is not allowed to do so
> "fa9620f0-168b-4d58-b290-575ea7ecfd1c"
> which leads me to believe that this is the solution that I sought.
> Am I right?
>
> 3. Regarding 'answer supervision' action: <action application="answer"/>
> What is this option used for? Should I put another complementary
> action(s) in FS dial plan or is this option enough?

Well, if you don't answer the call, and it hasn't been answered by
something else before hitting FreeSWITCH from the PSTN, often the call
will drop after 30 seconds or so (because carrier usually only bill once
the call is answered and they don't like people having free phone
calls). However, you can omit this line if you want, OpenACD will answer
on agent-delivery anyway (but long queue times will cause drops if the
call wasn't already answered). There might be some dialplan option you
can set to modify this behaviour, I think Micah added something.

Andrew

Laurentiu Ceausescu

unread,
Jun 16, 2011, 9:28:50 AM6/16/11
to ope...@googlegroups.com

Is there any way to set a wav file which will announce the caller that
the VM is not allowed?
Thanks,
Laurentiu

Andrew Thompson

unread,
Jun 16, 2011, 11:59:05 AM6/16/11
to ope...@googlegroups.com
On Thu, Jun 16, 2011 at 04:28:50PM +0300, Laurentiu Ceausescu wrote:
> On Mon, Jun 6, 2011 at 6:39 PM, Laurentiu Ceausescu
> <laurentiu...@gmail.com> wrote:
> Is there any way to set a wav file which will announce the caller that
> the VM is not allowed?

Not right now. Its currently hardcoded as you noticed. We should
probably fix that.

Andrew

Reply all
Reply to author
Forward
0 new messages