<?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>Alex's Adventures in CodeSpace &#187; patch</title>
	<atom:link href="http://www.blogalex.com/archives/tag/patch/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blogalex.com</link>
	<description>Alejandro Guerrieri's Blog</description>
	<lastBuildDate>Wed, 10 Feb 2010 23:16:02 +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>Dlr counters on the status page</title>
		<link>http://www.blogalex.com/archives/222</link>
		<comments>http://www.blogalex.com/archives/222#comments</comments>
		<pubDate>Fri, 06 Nov 2009 14:37:24 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Kannel]]></category>
		<category><![CDATA[dlr]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[reporting]]></category>
		<category><![CDATA[status]]></category>

		<guid isPermaLink="false">http://www.blogalex.com/?p=222</guid>
		<description><![CDATA[This patch adds separate dlr counters on the status page.]]></description>
			<content:encoded><![CDATA[<p>This patch adds separate <em>dlr</em> counters on the status page.</p>
<p>If you use <em>dlrs</em> (Delivery Receipts) with Kannel, you&#8217;ve noticed that they&#8217;re counted along with MO traffic as incoming messages.</p>
<p>This leads to misunderstandings on how much incoming traffic you&#8217;re <em>really</em> sustaining: For example on <em>SMPP</em>, if you request <em>dlrs</em>, depending on the carrier having it enabled or not, you&#8217;ll get one or two more &#8220;incoming&#8221; messages counted (<em>dlrs</em> are very similar to <em>mo</em> messages in structure).</p>
<p>After applying this patch, the status page will display incoming and <em>dlr</em> traffic on separate counter, either for the total amouns as in each and every defined smsc connection. It will also display separate load indicators, so you&#8217;ll know at all times if your inbound traffic is actually traffic or just old/delayed <em>dlrs</em>.</p>
<p>Here&#8217;s the patch:</p>
<p><a href="http://www.blogalex.com/wp-content/uploads/2009/11/kannel-dlr-status.patch">kannel-dlr-status</a></p>
<p>As usual, please try it and let me know what you think.</p>
<p>Alex</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogalex.com/archives/222/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>PAM Authentication for Kannel</title>
		<link>http://www.blogalex.com/archives/206</link>
		<comments>http://www.blogalex.com/archives/206#comments</comments>
		<pubDate>Thu, 11 Jun 2009 09:56:48 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Kannel]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[pam]]></category>
		<category><![CDATA[patch]]></category>

		<guid isPermaLink="false">http://www.blogalex.com/?p=206</guid>
		<description><![CDATA[Though kannel already has some pam functionality included, it&#8217;s far from optimal imho. As it is now, to use pam authentication you have to: 1. Configure with &#8211;enable-pam and compile. 2. Create an smsbox-user called &#8220;pam&#8221; with a dummy password. 3. Create a pam configuration file called &#8220;kannel&#8221; on /etc/pam.d/, with your pam settings. 4. [...]]]></description>
			<content:encoded><![CDATA[<p>Though <strong>kannel</strong> already has some <em>pam</em> functionality included, it&#8217;s far from optimal imho.</p>
<p>As it is now, to use <em>pam</em> authentication you have to:</p>
<p>1. Configure with <em>&#8211;enable-pam</em> and compile.<br />
2. Create an smsbox-user called &#8220;pam&#8221; with a dummy password.<br />
3. Create a <em>pam</em> configuration file called &#8220;kannel&#8221; on <em>/etc/pam.d/</em>, with your <em>pam</em> settings.<br />
4. <strong>Kannel</strong> will then use only <em>pam</em> for authentication, so you could use <em>LDAP</em>, <em>Radius</em> or whatever supported authentication modules you have configured on the box.</p>
<p>However:</p>
<p>* Other s<em>msbox-user</em>&#8216;s are disabled, only the &#8220;pam&#8221; user is allowed to authenticate.<br />
* All users would get logged as &#8220;pam&#8221;, so you cannot make settings per users of any kind.<br />
* Only one <em>pam</em> group is allowed.</p>
<p>After applying the patch, pam authentication gets managed with a special group <em>sendsms-pam-user</em>, which shares most of s<em>endsms-user</em> parameters, except for <em>username</em> and <em>password</em>, and adds the <em>acl</em> parameter instead.</p>
<blockquote><p>group         = sendsms-pam-user<br />
acl           = kannel<br />
&lt;other sendsms-user parameters&gt;</p></blockquote>
<p>* You can define as many groups as needed, pointing to different <em>pam</em> configuration files.<br />
* The <em>acl</em> parameter points to the pam module on <em>/etc/pam.d/</em> (&#8220;kannel&#8221; in this case, but could be anything you want).<br />
* Pam authentication is only attempted after trying the regular <em>sendsms-user</em> way, so you can have local users and <em>pam</em> users at the same time (local taking precedence).<br />
* Each <em>sendsms-pam-user</em> group will be logged separately, and you&#8217;ll also get info about the <em>pam</em> user making the call.</p>
<p>To use the patch:</p>
<p>1. Download the patch <a href="http://www.blogalex.com/wp-content/uploads/2009/06/kannel-pam.patch">here</a> and apply it.<br />
2. Run ./bootstrap.sh<br />
3. Run ./configure &#8211;enable-pam<br />
4. make and make install as usual.</p>
<p>As usual, please try it and let me know what you think.</p>
<p>-Alex</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogalex.com/archives/206/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Custom MO parameters on generic http-smsc</title>
		<link>http://www.blogalex.com/archives/171</link>
		<comments>http://www.blogalex.com/archives/171#comments</comments>
		<pubDate>Thu, 28 May 2009 20:57:12 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Kannel]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[parameters]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[smsc]]></category>

		<guid isPermaLink="false">http://www.blogalex.com/?p=171</guid>
		<description><![CDATA[This patch allows you to change the parameter names used when receiving incoming messages (MO&#8217;s) using the generic http-smsc. To use it, you need to add a few extra entries for the parameters you want to be redefined. The format is: generic-param-&#60;original-name&#62; = &#60;new-name&#62; For example, to redefine from, to, smsc and text: generic-param-from = [...]]]></description>
			<content:encoded><![CDATA[<p>This patch allows you to change the parameter names used when receiving incoming messages (MO&#8217;s) using the generic http-smsc.</p>
<p>To use it, you need to add a few extra entries for the parameters you want to be redefined. The format is: <em>generic-param-&lt;original-name&gt; = &lt;new-name&gt;</em></p>
<p>For example, to redefine <em>from</em>, <em>to</em>, <em>smsc</em> and <em>text</em>:</p>
<blockquote><p>generic-param-from = &#8220;phoneNumber&#8221;<br />
generic-param-to = &#8220;shortCode&#8221;<br />
generic-param-text = &#8220;message&#8221;<br />
generic-param-smsc = &#8220;carrier&#8221;</p></blockquote>
<p>That&#8217;s it, you&#8217;ll be able to use an url like this then:</p>
<p><em>http://myhost:myport/sms?phoneNumber=234567890&amp;shortCode=1234&amp;message=Hello+World&amp;carrier=mycarrier</em></p>
<p>Download the patch from <a href="http://www.blogalex.com/wp-content/uploads/2009/05/kannel-generic-mo.patch">here</a>.</p>
<p>As usual, try it and let me know.</p>
<p>-Alex</p>
]]></content:encoded>
			<wfw:commentRss>http://www.blogalex.com/archives/171/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
