Skip to main content

PIN Sets for calls

Posted by rmrg on Mon, 04/12/2010

Hi,
I moved a remote customer from our Elastix server to Thirdlane MTE. Everything is working fine, the only issue I have is the following:
In Elastix the customer had "PIN Sets" for the routes. A "Pin Set" can be assigned to a Route; so everytime a customer wants to make a call through that route the server asks for a PIN that was previusly saved in a PIN Set List.
The customer has 5 passwords for the employees.
This option is very common over here in South America, where calls to mobile phones are much more expensive than landlines. It's a way to control who can call to mobile, national or international numbers.
I didn't find any option like the one I used in Elastix.
Please advice,
Thank you,
Regards,
Roque.


Submitted by eeman on Mon, 04/12/2010 Permalink

well one way to control who can and cant call is to put the restricted patterns in the restricted group and only set the extensions able to call that as 'able to call restricted numbers'.

Submitted by rmrg on Tue, 04/13/2010 Permalink

Thanks for your reply.
But is there a way to put passwords the way Freepbx/Elastix does? where Asterisk asks for a password as soon as you finish dialing? Thirdlane runs under Asterisk, so why not?
Thank you.
Regards,
Roque.

Submitted by eeman on Tue, 04/13/2010 Permalink

yes.. via custom programming. I wrote something like this for another customer that wanted to define who was allowed to call restricted routes, of those people who had to authenticate and who did not, and also who is allowed international calling versus just LD.

Submitted by rmrg on Tue, 04/13/2010 Permalink

Erik,
I created a script in PBX Config --> Scripts Library.
Basically I copied the script "tl-dialout-1-trunk" and added one line (the 3rd one):

exten => s,1,GotoIf($["${MACRO_EXTEN}" = "s"]?dial)
exten => s,n,Set(__DIALED_NUMBER=${MACRO_EXTEN})
exten => s,n,Authenticate(/etc/asterisk/${ARG6}|a)
exten => s,n(dial),Macro(tl-dialout-base,${ARG1},${ARG2},${ARG3},${ARG4},${ARG5})

where ${ARG6} is the PIN file name located in /etc/asterisk/ folder

I asigned that script to the outbound routes used by the customer and is working fine.

I would like to know if this is the best way to do it or maybe there is a better one.

Also I would like to know what does "Dial command options" mean when you create an outbound route? I couldnt figure it out.

Thank you,
Regards,
Roque.

Submitted by eeman on Wed, 04/14/2010 Permalink

if you do a 'core show application Dial' you will see the available options.

As far as authentication I like the VMAuthenticate() method .. which just checks the mailbox password but works like Authenticate. Also take a look at the the Log application as you can use it if you need to know when someone makes calls.