How to setup Access Number to TopUp Card by CallerID

From Kolmisoft Wiki
Revision as of 19:54, 28 June 2012 by Mindaugas (talk | contribs) (Created page with '= Description = In this example we will setup DID (Access Number) which is only for Card TopUp. When user dials to this number, his CallerID is checked and if Card is found - a…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Description

In this example we will setup DID (Access Number) which is only for Card TopUp.

When user dials to this number, his CallerID is checked and if Card is found - another Card's PIN is asked to topup first user's card.

If User's Card is not found by CallerID - system asks to enter PIN to find out such Card.

Cards CallerID is made equal to the caller's CallerID.



Setup

This can be done using PBX Function External DID

At first setup PBX Function - External DID:

Howtotopup1.png

Then forward some DID to this PBX Function:

Howtotopup1.png

In file /etc/asterisk/extensions_mor_external_did.conf

enter such lines:


exten => 777,1,Set(MOR_TOPUP_CC_CLI=${CALLERID(number)})
exten => 777,n,AGI(mor_card_topup)

Change 777 to the DID number in your configuration!

Reload Asterisk and that is all.