如何使用kannel发送和接收USSD

时间:2013-03-01 13:52:33

标签: sms-gateway smpp kannel ussd

我是USSD的新手,但我已经使用Kannel 1.5.4发送消息了。 我希望使用kannel发送/接收USSD请求。我有相同的smpp v5帐户。 如果有人通过配置文件帮助我,那会更好。 我的配置文件是:

#SMSC CONNECTIONS
group = smsc
smsc = smpp
smsc-id = USSD-ACC
host= 10.*.*.*
port= 1234
transceiver-mode=true
smsc-username = "USER"
smsc-password = "PWD"
system-type = ""
interface-version=34
source-addr-ton=5
source-addr-npi=0
dest-addr-ton=0
dest-addr-npi=1
max-pending-submits=10
wait-ack=600
wait-ack-expire=0x01

# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 12345
sendsms-chars = "0123456789 +-"
log-file = "/tmp/kannel_smsbox.log"
log-level = 3
# SERVICES
group = sms-service
keyword = default
get-url = "http://localhost/request.php?MNO=%p&SHORTCODE=%P&CONTENT=%a"
name="*123#"
max-messages=0

group = sendsms-user
username = ussd
password = ussd
user-deny-ip  = *.*.*.*"
user-allow-ip = "127.0.0.1"
max-messages = 5
concatenation = true
default-sender = "123"

1 个答案:

答案 0 :(得分:3)

似乎您需要使用 smpp-tlv 部分将 ussd_service_op TLV传入/传出USSDC。

有关配置示例,请参阅this link