SOLVED Phrases as anouncements

Status
Not open for further replies.

bcmike

Active Member
Jun 7, 2018
326
55
28
53
Hi,

I have a customer that wants something simple, he wants to play a short greeting and then go directly into his call center. In FreePBX you do this in a module called announcements that lets you play a file and then chose a destination.

When I moved the customer I had to do it quickly so I created a ring group with said greeting and made the only member the call centre extension with a very long timeout. It worked but for some reason the call centre timeout destination would not work. This had something to do with nesting it in the ring group.

So I creating a phrase with the greeting wave file as the only file being played back. In the destination I made the first action the phrase and then the call centre was the second action. The phrase said it was being played back in the log but there was no audio and then it moved on to the call centre. In the phrase I had the language set to en and the log said it was playing back but it wasn't

Code:
2020-09-16 13:44:18.874294 [DEBUG] switch_ivr_play_say.c:250 Handle play-file:[/var/lib/freeswitch/recordings/customer.pbx.domain.com/570_customer_Welcome.wav] (en:en)
2020-09-16 13:44:18.874294 [DEBUG] switch_ivr_play_say.c:1497 Codec Activated L16@8000hz 1 channels 20ms
2020-09-16 13:44:18.974334 [DEBUG] sofia.c:7291 Channel sofia/External-NAT2/5702@customer.pbx.domain.com entering state [calling][0]
2020-09-16 13:44:19.014292 [DEBUG] sofia.c:7291 Channel sofia/External-NAT2/5702@customer.pbx.domain.com entering state [ready][200]
2020-09-16 13:44:19.014292 [DEBUG] sofia.c:7298 Duplicate SDP
v=0
o=- 15883263 15883263 IN IP4
s=-
c=IN IP4
t=0 0
m=audio 16472 RTP/AVP 0 2 8 9 18 96 97 98 101
a=rtpmap:0 PCMU/8000
a=rtpmap:2 G726-32/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:18 G729a/8000
a=rtpmap:96 G726-40/8000
a=rtpmap:97 G726-24/8000
a=rtpmap:98 G726-16/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=ptime:20

2020-09-16 13:44:22.954304 [DEBUG] switch_ivr_play_say.c:1941 done playing file /var/lib/freeswitch/recordings/customer.pbx.domain.com/570_customer_Welcome.wav

So finally I created an IVR with the desired greeting, no options and a super low time out with the fail-over destination set as the cal centre. This seems to be working.

I'm just thinking I must be doing something wrong and there has to be a more elegant way to do this.


So I guess this is just a really long winded feature request to a) add a greeting option to the call centre or b) create an announcement like module
 

Bifur

Member
Sep 13, 2020
122
9
18
I am very much new to FusionPBX but I am playing with all sorts of stuff. I was able to dial *732 and record a message. I then attached that to a phrase. Set phrase to inbound route #1 then I told it to go to my conference center test as 2nd. It played the message just fine. Did you use the feature code to record the message or another method?
 

bcmike

Active Member
Jun 7, 2018
326
55
28
53
Ok, feel like a complete moron now. For some reason when setting up the destination I didn't see that I could choose recordings. Total pebkac error.

Thanks!
 
Last edited:

Bifur

Member
Sep 13, 2020
122
9
18
Ha, don't worry about it. I had a doh! moment yesterday myself! At least it was an easy fix.
 
Status
Not open for further replies.