SMS-Command is also submitted with sc address

This commit is contained in:
Denis Kenzior 2009-06-04 16:17:29 -05:00
parent 973b33f47e
commit f09683fc89
1 changed files with 2 additions and 1 deletions

View File

@ -1221,7 +1221,8 @@ gboolean encode_sms(const struct sms *in, int *len, int *tpdu_len,
int offset = 0;
int tpdu_start;
if (in->type == SMS_TYPE_DELIVER || in->type == SMS_TYPE_SUBMIT)
if (in->type == SMS_TYPE_DELIVER || in->type == SMS_TYPE_SUBMIT ||
in->type == SMS_TYPE_COMMAND)
if (!encode_address(&in->sc_addr, TRUE, pdu, &offset))
return FALSE;