Koozali.org: home of the SME Server

SAIL - possible to create type of call-flow/chain of events ? [SOLVED]

Offline jester

  • *
  • 496
  • +1/-0
Is it possible to create a kind of call flow/chain of events (don't really know how to call this) in SAIL (using v606) like:

* incoming call
1 Welcome message
2 See if there is someone available (ring group)
3 No one available -> Sorry message, you can leave....
4 Go straight to some voice-mail box

I first was thinking on using aliases for this but cant work it out that way...

Thanx!
« Last Edit: April 14, 2008, 09:30:06 AM by jester »

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: SAIL - possible to create type of call-flow/chain of events ?
« Reply #1 on: April 11, 2008, 04:27:45 PM »
I would first record a greeting with *60*1001. The default password is the "4-digit Password for KEY Ops:".

Set an alias for the ring-group. This alias will default to a voicemail box.

Set an IVR menu with timeout going to the the ring-group (alias)

Set the inbound route in the trunk to this IVR menu.

I don't think there is an option like "announce-while-dialing".
The problem with this setup is that the timeout delay can be anoying.


Sophie from Montréal

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: SAIL - possible to create type of call-flow/chain of events ?
« Reply #2 on: April 11, 2008, 07:51:53 PM »
HI Jester

Let me just fully understand...

You want to play a greeting (which doesn't offer any key choices - from what you've said), rings a bunch of phones and.. if no one picks up then drop to a vmailbox

Is this correct?

Best

S

Offline jester

  • *
  • 496
  • +1/-0
Re: SAIL - possible to create type of call-flow/chain of events ?
« Reply #3 on: April 13, 2008, 09:02:11 PM »
Hi Selintra,
Yep, that's more or less it... play a "sorry no one is available, leave a message...." kinda message before dropping to a vmailbox, but thats the general idea.

thanx!
jester.


Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: SAIL - possible to create type of call-flow/chain of events ?
« Reply #4 on: April 13, 2008, 09:37:23 PM »
You can do this in one of two ways.  First is the way Sophie describes above.  Create an IVR with no choices and an outcome of the voicemailbox you want to hit. However, as Sophie points out, you will get a delay while the IVR waits for unsolicited input.

The second way is to create a little custom app.  Lets say you've recorded greeting 8088 (using *60*8088). Let's also say that you've set up a ringroup (alias), 9099, with an outcome which goes to the correct voicemail account; - you'll need a fairly late release for this.  From -594 you can choose any vmailbox in an alias outcome.   Then you can do something like this...

Code: [Select]
exten=>s,1,Playback(usergreeting8088)
exten=>s,2,GoTo(internal-presets,9099,1)

I haven't tested this but it looks about right.

:)


Hope this helps
   

Offline soprom

  • *
  • 589
  • +0/-0
    • www.logiciel-libre.org
Re: SAIL - possible to create type of call-flow/chain of events ?
« Reply #5 on: April 13, 2008, 10:03:48 PM »
I just tried this custom app and it works.
There is a small delay (2-3 seconds) before ringing. Can I shorten this?
Sophie from Montréal

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: SAIL - possible to create type of call-flow/chain of events ?
« Reply #6 on: April 13, 2008, 10:08:59 PM »
I don't think that there is any SAIL-induced delay in the logic chain.  Have you maybe left a coupe of seconds of silence at the end of your recording?

If you haven't then may we see the console log when you run it?  For good measure, turn on AGI debugging...

Code: [Select]
agi debug
When you've finished, turn it off with

Code: [Select]
agi no debug

Offline jester

  • *
  • 496
  • +1/-0
Re: SAIL - possible to create type of call-flow/chain of events ?
« Reply #7 on: April 13, 2008, 10:33:49 PM »
Hi,
I was already thinking about messing with custom apps, i'll give it a go tomorrow.

Cheers S.!

Offline jester

  • *
  • 496
  • +1/-0
Re: SAIL - possible to create type of call-flow/chain of events ?
« Reply #8 on: April 13, 2008, 11:03:12 PM »
Selintra,
Is it possible to return from an alias back to the originating custom app? (maybe be setting the outcome of the alias back to the custom app). Or doo a ring-group/hunt-group from a custom app. This would make even more complex flows possible....

