Koozali.org: home of the SME Server

Call Completion Supplementary Services on SAIL/SARK

Offline Irksome

  • 10
  • +0/-0
Call Completion Supplementary Services on SAIL/SARK
« on: January 07, 2014, 11:39:22 AM »
Has anyone had any experience with implementing CCSS (you don't think I'm typing that whole name again!) with SAIL / SARK?  It can be such a useful feature but there is very little information about it beyond https://wiki.asterisk.org/wiki/pages/viewpage.action?pageId=5243096

MTIA Irksome

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Call Completion Supplementary Services on SAIL/SARK
« Reply #1 on: January 07, 2014, 01:39:51 PM »
Hi there

Your timing is just about perfect.   We are just about to start playing with CCSS to see how well it works.  Not done anything yet but it's on the list to evaluate in the near term.

Kind Regards

S

Offline Irksome

  • 10
  • +0/-0
Re: Call Completion Supplementary Services on SAIL/SARK
« Reply #2 on: January 07, 2014, 01:46:18 PM »
I Like being perfect ;-) Have sent a PM ... many thanks.

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Call Completion Supplementary Services on SAIL/SARK
« Reply #3 on: January 07, 2014, 06:52:27 PM »
Turns out that this is pretty easy to implement in SAIL.   We'll probably integrate it properly in a near release but you can do it now with a custom app.  One of the guys at our UK Disti has been playing with it so here's an example he sent me

In the extension asterisk tab you have to add a couple of lines for each phone you want to enable the feature for

Code: [Select]
[4009]
type=friend
username=Ext4009
secret=xxxxxx
mailbox=
host=dynamic
qualify=3000
canreinvite=no
context=internal
callerid="Ext4009" <4009>
pickupgroup=1
callgroup=1
call-limit=3
subscribecontext=extensions
disallow=all
allow=alaw
allow=ulaw
; add these two lines
cc_agent_policy=generic
cc_monitor_policy=generic

[5008]
type=friend
username=Ext5058
secret=xxxxxxx
mailbox=
host=dynamic
qualify=3000
transport=tcp,udp
context=internal
call-limit=99
callerid="Ext5058" <5058>
subscribecontext=extensions
canreinvite=no
pickupgroup=1
callgroup=1
disallow=all
allow=g722
allow=alaw
allow=ulaw
; add these two
cc_agent_policy=generic
cc_monitor_policy=generic


Now create an app (with a span of internal) to action the CCSS

Code: [Select]
exten => 30,1,CallCompletionRequest
exten => 30,n,Hangup
exten => 31,1,CallCompletionCancel
exten => 31,n,Hangup

5058 dials 4009, 4009 is already on call and rejects the call or If call waiting is turned off 5058 will automatically get busy tone. 5058 then dials 30 (you can change this to whatever you fancy) to activate CCSS. As soon as 4009 hangs up the call, Asterisk dials 5058 and then 4009 to achieve call completion.  If you get tired of waiting do 31 to cancel the feature

Turns out it still works even if your initial call dropped to Voicemail (just hang-up and dial 30).  Looks pretty cool on the few tests we've done.   Give it a go and let me know how you get on

S
« Last Edit: January 07, 2014, 06:56:40 PM by SARK devs »

Offline Irksome

  • 10
  • +0/-0
Re: Call Completion Supplementary Services on SAIL/SARK
« Reply #4 on: January 07, 2014, 07:49:31 PM »
Trying it tonight - thanks to you all.  Will report back.

Offline Irksome

  • 10
  • +0/-0
Re: Call Completion Supplementary Services on SAIL/SARK
« Reply #5 on: January 09, 2014, 12:51:59 AM »
Well I've had it working, but need to figure out how to make it easier to use. Currently the caller receives either a busy tone or a voicemail, has to hang up and then dial the code (30 or whatever) to activate the notify.  Having to hang up first before dialing (or pressing a programmed key) for the call return is counter-intuitive so I need to figure out a way around that.

Offline SARK devs

  • ****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Call Completion Supplementary Services on SAIL/SARK
« Reply #6 on: January 09, 2014, 09:31:57 PM »
Hi there

I guess from what you say that you wish to set the callback while you are still connected on the first call (i.e the way your Telco does it). It can be done, at least in principle, by using the applicationmap section of features.conf.   However, applicationmap isn't well documented.  SARK uses applicationmaps for handling recording pause/resume and one-touch retrospective recording.  I will look at this suggestion when we adopt the CCSS feature. 

Best
S