<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1593" name=GENERATOR>
<STYLE>@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman","serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0in; MARGIN-RIGHT: 0in; FONT-FAMILY: "Times New Roman","serif"; mso-style-priority: 99; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.gmailquote {
        mso-style-name: gmail_quote
}
SPAN.q {
        mso-style-name: q
}
SPAN.e {
        mso-style-name: e
}
SPAN.EmailStyle21 {
        COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-reply
}
.MsoChpDefault {
        mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=625041722-23052007>We use
this macro, which works quite well:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=625041722-23052007></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>[macro-checkuservoicemail]<BR>;
${ARG1} - Device extension(s) to check for mail</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>; Usage</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>; in main context do exten =>
1000,1,Macro(checkuservoicemail,101)</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>exten => s,1,NoOp(Entering
CheckUserVoiceMail for ${MACRO_EXTEN})<BR>exten =>
s,n,GotoIf($["${MACRO_EXTEN}" = "${ARG1}"]?:NoMatchVM) </FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2>exten =>
s,n,Playback(beep)
; Hack for UIP200 clipping bug<BR>exten => s,n,VoicemailMain(<A
href="mailto:${ARG1}@outgoing">${ARG1}@outgoing</A>) ;
Check vmail<BR>exten =>
s,n,Hangup
; Hangup after checking vmail<BR>exten => s,n(NoMatchVM),NoOp(End
checkuservoicemail)</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com]<B>On Behalf Of </B>Mike
Hammett<BR><B>Sent:</B> Tuesday, May 22, 2007 9:37 AM<BR><B>To:</B> 'Asterisk
Users Mailing List - Non-Commercial Discussion'<BR><B>Subject:</B> RE:
[asterisk-users] Caller ID matching<BR><BR></FONT></DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'">Yeah,
I was trying to have it match the caller ID with what they’re dialing so that I
don’t have a separate entry for every customer.<o:p></o:p></SPAN></P>
<DIV>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: #1f497d; FONT-FAMILY: 'Arial','sans-serif'">-----<BR>Mike
Hammett<BR>Intelligent Computing Solutions<BR><A
href="http://www.ics-il.com">http://www.ics-il.com</A></SPAN><SPAN
style="COLOR: #1f497d"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d"> <o:p></o:p></SPAN></P></DIV>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"> </SPAN><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 11pt; COLOR: #1f497d; FONT-FAMILY: 'Calibri','sans-serif'"><o:p> </o:p></SPAN></P>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <B>On Behalf Of </B>Rizwan
Hisham<BR><B>Sent:</B> Tuesday, May 22, 2007 5:14 AM<BR><B>To:</B> Asterisk
Users Mailing List - Non-Commercial Discussion<BR><B>Subject:</B> Re:
[asterisk-users] Caller ID matching<o:p></o:p></SPAN></P></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt">I did it anyway. i used another
way around to do it:<BR><BR>suppose 887776666 is your number<BR><BR>exten=>
887776666,1,Dial(SIP/you)<BR>exten=>
887776666/887776666,1,VoiceMailMain()<BR><BR>but in this case you will have to
make a separate vm extension for every user. <o:p></o:p></P>
<DIV>
<P class=MsoNormal><SPAN class=gmailquote>On 5/22/07, <B>Rizwan Hisham</B>
<<A href="mailto:rizwanhasham@gmail.com">rizwanhasham@gmail.com</A>>
wrote:</SPAN><o:p></o:p></P>
<P class=MsoNormal>well i have tried to solve your problem, making your
extensions in my dialplan and reloading dialplan gives me segmentation fault. im
afraid i cant help u :)<SPAN class=q><o:p></o:p></SPAN></P>
<P> <o:p></o:p></P>
<P>exten => 555*,1,NoOp(${CALLERID(num)})<o:p></o:p></P>
<P>exten => 555*,2,Hangup<o:p></o:p></P>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><o:p> </o:p></P>
<DIV>
<DIV>
<P class=MsoNormal><SPAN class=gmailquote>On 5/20/07, <B>Mike Hammett</B> <<A
href="mailto:asterisk-users@ics-il.net" target=_blank>
asterisk-users@ics-il.net</A>> wrote:</SPAN><o:p></o:p></P></DIV>
<BLOCKQUOTE
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: medium none; PADDING-LEFT: 6pt; PADDING-BOTTOM: 0in; MARGIN-LEFT: 4.8pt; BORDER-LEFT: #cccccc 1pt solid; MARGIN-RIGHT: 0in; PADDING-TOP: 0in; BORDER-BOTTOM: medium none">
<DIV>
<DIV>
<DIV>
<P>What's going on here? 555* seems to indicate that the number is being
passed as the callerID because NoOp says the phone number.<o:p></o:p></P>
<P> <o:p></o:p></P>
<P>I'm trying to emulate cell phone voicemail where you call your own number
to check your voicemail.<o:p></o:p></P>
<P> <o:p></o:p></P>
<P> -- Accepting AUTHENTICATED call from
65.182.165.XXX:<o:p></o:p></P>
<P> > requested format =
gsm,<o:p></o:p></P>
<P> > requested prefs =
(),<o:p></o:p></P>
<P> > actual format =
ulaw,<o:p></o:p></P>
<P> > host prefs =
(ulaw),<o:p></o:p></P>
<P> > priority = mine<o:p></o:p></P>
<P> -- Executing NoOp("IAX2/815748XXXX-16", "815748XXXX") in
new stack<o:p></o:p></P>
<P> -- Executing Hangup("IAX2/815748XXXX-16", "") in new
stack<o:p></o:p></P>
<P> == Spawn extension (outbound-scripted, 555*, 2) exited non-zero on
'IAX2/815748XXXX-16'<o:p></o:p></P>
<P>May 20 11:10:34 ERROR[3286]: cdr_addon_mysql.c:144 mysql_log: cdr_mysql:
cannot connect to database server localhost.<o:p></o:p></P>
<P> -- Hungup 'IAX2/815748XXXX-16'<o:p></o:p></P>
<P>May 20 11:11:00 NOTICE[3275]: chan_iax2.c:7323 socket_read: Rejected
connect attempt from 65.182.165.XXX, request '815748XXXX@outbound-scripted'
does not exist<o:p></o:p></P>
<P> <o:p></o:p></P>
<P>exten => ${CALLERID(NUM)}/${CALLERID(NUM)},1,Answer<o:p></o:p></P>
<P>exten => ${CALLERID(NUM)}/${CALLERID(NUM)},2,NoOp(It's
here)<o:p></o:p></P>
<P>exten =>
${CALLERID(NUM)}/${CALLERID(NUM)},3,VoicemailMain(${CALLERID(NUM)})<o:p></o:p></P>
<P>exten => ${CALLERID(NUM)}/${CALLERID(NUM)},4,Hangup()<o:p></o:p></P>
<P> <o:p></o:p></P>
<P>exten => 555*,1,NoOp(${CALLERID(num)})<o:p></o:p></P>
<P>exten => 555*,2,Hangup<o:p></o:p></P>
<P> <o:p></o:p></P>
<P> <o:p></o:p></P>
<P> <o:p></o:p></P>
<P><SPAN style="FONT-SIZE: 10pt">-----<BR>Mike Hammett<BR>Intelligent
Computing Solutions<BR><A href="http://www.ics-il.com"
target=_blank>http://www.ics-il.com</A></SPAN><o:p></o:p></P>
<P> <o:p></o:p></P>
<P> <o:p></o:p></P>
<P> <o:p></o:p></P>
<P> <o:p></o:p></P>
<P> <o:p></o:p></P></DIV></DIV></DIV>
<P class=MsoNormal
style="MARGIN-BOTTOM: 12pt"><BR>_______________________________________________<BR>--Bandwidth
and Colocation provided by <A href="http://Easynews.com"
target=_blank>Easynews.com</A> --<BR><BR>asterisk-users mailing list<BR>To
UNSUBSCRIBE or update options visit:<BR> <A
href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target=_blank>http://lists.digium.com/mailman/listinfo/asterisk-users
</A><o:p></o:p></P></BLOCKQUOTE></DIV>
<P class=MsoNormal><BR><BR clear=all><BR>-- <BR>Rizwan Hisham<BR>Software
Engineer<BR>AXVOICE Inc. <o:p></o:p></P></DIV>
<P class=MsoNormal><BR><BR clear=all><BR>-- <BR>Rizwan Hisham<BR>Software
Engineer<BR>AXVOICE Inc. <o:p></o:p></P></DIV></BODY></HTML>