Koozali.org: home of the SME Server

Obsolete Releases => SME VoIP (Asterisk, SAIL etc) => Topic started by: peterpan746 on June 18, 2008, 12:58:51 AM

Title: Authorization Codes
Post by: peterpan746 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. 
Title: Re: Authorization Codes
Post by: SARK devs 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

Title: Re: Authorization Codes
Post by: peterpan746 on June 18, 2008, 01:48:23 AM
Once again thank you.  I found it, set it up and it is working great.