<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE>@font-face {
        font-family: MS Mincho;
}
@font-face {
        font-family: Tahoma;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @MS Mincho;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 70.85pt 70.85pt 2.0cm 70.85pt; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailFormatvorlage17 {
        FONT-WEIGHT: normal; COLOR: blue; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none
}
DIV.Section1 {
        page: Section1
}
</STYLE>
</HEAD>
<BODY lang=DE vLink=purple link=blue bgColor=white>
<DIV><FONT face=Arial size=2>Well, that definately got me going in the correct
direction, I was able to hack chan_sip.c to activate the MWI button for my
installation. It was really quite simple to implement statically...
perhaps I'll work on hacking it into the config file and making a more formal
patch for chan_sip.c. But for anyone that needs it, here is my static
hack. Just change the 777 to whatever your voicemail extension is and
patch chan_sip.c</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Paul</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- ***
chan_sip.c Sun Feb 8 10:35:46 2004<BR>---
chan_sip.c.new Sun Feb 8 10:33:35
2004<BR>***************<BR>*** 3087,3092 ****<BR>--- 3087,3093
----<BR> struct sip_request
req;<BR> char
tmp[256];<BR> char
tmp2[256];<BR>+ char
tmp3[256];<BR> char
clen[20];<BR> initreqprep(&req,
p, "NOTIFY", NULL);<BR>
add_header(&req, "Event", "message-summary");<BR>***************<BR>***
3094,3102 ****</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV style="FONT: 10pt arial">
snprintf(tmp, sizeof(tmp), "Messages-Waiting: %s\n", newmsgs ? "yes" :
"no");<BR> snprintf(tmp2,
sizeof(tmp2), "Voicemail: %d/%d\n", newmsgs,
oldmsgs);<BR>! snprintf(clen,
sizeof(clen), "%d", strlen(tmp) +
strlen(tmp2));<BR>
add_header(&req, "Content-Length",
clen);<BR> add_line(&req,
tmp);<BR> add_line(&req,
tmp2);</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV style="FONT: 10pt arial"> if
(!p->initreq.headers) {<BR>--- 3095,3105 ----</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV style="FONT: 10pt arial">
snprintf(tmp, sizeof(tmp), "Messages-Waiting: %s\n", newmsgs ? "yes" :
"no");<BR> snprintf(tmp2,
sizeof(tmp2), "Voicemail: %d/%d\n", newmsgs,
oldmsgs);<BR>! snprintf(tmp3,
sizeof(tmp3), "Message-Account:
777\n");<BR>! snprintf(clen, sizeof(clen),
"%d", strlen(tmp) + strlen(tmp2) +
strlen(tmp3));<BR>
add_header(&req, "Content-Length",
clen);<BR> add_line(&req,
tmp);<BR>+ add_line(&req,
tmp3);<BR> add_line(&req,
tmp2);</DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV style="FONT: 10pt arial"> if
(!p->initreq.headers) {<BR></DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=stredicke@snom.de href="mailto:stredicke@snom.de">Christian
Stredicke</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=asterisk-users@lists.digium.com
href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, February 08, 2004 1:58
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Asterisk-Users] Snom 200
MWI Button</DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Verdana color=blue size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Verdana">Please take a look
at <A
href="http://www.ietf.org/internet-drafts/draft-ietf-sipping-mwi-04.txt">http://www.ietf.org/internet-drafts/draft-ietf-sipping-mwi-04.txt</A>.
The snom phone tries to use the Message-Account line, if it’s present;
otherwise it will take the From header: </SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=blue size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Verdana"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Verdana color=blue size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Verdana">Messages-Waiting:
yes</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=blue size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Verdana">Message-Account:
sip:alice@vmail.example.com</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=blue size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Verdana">Voice-Message: 2/8
(0/2)</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=blue size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Verdana"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Verdana color=blue size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Verdana">Hope this
helps,</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=blue size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Verdana"></SPAN></FONT> </P>
<P class=MsoNormal><FONT face=Verdana color=blue size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Verdana">Christian
</SPAN></FONT></P>
<P class=MsoNormal><FONT face=Verdana color=blue size=2><SPAN lang=EN-GB
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Verdana"></SPAN></FONT> </P>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: medium none; PADDING-LEFT: 4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: blue 1.5pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: medium none">
<P class=MsoNormal><FONT face=Tahoma size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original
Message-----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B>
asterisk-users-admin@lists.digium.com
[mailto:asterisk-users-admin@lists.digium.com] <B><SPAN
style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Paul Oster<BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> Sunday, February 08, 2004 2:22
AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B>
asterisk-users@lists.digium.com<BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> [Asterisk-Users] Snom 200 MWI
Button</SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I'm trying to get the MWI button
to work with my Asterisk configuration. The snom is accepting and
responding to the Message indications from *, but when I press the MWI button,
it is dialing my extension (the one with the voice mail on
it).</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I'm wondering if there is a way to
specify what extension to dial to check email in the configuration, either the
phone, or * itself.</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Asterisk Version 1/30/2003 checked
out and compiled this evening</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Snom Version 2.03o (most recent
auto-update)</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Any help would be greatly
appreciated. At one point Mark had talked about adding a voicemail=XXXX
directive in sip.conf on the mailing list at one point, however grepping the
code doesn't reveal a feature like that at this time.</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Anyone have success in getting the
MWI button to work on Snoms? If so I would LOVE to hear from
you.</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV>
<DIV>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Paul M.
Oster</SPAN></FONT></P></DIV>
<DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"></SPAN></FONT> </P></DIV></DIV></DIV></BLOCKQUOTE></BODY></HTML>