<?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&#039;s Adventures in CodeSpace &#187; meta-data</title>
	<atom:link href="http://www.blogalex.com/archives/tag/meta-data/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blogalex.com</link>
	<description>Alex Guerrieri&#039;s Blog</description>
	<lastBuildDate>Wed, 22 Jun 2011 15:56:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Using individual meta-data fields on urls</title>
		<link>http://www.blogalex.com/archives/182</link>
		<comments>http://www.blogalex.com/archives/182#comments</comments>
		<pubDate>Fri, 29 May 2009 19:34:19 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Kannel]]></category>
		<category><![CDATA[meta-data]]></category>
		<category><![CDATA[patches]]></category>
		<category><![CDATA[url translation]]></category>

		<guid isPermaLink="false">http://www.blogalex.com/?p=182</guid>
		<description><![CDATA[With the addition of meta-data functionality in Kannel, now it&#8217;s possible to pass meta-data between different smsc&#8217;s and services. When defining services or urls to send messages, the new %D parameter gets replaced with the complete meta-data information available. However, there wasn&#8217;t any way to use only part of that data when posting to url&#8217;s. [...]]]></description>
			<content:encoded><![CDATA[<div style="margin:5px 0px 5px 0px" id="linksalpha_tag_1006671909" class="linksalpha-email-button" data-url="http://www.blogalex.com/archives/182" data-text="Using individual meta-data fields on urls" data-desc="With the addition of meta-data functionality in Kannel, now it's possible to pass meta-data between different smsc's and services.

When defining services or urls to send messages, the new %D parameter gets replaced with the complete meta-data information available.

However, there wasn't any way to use only part of that data when posting to url's. This is why I've created this patch that allows you to use individual meta-data fields in your urls.

USAGE

To use it, a new set of paramete" data-site="Alex&#039;s Adventures in CodeSpace"></div><script type="text/javascript" src="http://www.linksalpha.com/social/loader?script_type=buttons_counters&tag_id=linksalpha_tag_1006671909&link=http%3A%2F%2Fwww.blogalex.com%2Farchives%2F182&gplus=1&twitter=1&fblike=1&linkedin=1&gbuzz=0&tumblr=0&reddit=0&pinterest=0&digg=0&stumbleupon=0&gpluslang=en-US&twitterlang=en&fblikelang=en_US&gbuzzlang=en&fblikeverb=like&fblikefont=arial&fblikeref=linksalpha&gplusctr=1&twitterctr=1&linkedinctr=1&gbuzzctr=1&redditctr=1&pinterestctr=1&diggctr=1&stumbleuponctr=1&twittermention=&twitterrelated1=&twitterrelated2=&halign=center"></script><p>With the addition of <em>meta-data</em> functionality in <strong>Kannel</strong>, now it&#8217;s possible to pass <em>meta-data</em> between different smsc&#8217;s and services.</p>
<p>When defining services or urls to send messages, the new <em>%D</em> parameter gets replaced with the complete <em>meta-data</em> information available.</p>
<p>However, there wasn&#8217;t any way to use only part of that data when posting to url&#8217;s. This is why I&#8217;ve created this patch that allows you to use individual meta-data fields in your urls.</p>
<p><span style="text-decoration: underline;"><strong>USAGE</strong></span></p>
<p>To use it, a new set of parameters is defined, with the following format:</p>
<blockquote><p>%#group#parameter#</p></blockquote>
<p>Where <em>group</em> is the <em>meta-data group</em> (for example: <em>smpp</em>, <em>http</em> or <em>foo</em>) and parameter is the individual <em>meta-data parameter</em> you want to replace.</p>
<p>For example, let&#8217;s suppose we&#8217;re using a generic http-smsc, and we want to pass a couple of extra parameters for a dynamic username and password (some aggregators do that). Right now, that would require patching the source code and inventing some method to pass the extra parameters from the sendsms interface.</p>
<p>With the patch applied, this would be as simple as this:</p>
<blockquote><p>1. Pass the meta-data parameter on the sendsms request (urlencoded):</p>
<p><em>?http?user=Alex&amp;pass=bar</em></p>
<p>2. Define the send-url parameter on your http-smsc to pass those parameters:</p>
<p><em>send-url = http://myhost/sms?&#8230;.&amp;username=%#http#user#&amp;password=#http#pass#</em></p></blockquote>
<p>Note: I&#8217;m defining the <em>http</em> group here, but it could be anything, even the <em>smpp</em> group coming from an smpp bind, in which case the syntax would be #smpp#username# instead.</p>
<p>Download the patch from <a href="http://www.blogalex.com/wp-content/uploads/2009/05/kannel-meta-data-urltrans.patch">here</a>.</p>
<p>Please try it and let me know if it works for you.</p>
<div style="margin:0px 0px 0px 0px" id="linksalpha_tag_320466457" class="linksalpha-email-button" data-url="http://www.blogalex.com/archives/182" data-text="Using individual meta-data fields on urls" data-desc="With the addition of meta-data functionality in Kannel, now it's possible to pass meta-data between different smsc's and services.

When defining services or urls to send messages, the new %D parameter gets replaced with the complete meta-data information available.

However, there wasn't any way to use only part of that data when posting to url's. This is why I've created this patch that allows you to use individual meta-data fields in your urls.

USAGE

To use it, a new set of paramete" data-site="Alex&#039;s Adventures in CodeSpace"></div><script type="text/javascript" src="http://www.linksalpha.com/social/loader?script_type=buttons_counters&tag_id=linksalpha_tag_320466457&link=http%3A%2F%2Fwww.blogalex.com%2Farchives%2F182&gplus=1&twitter=1&fbsend=1&linkedin=1&gbuzz=0&tumblr=0&reddit=0&pinterest=1&digg=0&stumbleupon=1&gpluslang=en-US&twitterlang=en&fbsendlang=en_US&gbuzzlang=en&twittermention=&twitterrelated1=&twitterrelated2=&halign=center"></script>]]></content:encoded>
			<wfw:commentRss>http://www.blogalex.com/archives/182/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

