Minor fixes - smpp code

"Kita B. Ndara" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
In addition to Ben Lee's throttling code, I'd just
noticed that there are two small fixes required to the
kannel snapshot (at least mine, but I bet they are in
the current one too):

1. In smsc_smpp.c, about line 530, there is a 

 error("SMPP: SMSC returned error code 0x08lu " ...
 
 that 0x08lu should really be 0x08lx of course.

2. In function
smpp_status_to_smscconn_failure_reason()
  It seems wise to add ESME_RTHROTTLED = 0x00000058 to
the enum and to check for it in the if statement and
return SMSCONN_FAILED_TEMPORARILY. (May be there are
others too here.) This of course causes delivery to be
retried, which is what we want.
 
 I think these changes should be made. 

 Cheers.

B.



__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.