[Home]

Summary:ASTERISK-08119: Outgoing SMS: EMS support broken / UDH-bit not set
Reporter:Anselm Martin Hoffmeister (hoffmeis)Labels:
Date Opened:2006-11-12 16:42:38.000-0600Date Closed:2006-11-13 11:10:55.000-0600
Priority:TrivialRegression?No
Status:Closed/CompleteComponents:Applications/app_sms
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) asterisk-sms.patch
Description:On sending a SMS with a UDH (user data header) defined, the appropriate
UDH flag in the SMS first byte will NOT be set currently.
Ref: http://www.dreamfabric.com/sms/deliver_fo.html


****** ADDITIONAL INFORMATION ******

Affects:
========
SMS containing USER DATA HEADERS (e.g. "EMS" with a bitmap, ringtone,
text formattings or similar embedded to the message)

Tests:
======
With this additional flag set, it is possible to send EMS with an
embedded picture. Note: replace 12345 with the caller-id to be
displayed, "0193010" with the number of a SMS service center known to
the phone (trailing "1" seems to be necessary) and SIP/sip503 to a
channel where the phone can be reached (mine is a Siemens Gigaset S100
on a ISDN line off a Fritz!Box 7050 as SIP-Client to my asterisk box).

smsq --mt --oa=12345 --mttx-callerid=01930101 --mttx-channel=SIP/sip503
--udh=112100800000000D000F800FC00FE01FF03FF83FF83FC838C838F838F838F800000001 "This is the regular text"

This command will display the text and offer to "install" the supplied
bitmap (which shows a small house, from
http://hjem.get2net.dk/grob/EMS/EMS_samples.html#no3 ) to the phone.

Similar will not work with unpatched app_sms.c, instead a load of
"garbage" will displayed as SMS text, trailed by "This is the regular
text" (obviously because the phone has no idea that the beginning of the
SMS contains header data)
Comments:By: Joshua C. Colp (jcolp) 2006-11-13 11:10:55.000-0600

Fixed in 1.2 as of revision 47549, 1.4 as of revision 47551, and trunk as of revision 47552. Thanks!