[Freeswitch-users] Lua question (re: FollowMe Dialplan Example from the docs)

Bob Smith b631093f-779b-4d67-9ffe-5f6d5b1d3f8a at protonmail.ch
Tue Feb 27 20:53:29 UTC 2018


A belated thank you to Ryan.   A tweak of the params seems to have done the trick.

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On February 25, 2018 1:58 PM, Ryan Harris <ryharris at airmail.cc> wrote:

> On 02/22/2018 03:15 PM, Bob Smith wrote:
> 
> > My reading of the script is that it does not take care of the somewhat
> > 
> > obvious problem of what happens if the cell phone goes to voicemail ?
> > 
> > My understanding of the script as presented is that it would just sit
> > 
> > there forever waiting for a reply ?
> 
> I haven't actually used that script, but it shouldn't sit there forever.
> 
> Take a look at what each of the arguments mean:
> 
> https://freeswitch.org/confluence/display/FREESWITCH/Lua+API+Reference#LuaAPIReference-session:playAndGetDigits
> 
> In the example, session:playAndGetDigits will wait 2 seconds for an
> 
> entry and then increment the attempts if unsuccessful. On the third
> 
> unsuccessful attempt, digits will be "". Since digits won't be "1" or
> 
> "2" the script will session:hangup("NO_ANSWER").
> 
> If whatever picks up the call can't dial digits, the call should hangup
> 
> after 6 seconds.
> 
> Professional FreeSWITCH Consulting Services:
> 
> consulting at freeswitch.org
> 
> http://www.freeswitchsolutions.com
> 
> Official FreeSWITCH Sites
> 
> http://www.freeswitch.org
> 
> http://confluence.freeswitch.org
> 
> http://www.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
> 
> http://www.freeswitch.org





More information about the FreeSWITCH-users mailing list