Hi,

 Our Kannel setup is often hosed at the AT/modem communication level
 after long periods of activity.  In this case, Kannel might loose
 messages and will log FAILED messages in its log.

 I ended up writing a script to re-send the failed messages, using the
 data from the Kannel access log files.  Simply copy-paste a FAILED line
 from your bearerbox access log to the script, and it will output the
 command you should run (or the URL you should paste) to resend the SM.

     1/ run ./resend-sm.sh
     2/ copy-paste a FAILED line (be sure it's all on one line), eg:
2006-02-14 12:48:55 FAILED Send SMS [SMSC:smsc-0] [SVC:mbuni] [ACT:] [BINF:] 
[from:0XXXXX] [to:00XXXX] [flags:-1:1:-1:-1:-1] [msg:165:XXXXX] 
[udh:7:0605040B8423F0]
     3/ the script outputs the command you should run:
GET 
"http://kannel.example.com:13013/cgi-bin/sendsms?username=sendsms-user&password=sendsms-password&text=%XX%XX%XX&to=XXXXX&udh=%06%05%04%0B%84%23%F0";

 (GET is in libwww-perl, but you can also paste the URL in your web
 browser.)

   Cheers,
-- 
Loïc Minier <[EMAIL PROTECTED]>
Current Earth status:   NOT DESTROYED

Attachment: resend-sm.sh
Description: Bourne shell script

_______________________________________________
Users mailing list
[email protected]
http://mbuni.org/mailman/listinfo/users_mbuni.org

Reply via email to