Concatenate Time Condition Destinations

Status
Not open for further replies.

AIC2000

Member
Feb 15, 2018
162
3
18
34
Hi,

I want to concatenate a hangup clause at the end of the play recording lua within a time condition - as at the moment, Freeswitch just continues onto the next destination afterwards! :) I've tried adding ,hangup :hangup ;hangup at the end of the destination however nothing seems to be working?

I'm sure this is possible but just can't figure it out!

Thanks
 

AIC2000

Member
Feb 15, 2018
162
3
18
34
I've been trying to figure this out for 2 days now, would be great if anyone has any suggestions? :)
 

AIC2000

Member
Feb 15, 2018
162
3
18
34
On time conditions, I had an IVR where it was closed for bank holiday. After that, it meet the next condition which was being between working hours, and played the IVR anyway!

As you can see below, when you hit the big black button it changes the SELECT dropdown to an INPUT text box with the action shown. How do I add a second hangup action to that textbox, so that it doesn't continue going through the rest of the time conditions?



1522833276098.png

Hope that makes more sense :)
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,044
565
113
It does, the way I always handle this is with something like the following, I don't name it play_and_hangup, I would call it something like: acme_out _of _hours.

Create a custom dialplan entry, in this case I'm using 5000, then in the time condition make you action transfer to 5000, in the action1 play your sound file:

playandhangup.jpg
 

AIC2000

Member
Feb 15, 2018
162
3
18
34
Ooh I didn't know about custom dial plans - I will have a play shortly. Much better than trying to do insanely long time conditions!

Thanks
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,044
565
113
Ignore the above, that is kind of a retarded way of doing things now there is another way.....
 

AIC2000

Member
Feb 15, 2018
162
3
18
34
Haha great tip! I've already setup the dial plans now! I might go back out of hours and revert it back to your simplified solution.

Much better, Thanks!
 

sheraz14

Member
Apr 24, 2018
33
0
6
41
@DigitalDaz
i tried the above method which you showed in video
i have hangup action in time condition, it plays the out of hours message stay silent for 30 second and then disconnect

is anyone here encountered the same ?

1608634951139.png
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,044
565
113
You sure you haven't got 30 seconds of silence in your recording?

Get a log of this happening in fs_cli, we may be able to see the problem.
 
Status
Not open for further replies.