Subversion Repositories SmartDukaan

Rev

Rev 19258 | Rev 22758 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 19258 Rev 19753
Line 168... Line 168...
168
                    logging.debug('Delivery Report Response:- '+str(del_response_str))
168
                    logging.debug('Delivery Report Response:- '+str(del_response_str))
169
                    
169
                    
170
                    del_response_vals = del_response_str.split(' ')
170
                    del_response_vals = del_response_str.split(' ')
171
                    
171
                    
172
                    status = ''
172
                    status = ''
173
                    if len(del_response_vals) == 8 and del_response_vals[7][:-2] == '0':
173
                    if len(del_response_vals) == 8 and del_response_vals[7][:-2] == '000':
174
                        status = 'SMS_DELIVRD'
174
                        status = 'SMS_DELIVRD'
175
                    elif "Submitted to SMSC" in del_response_str:
175
                    elif "Submitted to SMSC" in del_response_str:
176
                        status = 'SMS_INPROCESS'
176
                        status = 'SMS_INPROCESS'
177
                    else:
177
                    else:
178
                        status = 'SMS_FAILED'
178
                        status = 'SMS_FAILED'