Information Technology Articles :: SEO Tips :: WAP Articles :: Search Engine Marketing :: Internet Tips

Goedangilmu

Konfigurasi Kannel (Part 1)

Posted on September 15th, 2007 in Teknologi IT, 572 views

Berikut ini adalah konfigurasi yang saya pakai di kannel dengan menggunakan Nokia 7610 sebagai Virtual SMSC. Untuk melakukan request ke server atau kannel maka saya menggunakan fungsi PHP CURL. Konfigurasi berikut ini telah saya update dari konfigurasi sebelumnya yang telah saya tulis di halaman ini juga.

group = core

admin-port = 13000

smsbox-port = 13001

wapbox-port = 13002

admin-password = bar

wdp-interface-name = “127.0.0.1″

log-file = “/tmp/bearerbox.log”

log-level = 0

access-log = “/tmp/access.log”

# WAPBOX SETUP, for pushing and for pulling (fetching) the wap data

group = wapbox

bearerbox-host = 127.0.0.1

log-file = “/tmp/wapbox.log”

log-level = 0

syslog-level = none

# PPG CORE SETUP, for defining the push request interface

group = ppg

ppg-url = /wappush

ppg-port = 8080

concurrent-pushes = 100

trusted-pi = true

users = 1024

ppg-allow-ip = “*.*.*.*”

default-smsc = l7

ppg-smsbox-id = smsbox1

service-name = ppg1

# PPG USER SETUP, for authorizing a specific push user

group = wap-push-user

wap-push-user = foo

ppg-username = foo

ppg-password = bar

default-smsc = l7

smsbox-id = smsbox1

forced-smsc = l7

#———————————————

# SMSC CONNECTIONS

#

# SMSC connections are created in bearerbox and they handle SMSC specific

# protocol and message relying. You need these to actually receive and send

# messages to handset, but can use GSM modems as virtual SMSCs

# This is a fake smsc connection, _only_ used to test the system and services.

# It really cannot relay messages to actual handsets!

group = modems

id = nokia

name = “Nokia Phone”

detect-string = “Nokia”

detect-string2 = “7610″

need-sleep = true

keepalive-cmd = “AT+CBC;+CSQ”

init-string = “AT+CMEE=1″

no-pin = true

group = smsc

smsc = at

smsc-id = l7

modemtype = nokia

device = /dev/ttyACM0

speed = 19200

#———————————————

# SMSBOX SETUP

#

# Smsbox(es) do higher-level SMS handling after they have been received from

# SMS centers by bearerbox, or before they are given to bearerbox for delivery

group = smsbox

smsbox-id = smsbox1

bearerbox-host = 127.0.0.1

sendsms-port = 13013

sendsms-url = /cgi-bin/sendsms

log-file = “/tmp/smsbox.log”

log-level = 0

access-log = “/tmp/access.log”

#———————————————

# SEND-SMS USERS

#

# These users are used when Kannel smsbox sendsms interface is used to

# send PUSH sms messages, i.e. calling URL like

# http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar…

group = sendsms-user

username = foo

password = bar

forced-smsc = l7

max-messages = 10

concatenation = 1

#———————————————

# SERVICES

#

# These are ‘responses’ to sms PULL messages, i.e. messages arriving from

# handsets. The response is based on message content. Only one sms-service is

# applied, using the first one to match.

group = sms-service

text = “Aloww Chat!”

keyword = www

post-url = “http://%S”

accept-x-kannel-headers = true

catch-all = true

assume-plain-text = true

send-sender = true

group = sms-service

keyword = default

text = “No service specified”

# There should be always a ‘default’ service. This service is used when no

# other ’sms-serv

Related Posts :

Published by Adith

No Comments

Leave a comment