SMSC Kannel Config with Wavecom Modem

Pengetahuan ini di share semata-mata untuk tujuan pengetahuan, penggunaan pengetahuan config ini untuk tujuan kejahatan, kebatilan, penipuan dan lain-lain bukan tanggung jawab penulis. mengcopy config dari web ini juga menyebarkannya bukan tanggung jawab penulis dunia dan akhirat. penulis hanya menerima pahala dari setiap pengetahuan yang di share atas tujuan pengetahuan dan pengembangan ilmu pengetahuan.

install kannel SMPP dengan perintah

yum install kannel


[root@google~]# cat /etc/kannel.conf
# Default kannel configuration file
group = core
admin-port = 13000
admin-password = googlesms
status-password = googlesms
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
#smsbox-port = 13001
#wapbox-port = 13002
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
log-level = 1
access-log = "/var/log/kannel/access.log"
smsbox-port = 13001
store-type = file
store-location = "/var/log/kannel/kannel.store"

#SMSC MODEM GSM
group = smsc
smsc = at
connect-allow-ip = 127.0.0.1
port = 13013
host = "localhost"
smsc-id = wavecom
modemtype = wavecom
device = /dev/ttyUSB0
speed = 115200
#sms-center = "+32486000005"
#my-number = "+324XXXXXXXX"

group = modems
id = wavecom
name = wavecom
detect-string = "wavecom"
init-string = "AT+CNMI=2,1,0,0,0;+CMEE=1"

#SMSBOX SETUP
group = smsbox
bearerbox-host = 127.0.0.1
bearerbox-port = 13001
sendsms-port = 13131
sendsms-chars = "0123456789+"
global-sender = 0032485550261
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/access.log"

#SEND-SMS USERS
group = sendsms-user
username = playsms
password = playsms
user-allow-ip = "*.*.*.*"

#SMS SERVICE
group = sms-service
keyword = default
accept-x-kannel-headers = true
#accepted-smsc = Huawei
#accepted-smsc = at2
max-messages = 0
assume-plain-text = true
catch-all = true
get-url = "http://localhost/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a"

penulis menggunakan playsms, url get url di atas dapat di marking bila anda tidak menggunakan play sms.

untuk deteksi modem wave bisa dengan perintah


[root@google ~]# wvdialconf /etc/wvdial.conf
Scanning your serial ports for a modem.

ttyS0: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0: ATQ0 V1 E1 -- and failed too at 115200, giving up.
ttyS1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Port Scan: S2 S3
WvModem: Cannot get information for serial port.
ttyUSB0: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB0: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyUSB0: ATQ0 V1 E1 -- OK
ttyUSB0: ATQ0 V1 E1 Z -- OK
ttyUSB0: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0: Modem Identifier: ATI -- WAVECOM MODEM
ttyUSB0: Speed 230400: AT -- xø
ttyUSB0: Speed 230400: AT -- xø
ttyUSB0: Speed 230400: AT -- xø
ttyUSB0: Max speed is 115200; that should be safe.
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
ttyUSB0: Speed 115200; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
[root@google ~]#

perhatikan cetak tebal diatas itu adalah modem id anda. sesuaikan dengan config kannel diatas. kalau anda nemu error permission error pada /dev/ttyUSB0 atau /dev/ttyS0 anda gunakan perintah dibawah ini


chmod a+x /dev/ttyUSB0

kalau masih belum bisa juga


chmod 777 /dev/ttyUSB0

ganti /dev/ttyUSB0 dengan device modem anda terhubung ke node device apa di linux. caranya pakai command wavedialconf diatas.

*pengetahuan di share disini dan impactnya yang berakibat buruk tidak ditanggung penulis dunia dan akhirat. penulis hanya menerima ucapan terima kasih dan dampak ilmu yang bermanfaat.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s