regards,
jester.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: SAIL - possible to create type of call-flow/chain of events ?
« Reply #9 on: April 14, 2008, 01:53:20 AM »
you can outcome an alias to a custome app.  You can also call an alias from a custom app with...

Code: [Select]
exten=>s,1,GoTo(internal-presets,{alias number},1)
S

Offline jester

  • *
  • 496
  • +1/-0
Re: SAIL - possible to create type of call-flow/chain of events ? [SOLVED]
« Reply #10 on: April 14, 2008, 09:29:06 AM »
I don't think tho' with the GoTo-statement that calling an alias and then from the alias have the same custom app as outcome will return the call to the position after the originating GoTo-statement (haven't tried this though). I think in the following custom app setting the outcome of alias 9099 back to this custom app will not play the "SorryNoOneThere" msg, but will start at playing "MyCustomWelcome" again:

exten=>s,1,Playback(MyCustomWelcome)
exten=>s,2,GoTo(internal-presets,9099,1)
exten=>s,3,Playback(SorryNoOneThere)
exten=>s,4,Voicemail(5999)

For me this is solved though (for what i wanted to do). I've used your suggestion for the custom app, made a dedicated MAILBOX extension 5999 and an alias 7999 with a ring group and the outcome to that 5999 mailbox extension (not using the LEAVE VOICEMAIL 5999 though, this would keep playing the VMail instructions although they were set to off in Global). Made my own Welcome recording and my own recordings for the 5999 VMail.... works like a charm!

Thanks Selintra and Soprom !!

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: SAIL - possible to create type of call-flow/chain of events ? [SOLVED]
« Reply #11 on: April 14, 2008, 11:53:12 AM »
Quote
I don't think tho' with the GoTo-statement that calling an alias and then from the alias have the same custom app as outcome will return the call to the position....

No it won't.  Sorry I didn't explain so well.  I simply meant that you can link from one to the other.  With a bit of clever juggling you can link back to a different app which can continue your process.

Best


Offline jester

  • *
  • 496
  • +1/-0
Re: SAIL - possible to create type of call-flow/chain of events ? [SOLVED]
« Reply #12 on: April 14, 2008, 12:41:59 PM »
Link back to other app --- DuH !! --- why didn't i think of that, i can be SO THICK every now and then.

Thanks S.,
jester.

Offline NetDreamer

  • *
  • 11
  • +0/-0
I have been trying to set up a similar small office system with a slight variation
 - call recieved
 - ring group of phones
 - if no answer then IVR -
           option 1  play message "transfering call now" then for transfer to mobile
           option do nothing  - transfer to voicemail
 
I have a couple of questions,
1. is there a way to cover the awkward silences / shorten the pauses.
2. The IVR timeout option seems to reset to "Replay message" all the time - is this supposed to happen
3. can the timeout delay be adjusted/ where is this set / is this global or individual for each ivr.

PS. I am new to this but love the product.

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Code: [Select]
. is there a way to cover the awkward silences / shorten the pauses.

Which silences? where?

Code: [Select]
2. The IVR timeout option seems to reset to "Replay message" all the time - is this supposed to happen
No its a small bug.  The value you set is being used it is just a display issue.  It's fixed in -634 which is due very shortly.

Code: [Select]
3. can the timeout delay be adjusted/ where is this set / is this global or individual for each ivr.

It will wait 5 seconds for a keypress before taking the outcome.  How long do you need?

Kind Regards
« Last Edit: June 19, 2008, 11:41:14 PM by selintra »

Offline NetDreamer

  • *
  • 11
  • +0/-0
Thanks for the reply.
the silences are in a couple of places.
1. after dial but before connection there is silence for 4 - 8 seconds (thinking aloud maybe interdigit timout) can this silence be masked somehow
2. between applications - with more reading and experimentation I found this was due to "recorded silence" at begining and end of messages coupled with the after message delay on IVR.
So for timeout option we had 5sec delay after end of message + process time + recorded silence at start of next IVR menu. this gave us a total of approx 8-10 sec silence on time out. I have rerecorded messages and reduced this.

My original thoughts were to have a sequence that gave the options ie dial 1 for XXX dial 2 for xxx then at the end of message have a part that said "or just hold and you will be transfered to voicemail" then effect transfer immediatly. However once I clipped messages to eliminate the recorded silence the 5 sec delay was acceptable.

regards brian