Koozali.org: home of the SME Server

Authorization Codes

Offline peterpan746

  • ***
  • 55
  • +0/-0
Authorization Codes
« on: June 18, 2008, 12:58:51 AM »
I found this
Code: [Select]
Exten => X,1,Authorize(1234) ;

on Digium's forum.  The question I now have is how do I incorporate this into the dial plan since I can't edit the config file directly. This is for individual persons not the route the call takes. 
« Last Edit: June 18, 2008, 01:04:31 AM by peterpan746 »

Offline SARK devs

  • *****
  • 2,806
  • +1/-0
    • http://sarkpbx.com
Re: Authorization Codes
« Reply #1 on: June 18, 2008, 01:07:52 AM »
OK...

Two things

You can add code to the dialplan using custom-apps.  SAIL will automatically stitch the app into the correct place in the dialplan for you.  Secondly, what exactly are you attempting to authorise?  If it is, as I suspect, outbound calls, SAIL already has that functionality.  Create your pin numbers in headers=>selauth.conf.  You can create as many pin numbers as you like (one for each person) 

Then in your outbound route set "Authorization Required" to YES.

All done.

Kind Regards

« Last Edit: June 18, 2008, 01:09:34 AM by selintra »

Offline peterpan746

  • ***
  • 55
  • +0/-0
Re: Authorization Codes
« Reply #2 on: June 18, 2008, 01:48:23 AM »
Once again thank you.  I found it, set it up and it is working great.