Difference between revisions of "OpenBTS: set asterisk demo user"

From OnnoWiki
Jump to navigation Jump to search
(Created page with "Tambahkan nomor, sudo asterisk -rx "database put IMSI IMSI001010000000001 2001" sudo asterisk -rx "database put PHONENUMBER 2001 IMSI001010000000001" sudo asterisk -rx "d...")
 
Line 12: Line 12:
 
  sudo asterisk -rx "database put IMSI IMSI510107013804199 2032"
 
  sudo asterisk -rx "database put IMSI IMSI510107013804199 2032"
 
  sudo asterisk -rx "database put PHONENUMBER 2032 IMSI510107013804199"
 
  sudo asterisk -rx "database put PHONENUMBER 2032 IMSI510107013804199"
 
  
 
  sudo asterisk -rx "database put IMSI IMSI510103013910888 2003"
 
  sudo asterisk -rx "database put IMSI IMSI510103013910888 2003"

Revision as of 12:15, 11 May 2017

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 IMSI510103013910888 2003"
sudo asterisk -rx "database put PHONENUMBER 2003 IMSI510103013910888"

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