<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ashish's Tech Blog &#187; Long SMS</title>
	<atom:link href="http://www.ashishpaliwal.com/blog/tag/long-sms/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ashishpaliwal.com/blog</link>
	<description>From Programmer, For Programmers</description>
	<lastBuildDate>Tue, 17 Aug 2010 12:04:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>[SMPP] Sending long SMS through SMPP</title>
		<link>http://www.ashishpaliwal.com/blog/2009/01/smpp-sending-long-sms-through-smpp/</link>
		<comments>http://www.ashishpaliwal.com/blog/2009/01/smpp-sending-long-sms-through-smpp/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 08:40:12 +0000</pubDate>
		<dc:creator>ashish</dc:creator>
				<category><![CDATA[SMPP]]></category>
		<category><![CDATA[Long SMS]]></category>

		<guid isPermaLink="false">http://www.ashishpaliwal.com/blog/?p=243</guid>
		<description><![CDATA[SMS is designed to send small text messages upto 140 chars. It actually depends upon the encoding. Using 7 bit encoding, you can send 160 chars, using Unicode, you can only send 70 chars. The data is carried in User Data section. This post talks about ways of sending Long message using SMPP Using SMPP [...]]]></description>
			<content:encoded><![CDATA[<p>SMS is designed to send small text messages upto 140 chars. It actually depends upon the encoding. Using 7 bit encoding, you can send 160 chars, using Unicode, you can only send 70 chars. The data is carried in User Data section.</p>
<p>This post talks about ways of sending Long message using SMPP</p>
<p>Using SMPP we can send long SMS by two means</p>
<p><strong>Using Payload option</strong></p>
<p>Submit SM PDU has a field called message_payload. Set the data in it and you can send upto 64K octets. But this option is not supported by a lot of provider. Verify with your provider, if they support the same.</p>
<p><strong>Using Message fragementation</strong></p>
<p>This format is more common and widely supported. Essentially, the long SMS is divided into smaller messages and send with a particular format, by setting UDH.</p>
<p>The key TLV options used are</p>
<p><em><strong>sar_msg_ref_num</strong></em> - The reference number for a particular concatenated short message</p>
<p><em><strong>sar_total_segments</strong></em> - Indicates the total number of short messages within the concatenated short message</p>
<p><strong><em>sar_segment_seqnum</em></strong> - Indicates the sequence number of a particular short message fragment within the concatenated short message</p>
<p>How do you set these, depends upon the SMPP library you use. Will brief the algo</p>
<p> </p>
<ul>
<li>Break the long sms into parts, so that fragement can fit into single Submit SM PDU</li>
<li>The total number of fragements shall give the value of <strong><em>sar_total_segments</em></strong></li>
<li>Generate a unique identifier value, this becomes the values of <strong><em>sar_msg_ref_num</em></strong></li>
<li>Now in a loop send the message fragements, with values in step above. <strong><em>sar_segment_seqnum</em></strong> values shall be the value of the loop count (ensure that it starts from 1)</li>
</ul>
<p>This is it <img src='http://www.ashishpaliwal.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ashishpaliwal.com/blog/2009/01/smpp-sending-long-sms-through-smpp/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>
