Hej med jer.
Nogen herinde der har erfaring med kannel sms gateway?
Jeg have tænkt mig at bruge den i forbindelse med SMS notification på
vores nagios overvågning.
Kannel serveren står her i forvejen og bliver brugt i en anden
forbindelse, men jeg tænkte at den kan jeg da også benytte mig af.
Jeg har læst i deres (meget omfattende) dokumentation at man kan sende
SMS'er via HTTP.
Jeg har så forsøgt mig med en url der dser såleds ud:
http://192.168.0.225:13013/cgi-bin/sendsms?username=xxx&password=xxxxx&to=xxxxx&text=Hello+world
Serveren svarer igen med "Sent" og intet andet.
Men der kommer intet frem, har prøvet med +45 og 0045 foran mit telefon
nummer.
man kan så se status på serveren med følgende url:
http://192.168.0.225:13000/status
Den returnerer følgende:
Status: running, uptime 2d 12h 47m 2s
WDP: received 0 (0 queued), sent 0 (0 queued)
SMS: received 0 (0 queued), sent 0 (0 queued), store size -1
SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec
DLR: 0 queued, using internal storage
Box connections:
wapbox, IP 127.0.0.1 (on-line 2d 12h 46m 57s)
smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 2d 12h 46m 52s)
SMSC connections:
unknown AT2[/var/dme/dev/smsmodem] (online 218814s, rcvd 0, sent
0, failed 7, queued 0 msgs)
og her kan jeg jo se i den nederste SMSC connections at der er 7 fejl
(passer med det antal gange jeg har forsøgt)
fejlen er unknown.
/var/dme/dev/smsmodem er et symlink til /dev/ttys0
Her er noget af bearerbox.log filen:
2007-01-31 10:19:19 [32565] [17] DEBUG: boxc_receiver: sms received
2007-01-31 10:19:19 [32565] [17] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]:
TP-Validity-Period: 24.0 hours
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: -->
AT+CMGS=23^M
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: <-- >
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: send
command status: 1
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: -->
0011000881323770200000A70CC8329BFD06DDDF72365904
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: --> ^Z
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: <-- >
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: <-- ERROR
2007-01-31 10:19:21 [32565] [6] ERROR: AT2[/var/dme/dev/smsmodem]: Error
occurs: ERROR (error number not known to us. ask google and add it.)
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: send
command status: -1
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: -->
AT+CMGS=23^M
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: <-- >
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: send
command status: 1
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: -->
0011000881323770200000A70CC8329BFD06DDDF72365904
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: --> ^Z
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: <-- >
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: <-- ERROR
2007-01-31 10:19:21 [32565] [6] ERROR: AT2[/var/dme/dev/smsmodem]: Error
occurs: ERROR (error number not known to us. ask google and add it.)
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: send
command status: -1
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: -->
AT+CMGS=23^M
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: <-- >
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: send
command status: 1
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: -->
0011000881323770200000A70CC8329BFD06DDDF72365904
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: --> ^Z
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: <-- >
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: <-- ERROR
2007-01-31 10:19:21 [32565] [6] ERROR: AT2[/var/dme/dev/smsmodem]: Error
occurs: ERROR (error number not known to us. ask google and add it.)
2007-01-31 10:19:21 [32565] [6] DEBUG: AT2[/var/dme/dev/smsmodem]: send
command status: -1
2007-01-31 10:19:31 [32565] [3] DEBUG: HTTP: Resetting HTTPClient for
`192.168.0.130'.
2007-01-31 10:24:37 [32565] [1] DEBUG: HTTP: Destroying HTTPClient area
0x81d48d0.
2007-01-31 10:24:37 [32565] [1] DEBUG: HTTP: Destroying HTTPClient for
`192.168.0.130'.
smsbox.log er tom
Nogen der kan hjælpe?
/Kasper