<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	>
<channel>
	<title>Comments on: Email notifications for missed calls in Asterisk</title>
	<atom:link href="http://www.theschmandts.org/blog/2007/05/05/email-notifications-for-missed-calls-in-asterisk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theschmandts.org/blog/?p=28</link>
	<description>Gentoo Linux - Asterisk</description>
	<pubDate>Thu, 09 Sep 2010 15:20:38 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Tenner</title>
		<link>http://www.theschmandts.org/blog/?p=28&#038;cpage=1#comment-280</link>
		<dc:creator>Tenner</dc:creator>
		<pubDate>Thu, 02 Jul 2009 01:19:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.theschmandts.org/blog/2007/05/05/email-notifications-for-missed-calls-in-asterisk/#comment-280</guid>
		<description>Thanks for your help, sorry for not responding sooner. I'm still new to asterisk and Linux and currently using FreePBX which doesn't seem to like ti when you edit too many files. :-) But thank-you for your prompt reply !!</description>
		<content:encoded><![CDATA[<p>Thanks for your help, sorry for not responding sooner. I&#8217;m still new to asterisk and Linux and currently using FreePBX which doesn&#8217;t seem to like ti when you edit too many files. <img src='http://www.theschmandts.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> But thank-you for your prompt reply !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Schmandt</title>
		<link>http://www.theschmandts.org/blog/?p=28&#038;cpage=1#comment-259</link>
		<dc:creator>Matt Schmandt</dc:creator>
		<pubDate>Sun, 21 Jun 2009 03:35:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.theschmandts.org/blog/2007/05/05/email-notifications-for-missed-calls-in-asterisk/#comment-259</guid>
		<description>It is included in the source of Asterisk as a sample.  It can be found in the asterisk source code directory under configs/extensions.conf.sample.

Here is the code copied from from Asterisk 1.4.25.1

[macro-stdexten];
;
; Standard extension macro:
;   ${ARG1} - Extension  (we could have used ${MACRO_EXTEN} here as well
;   ${ARG2} - Device(s) to ring
;
exten =&gt; s,1,Dial(${ARG2},20)			; Ring the interface, 20 seconds maximum
exten =&gt; s,2,Goto(s-${DIALSTATUS},1)		; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)

exten =&gt; s-NOANSWER,1,Voicemail(${ARG1},u)	; If unavailable, send to voicemail w/ unavail announce
exten =&gt; s-NOANSWER,2,Goto(default,s,1)		; If they press #, return to start

exten =&gt; s-BUSY,1,Voicemail(${ARG1},b)		; If busy, send to voicemail w/ busy announce
exten =&gt; s-BUSY,2,Goto(default,s,1)		; If they press #, return to start

exten =&gt; _s-.,1,Goto(s-NOANSWER,1)		; Treat anything else as no answer

exten =&gt; a,1,VoicemailMain(${ARG1})		; If they press *, send the user into VoicemailMain</description>
		<content:encoded><![CDATA[<p>It is included in the source of Asterisk as a sample.  It can be found in the asterisk source code directory under configs/extensions.conf.sample.</p>
<p>Here is the code copied from from Asterisk 1.4.25.1</p>
<p>[macro-stdexten];<br />
;<br />
; Standard extension macro:<br />
;   ${ARG1} - Extension  (we could have used ${MACRO_EXTEN} here as well<br />
;   ${ARG2} - Device(s) to ring<br />
;<br />
exten => s,1,Dial(${ARG2},20)			; Ring the interface, 20 seconds maximum<br />
exten => s,2,Goto(s-${DIALSTATUS},1)		; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)</p>
<p>exten => s-NOANSWER,1,Voicemail(${ARG1},u)	; If unavailable, send to voicemail w/ unavail announce<br />
exten => s-NOANSWER,2,Goto(default,s,1)		; If they press #, return to start</p>
<p>exten => s-BUSY,1,Voicemail(${ARG1},b)		; If busy, send to voicemail w/ busy announce<br />
exten => s-BUSY,2,Goto(default,s,1)		; If they press #, return to start</p>
<p>exten => _s-.,1,Goto(s-NOANSWER,1)		; Treat anything else as no answer</p>
<p>exten => a,1,VoicemailMain(${ARG1})		; If they press *, send the user into VoicemailMain</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tenner</title>
		<link>http://www.theschmandts.org/blog/?p=28&#038;cpage=1#comment-258</link>
		<dc:creator>Tenner</dc:creator>
		<pubDate>Sun, 21 Jun 2009 03:08:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.theschmandts.org/blog/2007/05/05/email-notifications-for-missed-calls-in-asterisk/#comment-258</guid>
		<description>I cannot find the stdexten macro, would someone be kind enough to point me in the direction of its location ?</description>
		<content:encoded><![CDATA[<p>I cannot find the stdexten macro, would someone be kind enough to point me in the direction of its location ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sergiopichardo</title>
		<link>http://www.theschmandts.org/blog/?p=28&#038;cpage=1#comment-220</link>
		<dc:creator>sergiopichardo</dc:creator>
		<pubDate>Wed, 11 Feb 2009 22:05:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.theschmandts.org/blog/2007/05/05/email-notifications-for-missed-calls-in-asterisk/#comment-220</guid>
		<description>i have same problem... can you tell us what command you use to convert the file.... regards, 

SP</description>
		<content:encoded><![CDATA[<p>i have same problem&#8230; can you tell us what command you use to convert the file&#8230;. regards, </p>
<p>SP</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: doughoman</title>
		<link>http://www.theschmandts.org/blog/?p=28&#038;cpage=1#comment-202</link>
		<dc:creator>doughoman</dc:creator>
		<pubDate>Wed, 31 Dec 2008 08:48:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.theschmandts.org/blog/2007/05/05/email-notifications-for-missed-calls-in-asterisk/#comment-202</guid>
		<description>jernej -
I had same problem and traced it to my ending line characters being CRLF from pasting the shell script into Notepad.  Just had to convert to UNIX LF only and it worked.</description>
		<content:encoded><![CDATA[<p>jernej -<br />
I had same problem and traced it to my ending line characters being CRLF from pasting the shell script into Notepad.  Just had to convert to UNIX LF only and it worked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jernej</title>
		<link>http://www.theschmandts.org/blog/?p=28&#038;cpage=1#comment-190</link>
		<dc:creator>jernej</dc:creator>
		<pubDate>Mon, 01 Dec 2008 13:45:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.theschmandts.org/blog/2007/05/05/email-notifications-for-missed-calls-in-asterisk/#comment-190</guid>
		<description>Hi Matt!
Your script looks promising, exactly what I need, but I can't get it to work :(. I tried even giving the 777 permission on the file processCallEmail.sh, but I always get an error. Any clues?
Thank you!

Jernej

-- Executing [h@macro-stdexten:1] System("SIP/100-08f5e6d8", "processCallEmail.sh "mymail@mydomain.com" "100" "Jernej P" "NOANSWER" "FAILED"") in new stack
[Dec  1 14:29:19] WARNING[8162]: app_system.c:107 system_exec_helper: Unable to execute 'processCallEmail.sh "mymail@mydomain.com" "100" "Jernej P" "NOANSWER" "FAILED"'
  == Spawn extension (macro-stdexten, h, 1) exited non-zero on 'SIP/100-08f5e6d8'</description>
		<content:encoded><![CDATA[<p>Hi Matt!<br />
Your script looks promising, exactly what I need, but I can&#8217;t get it to work :(. I tried even giving the 777 permission on the file processCallEmail.sh, but I always get an error. Any clues?<br />
Thank you!</p>
<p>Jernej</p>
<p>&#8211; Executing [h@macro-stdexten:1] System(&#8221;SIP/100-08f5e6d8&#8243;, &#8220;processCallEmail.sh &#8220;mymail@mydomain.com&#8221; &#8220;100&#8243; &#8220;Jernej P&#8221; &#8220;NOANSWER&#8221; &#8220;FAILED&#8221;") in new stack<br />
[Dec  1 14:29:19] WARNING[8162]: app_system.c:107 system_exec_helper: Unable to execute &#8216;processCallEmail.sh &#8220;mymail@mydomain.com&#8221; &#8220;100&#8243; &#8220;Jernej P&#8221; &#8220;NOANSWER&#8221; &#8220;FAILED&#8221;&#8216;<br />
  == Spawn extension (macro-stdexten, h, 1) exited non-zero on &#8216;SIP/100-08f5e6d8&#8242;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: christendoc</title>
		<link>http://www.theschmandts.org/blog/?p=28&#038;cpage=1#comment-171</link>
		<dc:creator>christendoc</dc:creator>
		<pubDate>Tue, 27 May 2008 07:15:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.theschmandts.org/blog/2007/05/05/email-notifications-for-missed-calls-in-asterisk/#comment-171</guid>
		<description>[LATER] Oh, and one other bit: I had to pull the backticks off this line:
`echo $BODY &#124; $MAILCMD $SUBJECT $EMAIL`

It's the payload line at the end of the script. If I'm just stupid and there's a reason for them, let me know.

Thanks again.</description>
		<content:encoded><![CDATA[<p>[LATER] Oh, and one other bit: I had to pull the backticks off this line:<br />
`echo $BODY | $MAILCMD $SUBJECT $EMAIL`</p>
<p>It&#8217;s the payload line at the end of the script. If I&#8217;m just stupid and there&#8217;s a reason for them, let me know.</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: christendoc</title>
		<link>http://www.theschmandts.org/blog/?p=28&#038;cpage=1#comment-170</link>
		<dc:creator>christendoc</dc:creator>
		<pubDate>Tue, 27 May 2008 04:59:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.theschmandts.org/blog/2007/05/05/email-notifications-for-missed-calls-in-asterisk/#comment-170</guid>
		<description>Howdy,

Can't thank you enough for this little gem. Just started in on telephony (for fun and to feed the inner control freak, not professional). I kept looking at SIP providers to give email notification of missed calls, and no one did. So, I changed focus and sought a really lightweight PBX system (initially avoiding Asterisk) that had the feature. Alas :) this post of yours was about the only promising hit, so I spent a few days learning enough Asterisk to figure out where to plug your script in. It was a fun learn. I really fell for Asterisk in the process, and still think your script is just elegant and impressive -- surpising the Digium team left this out.

Thanks again, friend.</description>
		<content:encoded><![CDATA[<p>Howdy,</p>
<p>Can&#8217;t thank you enough for this little gem. Just started in on telephony (for fun and to feed the inner control freak, not professional). I kept looking at SIP providers to give email notification of missed calls, and no one did. So, I changed focus and sought a really lightweight PBX system (initially avoiding Asterisk) that had the feature. Alas <img src='http://www.theschmandts.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> this post of yours was about the only promising hit, so I spent a few days learning enough Asterisk to figure out where to plug your script in. It was a fun learn. I really fell for Asterisk in the process, and still think your script is just elegant and impressive &#8212; surpising the Digium team left this out.</p>
<p>Thanks again, friend.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
