OpenBTS: set asterisk demo user

From OnnoWiki
Jump to navigation Jump to search

Tambahkan nomor,

sudo asterisk -rx "database put IMSI IMSI001010000000001 2001"
sudo asterisk -rx "database put PHONENUMBER 2001 IMSI001010000000001"
sudo asterisk -rx "database put IMSI IMSI510105852803044 2002"
sudo asterisk -rx "database put PHONENUMBER 2002 IMSI510105852803044"
sudo asterisk -rx "database put IMSI IMSI901550000000148 2012"
sudo asterisk -rx "database put PHONENUMBER 2012 IMSI901550000000148"
sudo asterisk -rx "database put IMSI IMSI510107013804199 2032"
sudo asterisk -rx "database put PHONENUMBER 2032 IMSI510107013804199"
sudo asterisk -rx "database put IMSI IMSI510114152277288 2009"
sudo asterisk -rx "database put PHONENUMBER 2009 IMSI510114152277288"

Cek

asterisk -rx "database show"

Buat

vi /etc/asterisk/extensions-custom.conf

isi dengan

[from-openBTS]
 
exten => _0521X.,1,Verbose(Dialplan started)
same = n,Set(CALLER_IMSI=${CALLERID(num)})
 
same = n,Verbose(Get CID from CALLER_IMSI: ${CALLER_IMSI})
same = n,Set(CID=${DB(IMSI/${CALLER_IMSI})})
same = n,Set(CALLERID(num)=${CID})
 
same = n,Verbose(Get IMSI from EXTEN: ${EXTEN})
same = n,Set(IMSI=${DB(PHONENUMBER/${EXTEN})})
same = n,Dial(SIP/00101100010/${IMSI})

same = n,Hangup