Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Asterisk pin code for out-going international calls (safeguard against fraud)


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
motty.cruz at gmail.com
Guest





PostPosted: Mon Jul 06, 2015 4:44 pm    Post subject: [asterisk-users] Asterisk pin code for out-going internation Reply with quote

Hello All,

I will like to configure Asterisk to use PIN Code for all outgoing
international calls.

Also, any suggestions as to when should I prompt users for code prior to
dialing the number or after dialing the number?

can someone provide with a example on how to accomplish this goal? I am
a bit confuse by this :
http://forums.digium.com/viewtopic.php?p=130936&sid=707f657f7a61dfed55e4922304925091

Thanks for your help.


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
RyanT at OscarWinski.com
Guest





PostPosted: Mon Jul 06, 2015 6:18 pm    Post subject: [asterisk-users] Asterisk pin code for out-going internation Reply with quote

I've seen this before. It can be done by calling an AGI script when placing the outgoing call. You'd then prompt and make sure the code matches and do your billing logic, etc there. Then place the call if it's valid.

-----Original Message-----
From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Motty Cruz
Sent: Monday, July 06, 2015 5:44 PM
To: asterisk-users@lists.digium.com
Subject: [asterisk-users] Asterisk pin code for out-going international calls (safeguard against fraud)

Hello All,

I will like to configure Asterisk to use PIN Code for all outgoing international calls.

Also, any suggestions as to when should I prompt users for code prior to dialing the number or after dialing the number?

can someone provide with a example on how to accomplish this goal? I am a bit confuse by this :
http://forums.digium.com/viewtopic.php?p=130936&sid=707f657f7a61dfed55e4922304925091

Thanks for your help.


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
johnkiniston at gmail.com
Guest





PostPosted: Mon Jul 06, 2015 6:54 pm    Post subject: [asterisk-users] Asterisk pin code for out-going internation Reply with quote

The Authenticate application will do this for you.

https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Authenticate


You can either give it a single PIN to use for all calls, Authenticate using a value in the Asterisk Database, Or use a plain text file for the PIN's






On Mon, Jul 6, 2015 at 2:43 PM, Motty Cruz <motty.cruz@gmail.com (motty.cruz@gmail.com)> wrote:
Quote:
Hello All,

I will like to configure Asterisk to use PIN Code for all outgoing international calls.

Also, any suggestions as to when should I prompt users for code prior to dialing the number or after dialing the number?

can someone provide with a example on how to accomplish this goal? I am a bit confuse by this : http://forums.digium.com/viewtopic.php?p=130936&sid=707f657f7a61dfed55e4922304925091

Thanks for your help.


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users



--
A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.
---Heinlein
Back to top
motty.cruz at gmail.com
Guest





PostPosted: Tue Jul 07, 2015 11:09 am    Post subject: [asterisk-users] Asterisk pin code for out-going internation Reply with quote

Hello,
I used this guide, it worked for me:
http://www.binaryheartbeat.net/2014/03/asterisk-pin-based-dialing.html

Thanks,

On 07/06/2015 04:54 PM, John Kiniston wrote:

Quote:
The Authenticate application will do this for you.

https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Authenticate


You can either give it a single PIN to use for all calls, Authenticate using a value in the Asterisk Database, Or use a plain text file for the PIN's






On Mon, Jul 6, 2015 at 2:43 PM, Motty Cruz <motty.cruz@gmail.com (motty.cruz@gmail.com)> wrote:
Quote:
Hello All,

I will like to configure Asterisk to use PIN Code for all outgoing international calls.

Also, any suggestions as to when should I prompt users for code prior to dialing the number or after dialing the number?

can someone provide with a example on how to accomplish this goal? I am a bit confuse by this : http://forums.digium.com/viewtopic.php?p=130936&sid=707f657f7a61dfed55e4922304925091

Thanks for your help.


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users



--
A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.
---Heinlein



Back to top
motty.cruz at gmail.com
Guest





PostPosted: Tue Jul 07, 2015 2:23 pm    Post subject: [asterisk-users] Asterisk pin code for out-going internation Reply with quote

Here is what i have,
exten => _011XXXXXXXXX,1,Set(CALLERID(number)=factory2)
exten => _011XXXXXXXXX,2,Authenticate(/home/asterisk/passwds.conf,m,3)
exten => _011XXXXXXXXX,3,NoOp(user has been authenticated)
exten => _011XXXXXXXXX,n,Dial(SIP/VoIPSP1/${EXTEN:1},80)
exten => _011XXXXXXXXX,n,HangUp()

I would like to add background music if authentication failed, then after 6 minutes hangup

any ideas, suggestions?

On 07/07/2015 09:09 AM, Motty Cruz wrote:

Quote:
Hello,
I used this guide, it worked for me:
http://www.binaryheartbeat.net/2014/03/asterisk-pin-based-dialing.html

Thanks,

On 07/06/2015 04:54 PM, John Kiniston wrote:

Quote:
The Authenticate application will do this for you.

https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Application_Authenticate


You can either give it a single PIN to use for all calls, Authenticate using a value in the Asterisk Database, Or use a plain text file for the PIN's






On Mon, Jul 6, 2015 at 2:43 PM, Motty Cruz <motty.cruz@gmail.com (motty.cruz@gmail.com)> wrote:
Quote:
Hello All,

I will like to configure Asterisk to use PIN Code for all outgoing international calls.

Also, any suggestions as to when should I prompt users for code prior to dialing the number or after dialing the number?

can someone provide with a example on how to accomplish this goal? I am a bit confuse by this : http://forums.digium.com/viewtopic.php?p=130936&sid=707f657f7a61dfed55e4922304925091

Thanks for your help.


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users



--
A human being should be able to change a diaper, plan an invasion, butcher a hog, conn a ship, design a building, write a sonnet, balance accounts, build a wall, set a bone, comfort the dying, take orders, give orders, cooperate, act alone, solve equations, analyze a new problem, pitch manure, program a computer, cook a tasty meal, fight efficiently, die gallantly. Specialization is for insects.
---Heinlein




Back to top
johnkiniston at gmail.com
Guest





PostPosted: Tue Jul 07, 2015 2:36 pm    Post subject: [asterisk-users] Asterisk pin code for out-going internation Reply with quote

I don't see that the Authenticate application has return values for failure cases or returns call control on a failure case.

Sorry I don't think you will be able to do what you want with it.

On Tue, Jul 7, 2015 at 12:22 PM, Motty Cruz <motty.cruz@gmail.com (motty.cruz@gmail.com)> wrote:
Quote:
Here is what i have,
exten => _011XXXXXXXXX,1,Set(CALLERID(number)=factory2)
exten => _011XXXXXXXXX,2,Authenticate(/home/asterisk/passwds.conf,m,3)
exten => _011XXXXXXXXX,3,NoOp(user has been authenticated)
exten => _011XXXXXXXXX,n,Dial(SIP/VoIPSP1/${EXTEN:1},80)
exten => _011XXXXXXXXX,n,HangUp()

I would like to add background music if authentication failed, then after 6 minutes hangup

any ideas, suggestions?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services