[Freeswitch-users] Send call to different place on busy vs no answer

Don Dawson don.dawson at joon.us
Wed Apr 7 14:11:03 UTC 2021


Query the sip_dialogs database table to see if all are on calls.

On Wed, Apr 7, 2021, 12:41 AM Steven Schoch <
schoch+freeswitch.org at xwin32.com> wrote:

> I'm setting up a pbx. Incoming calls to the main number will ring on 3
> "front desk" phones. If all phones are busy, I want to play a message
> saying:
> "All operators are busy. Please call back in a few minutes or send email."
>
> However, if the call rings for 20 seconds with no answer, it should
> transfer to voicemail.
>
> My dialplan has:
> <action application="set" data="continue_on_fail=true"/>
> <action application="set" data="call_timeout=20"/>
> <action application="bridge" data="${group_call(operator@
> ${domain_name})}"/>
> <action application="answer"/>
> <action application="sleep" data="1000"/>
> <action application="???"/>
>
> The last application should be to do one thing (play a message) if the
> bridge failed because all phones were busy, and do something else (transfer
> to voicemail) if there was no answer after 20 seconds.
>
> Is this something that can be done in the dialplan? If not, do I use a
> script?
>
> --
> Steve
> _________________________________________________________________________
>
> The FreeSWITCH project is sponsored by SignalWire https://signalwire.com
> Enhance your FreeSWITCH install with disruptive priced SMS and PSTN
> services.
> Build your next product on our scalable cloud platform.
>
> Join our online community to chat in real time
> https://signalwire.community
>
> Professional FreeSWITCH Services
> sales at freeswitch.com
> https://freeswitch.com
>
> Official FreeSWITCH Sites
> https://freeswitch.com/oss
> https://freeswitch.org/confluence
> https://cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> https://freeswitch.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20210407/99653e98/attachment.html>


More information about the FreeSWITCH-users mailing list