私はカンボジアにいるので、現地の携帯電話番号にSMSを送信するために現在kannelゲートウェイを使用できます。しかし、私はなぜ海外の携帯電話番号(シンガポールの携帯電話番号)にSMSを送信しようとするとエラーに遭遇します。 SIMカードを取り出して電話に入れると、SMSを海外に送ることができます。Kannelゲートウェイを使用して海外の携帯電話番号にSMSを送信する際にエラーが発生しました
誤りがある2011-01-11 10時58分04秒[3960] [6] ERROR:AT2 [ABCD]:一般的なエラー:誰もが今までにこの問題が発生しました
ERROR?私は本当にあなたの助けに感謝します。ありがとうございました。
私はUbuntu 10.04 LTSにインストールされたKannel 1.4.3を使用しています。私は、シリアルポート経由でkannelに接続されたWAVECOM FASTRACKタイプのDUAL BRANCH MODEMであるwavecomモデムを使用します。
これは私がWebブラウザ
のhttpからSMSを送信するために使用するコマンドです:へ& 85516872490 = +からfoobarに& = 13013/CGI-binに/ sendsmsユーザ名=テスター&パスワード:// localhostの? = + 6597379814 & text = TestSendingAnSMSFromTheystem
以下は私の設定ファイルとログファイルです。
詳細が必要な場合は、お知らせください。
設定ファイル:kannel.conf
group = core
admin-port = 13000
admin-password = bar
smsbox-port = 13001
smsbox-port-ssl = false
log-file = "/home/sambath/Documents/softwares/kannel/kannel.log"
log-level = 0
access-log = "/home/sambath/Documents/softwares/kannel/access.log"
access-log-clean = true
sms-resend-retry = 0
# SMSC GSM
group = smsc
smsc = at
smsc-id = abcd
modemtype = wavecom
device = /dev/ttyUSB0
pin = 0000
alt-charset = "ASCII"
group = modems
id = wavecom
name = "wavecom"
detect-string = "wavecom"
message-storage = sm
speed = 115200
# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
sendsms-chars = "-"
log-file = "/home/sambath/Documents/softwares/kannel/smsbox.log"
access-log = "/home/sambath/Documents/softwares/kannel/access.log"
mo-recode = true
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
# SMS SERVICES
group = sms-service
keyword = default
get-url = "http://localhost:8080/ReceiveSms.php?sender=%p&text=%a"
catch-all = true
max-messages = 0
ログファイル:kannel.log
2011-01-11 10:57:44 [3960] [0] INFO: Added logfile `/home/sambath/Documents/softwares/kannel/kannel.log' with level `0'.
2011-01-11 10:57:44 [3960] [0] INFO: Started access logfile `/home/sambath/Documents/softwares/kannel/access.log'.
2011-01-11 10:57:44 [3960] [0] INFO: SSL not supported, no SSL initialization done.
2011-01-11 10:57:44 [3960] [0] INFO: HTTP: Opening server at port 13000.
2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2011-01-11 10:57:44 [3960] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 3960.
2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run)
2011-01-11 10:57:44 [3960] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 3960.
2011-01-11 10:57:44 [3960] [0] DEBUG: starting smsbox connection module
2011-01-11 10:57:44 [3960] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100).
2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes)
2011-01-11 10:57:44 [3960] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 3960.
2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run)
2011-01-11 10:57:44 [3960] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 3960.
2011-01-11 10:57:44 [3960] [0] INFO: Set SMS resend frequency to 60 seconds.
2011-01-11 10:57:44 [3960] [0] INFO: SMS resend retry set to 0.
2011-01-11 10:57:44 [3960] [0] DEBUG: smsbox MO concatenated message handling enabled
2011-01-11 10:57:44 [3960] [0] INFO: DLR rerouting for smsc id <abcd> disabled.
2011-01-11 10:57:44 [3960] [0] INFO: AT2[abcd]: configuration shows modemtype <wavecom>
2011-01-11 10:57:44 [3960] [0] DEBUG: AT2[abcd]: Reading modem definitions from <kannel.conf>
2011-01-11 10:57:44 [3960] [0] DEBUG: AT2[abcd]: Found <1> modems in config
2011-01-11 10:57:44 [3960] [0] INFO: AT2[abcd]: read modem definition for <wavecom>
2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread)
2011-01-11 10:57:44 [3960] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 3960.
2011-01-11 10:57:44 [3960] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router)
2011-01-11 10:57:44 [3960] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 3960.
2011-01-11 10:57:44 [3960] [6] INFO: AT2[abcd]: trying to use speed <115200> from modem definition
2011-01-11 10:57:44 [3960] [6] INFO: AT2[abcd]: opening device
2011-01-11 10:57:44 [3960] [0] INFO: ----------------------------------------
2011-01-11 10:57:44 [3960] [0] INFO: Kannel bearerbox II version 1.4.3 starting
2011-01-11 10:57:44 [3960] [0] INFO: MAIN: Start-up done, entering mainloop
2011-01-11 10:57:44 [3960] [0] DEBUG: AT2[abcd]: start called
2011-01-11 10:57:44 [3960] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 3960.
2011-01-11 10:57:44 [3960] [6] DEBUG: AT2[abcd]: device opened. Telnet mode = 0
2011-01-11 10:57:44 [3960] [6] DEBUG: AT2[abcd]: device opened
2011-01-11 10:57:44 [3960] [6] INFO: AT2[abcd]: speed set to 115200
2011-01-11 10:57:44 [3960] [6] DEBUG: AT2[abcd]: --> ^M
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: --> AT^M
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: <-- AT
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:46 [3960] [6] INFO: AT2[abcd]: Closing device
2011-01-11 10:57:46 [3960] [6] INFO: AT2[abcd]: speed is 115200
2011-01-11 10:57:46 [3960] [6] INFO: AT2[abcd]: opening device
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: device opened. Telnet mode = 0
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: device opened
2011-01-11 10:57:46 [3960] [6] INFO: AT2[abcd]: Logging in
2011-01-11 10:57:46 [3960] [6] INFO: AT2[abcd]: init device
2011-01-11 10:57:46 [3960] [6] INFO: AT2[abcd]: speed set to 115200
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: --> ATZ^M
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: <-- ATZ
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:46 [3960] [6] DEBUG: AT2[abcd]: --> AT^M
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: <-- AT
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: --> AT&F^M
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: <-- AT&F
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: --> ATE0^M
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: <-- ATE0
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: --> AT+IFC=2,2^M
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: --> AT+CPIN?^M
2011-01-11 10:57:47 [3960] [6] DEBUG: AT2[abcd]: <-- +CPIN: READY
2011-01-11 10:57:48 [3960] [5] INFO: Client connected from <127.0.0.1>
2011-01-11 10:57:48 [3960] [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function)
2011-01-11 10:57:48 [3960] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps to pid 3960.
2011-01-11 10:57:48 [3960] [8] DEBUG: Started thread 9 (gw/bb_boxc.c:boxc_sender)
2011-01-11 10:57:48 [3960] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) maps to pid 3960.
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: --> AT+CMGF=0^M
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: --> AT+CSMS=?^M
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: <-- +CSMS: (0,1)
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:58 [3960] [6] INFO: AT2[abcd]: Phase 2+ is supported
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: --> AT+CSMS=1^M
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: <-- +CSMS: 1,1,1
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: --> AT+CNMI=1,2,0,1,0^M
2011-01-11 10:57:58 [3960] [6] DEBUG: AT2[abcd]: <-- OK
2011-01-11 10:57:58 [3960] [6] INFO: AT2[abcd]: AT SMSC successfully opened.
2011-01-11 10:58:00 [3960] [8] DEBUG: boxc_receiver: sms received
2011-01-11 10:58:00 [3960] [8] DEBUG: send_msg: sending msg to box: <127.0.0.1>
2011-01-11 10:58:02 [3960] [6] DEBUG: AT2[abcd]: TP-Validity-Period: 24.0 hours
2011-01-11 10:58:02 [3960] [6] DEBUG: AT2[abcd]: --> AT+CMGS=39^M
2011-01-11 10:58:02 [3960] [6] DEBUG: AT2[abcd]: <--
2011-01-11 10:58:02 [3960] [6] DEBUG: AT2[abcd]: <-- >
2011-01-11 10:58:02 [3960] [6] DEBUG: AT2[abcd]: send command status: 1
2011-01-11 10:58:02 [3960] [6] DEBUG: AT2[abcd]: --> 0011000A8156797377780000A71DD4F29C3E2DBBC969F739E89E36A746F9BB4D4597A7F939BDDC06
2011-01-11 10:58:02 [3960] [6] DEBUG: AT2[abcd]: --> ^Z
2011-01-11 10:58:04 [3960] [6] DEBUG: AT2[abcd]: <-- ERROR
2011-01-11 10:58:04 [3960] [6] ERROR: AT2[abcd]: Generic error: ERROR
2011-01-11 10:58:04 [3960] [6] DEBUG: AT2[abcd]: send command status: -1
2011-01-11 10:58:04 [3960] [7] DEBUG: sms_router: handling message (0x9268090 vs 0x9268090)
2011-01-11 10:58:04 [3960] [7] DEBUG: re-queing SMS not-yet-to-be resent
ログファイル:smsbox.log
2011-01-11 10:57:48 [3968] [0] INFO: Added logfile `/home/sambath/Documents/softwares/kannel/smsbox.log' with level `0'.
2011-01-11 10:57:48 [3968] [0] INFO: Logging accesses to '/home/sambath/Documents/softwares/kannel/access.log'.
2011-01-11 10:57:48 [3968] [0] INFO: Started access logfile `/home/sambath/Documents/softwares/kannel/access.log'.
2011-01-11 10:57:48 [3968] [0] INFO: HTTP: Opening server at port 13013.
2011-01-11 10:57:48 [3968] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2011-01-11 10:57:48 [3968] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 3968.
2011-01-11 10:57:48 [3968] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread)
2011-01-11 10:57:48 [3968] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 3968.
2011-01-11 10:57:48 [3968] [0] INFO: Set up send sms service at port 13013
2011-01-11 10:57:48 [3968] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread)
2011-01-11 10:57:48 [3968] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 3968.
2011-01-11 10:57:48 [3968] [0] DEBUG: ----------------------------------------------
2011-01-11 10:57:48 [3968] [0] DEBUG: Kannel smsbox version 1.4.3 starting
2011-01-11 10:57:48 [3968] [0] DEBUG: dumping group (sendsms-user):
2011-01-11 10:57:48 [3968] [0] DEBUG: <group> = <sendsms-user>
2011-01-11 10:57:48 [3968] [0] DEBUG: <username> = <tester>
2011-01-11 10:57:48 [3968] [0] DEBUG: <password> = <foobar>
2011-01-11 10:57:48 [3968] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread)
2011-01-11 10:57:48 [3968] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 3968.
2011-01-11 10:57:48 [3968] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread)
2011-01-11 10:57:48 [3968] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 3968.
2011-01-11 10:57:48 [3968] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread)
2011-01-11 10:57:48 [3968] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 3968.
2011-01-11 10:57:48 [3968] [0] INFO: Connected to bearerbox at localhost port 13001.
2011-01-11 10:57:48 [3968] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread)
2011-01-11 10:57:48 [3968] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 3968.
2011-01-11 10:58:00 [3968] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
2011-01-11 10:58:00 [3968] [2] DEBUG: HTTP: Created HTTPClient area 0x84472b0.
2011-01-11 10:58:00 [3968] [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1>
2011-01-11 10:58:00 [3968] [3] INFO: sendsms used by <tester>
2011-01-11 10:58:00 [3968] [3] INFO: sendsms sender:<tester: 85516872490> (127.0.0.1) to:< 6597379814> msg:<TestSendingAnSMSFromTheSystem>
2011-01-11 10:58:00 [3968] [3] DEBUG: Stored UUID 7b596f94-9784-456c-bd51-930b1f129df0
2011-01-11 10:58:00 [3968] [3] DEBUG: message length 29, sending 1 messages
2011-01-11 10:58:00 [3968] [3] DEBUG: Status: 202 Answer: <Sent.>
2011-01-11 10:58:00 [3968] [3] DEBUG: Delayed reply - wait for bearerbox
2011-01-11 10:58:00 [3968] [0] DEBUG: Got ACK (0) of 7b596f94-9784-456c-bd51-930b1f129df0
2011-01-11 10:58:00 [3968] [0] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.