How to setup Access Number to TopUp Card by CallerID

From Kolmisoft Wiki
Revision as of 13:55, 24 October 2013 by Ricardass (talk | contribs) (→‎Setup)
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:

Howtotopup2.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,Set(MOR_TOPUP_CC_BY_CLI=1)
exten => 777,n,AGI(mor_card_topup)

Change 777 to the DID number in your configuration!

Reload Asterisk and that is all.




See also