FORGEBOX Enterprise 🚀 - Take your ColdFusion (CFML) Development to Modern Times! Learn More...

placetel

v1.0.1 Public

Placetel

Implements Placetel API and notify for Coldfusion / Coldbox Placetel is a German Voip Provider, with this api you can be notfied of calls and other events, you can do routing of phone calls

For more information see:

https://www.placetel.de/hilfe/telefonanlage/api

https://github.com/Placetel/call-control-notify-api

Installation

You will need a Placetel Account to work with this API

box install placetel

Usage

Notify

Use the notify handler to interact with incoming calls.

  • Enter the endpoint in you Placetel Api account, maybe you need to contact customer service to have access to this entry
  • Enter your url like: https://yourdomain/index.cfm/placetel/notify
  • Implement you own intercepter, for example see interceptors/notify.cfc
function placetel_CallAccepted( event, interceptData ) {
	var prc = event.getCollection(private=true);
	var rc	= event.getCollection();

//	prc.placetelResponse=Notify.reject();

//	prc.placetelResponse=Notify.reject("busy");

//	prc.placetelResponse=Notify.hangup();

//	prc.placetelResponse=Notify.queue(1234);
}

Interact with the api

  • call somebody
var myVoipAccount='[email protected]';
var somebody='069999999'; 

var ptc = getModel("[email protected]");
ptc.setApiKey('YOUR API KEY GOES HERE');


// this initiate a call, ring your phone/voip client 
// and dial to somebody
var calling = getModel("[email protected]");
calling.call(ptc,myVoipAccount,somebody);		

Written by

www.akitogo.com

Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Dependencies (0)


Dev Dependencies (0)


 

$ box install placetel

No collaborators yet.
 
  • Aug 24 2017 05:41 AM
  • Aug 24 2017 09:36 AM
  • 756
  • 831
  • 1