got it. thanx<br><br><div><span class="gmail_quote">On 5/24/07, <b class="gmail_sendername">Matthew Yingling</b> <<a href="mailto:matt@xenotran.com">matt@xenotran.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div vlink="purple" link="blue" lang="EN-US">
<div><font color="#0000ff" face="Arial" size="2"><span>We use
this macro, which works quite well:</span></font></div>
<div><font color="#0000ff" face="Arial" size="2"><span></span></font> </div>
<div><font color="#0000ff" face="Arial" size="2">[macro-checkuservoicemail]<br>;
${ARG1} - Device extension(s) to check for mail</font></div>
<div><font color="#0000ff" face="Arial" size="2">; Usage</font></div>
<div><font color="#0000ff" face="Arial" size="2">; in main context do exten =>
1000,1,Macro(checkuservoicemail,101)</font></div>
<div><font color="#0000ff" face="Arial" size="2"></font> </div>
<div><font color="#0000ff" face="Arial" size="2">exten => s,1,NoOp(Entering
CheckUserVoiceMail for ${MACRO_EXTEN})<br>exten =>
s,n,GotoIf($["${MACRO_EXTEN}" = "${ARG1}"]?:NoMatchVM) </font></div>
<div><font color="#0000ff" face="Arial" size="2">exten =>
s,n,Playback(beep)
; Hack for UIP200 clipping bug<br>exten => s,n,VoicemailMain(<a href="mailto:$%7BARG1%7D@outgoing" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">${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 color="#0000ff" face="Arial" size="2"></font> </div>
<div><font color="#0000ff" face="Arial" size="2"></font> </div>
<div dir="ltr" align="left"><font face="Tahoma" size="2"><span class="q">-----Original Message-----<br><b>From:</b>
<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">asterisk-users-bounces@lists.digium.com</a>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">asterisk-users-bounces@lists.digium.com</a>]<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></span></font><div><span class="e" id="q_112bb0cdf7d4b2d0_2"><font face="Tahoma" size="2"><b>Subject:</b> RE:
[asterisk-users] Caller ID matching<br><br></font></span></div></div><div><span class="e" id="q_112bb0cdf7d4b2d0_4">
<div>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">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.</span></p>
<div>
<p><span style="color: rgb(31, 73, 125);"> </span></p></div>
<div>
<p><span style="color: rgb(31, 73, 125);"> </span></p></div>
<div>
<p><span style="font-size: 10pt; color: rgb(31, 73, 125);">-----<br>Mike
Hammett<br>Intelligent Computing Solutions<br><a href="http://www.ics-il.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://www.ics-il.com</a></span><span style="color: rgb(31, 73, 125);">
</span></p></div>
<div>
<p><span style="color: rgb(31, 73, 125);"> </span></p></div>
<p><span style="color: rgb(31, 73, 125);"> </span><span style="font-size: 11pt; color: rgb(31, 73, 125);"></span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">asterisk-users-bounces@lists.digium.com</a>
[mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">asterisk-users-bounces@lists.digium.com</a>] <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</span></p></div>
<p> </p>
<p 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. </p>
<div>
<p><span>On 5/22/07, <b>Rizwan Hisham</b>
<<a href="mailto:rizwanhasham@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">rizwanhasham@gmail.com</a>>
wrote:</span></p>
<p>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></span></p>
<p> </p>
<p>exten => 555*,1,NoOp(${CALLERID(num)})</p>
<p>exten => 555*,2,Hangup</p>
<p style="margin-bottom: 12pt;"> </p>
<div>
<div>
<p><span>On 5/20/07, <b>Mike Hammett</b> <<a href="mailto:asterisk-users@ics-il.net" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
asterisk-users@ics-il.net</a>> wrote:</span></p></div>
<blockquote style="border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204); border-width: medium medium medium 1pt; padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;">
<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.</p>
<p> </p>
<p>I'm trying to emulate cell phone voicemail where you call your own number
to check your voicemail.</p>
<p> </p>
<p> -- Accepting AUTHENTICATED call from
65.182.165.XXX:</p>
<p> > requested format =
gsm,</p>
<p> > requested prefs =
(),</p>
<p> > actual format =
ulaw,</p>
<p> > host prefs =
(ulaw),</p>
<p> > priority = mine</p>
<p> -- Executing NoOp("IAX2/815748XXXX-16", "815748XXXX") in
new stack</p>
<p> -- Executing Hangup("IAX2/815748XXXX-16", "") in new
stack</p>
<p> == Spawn extension (outbound-scripted, 555*, 2) exited non-zero on
'IAX2/815748XXXX-16'</p>
<p>May 20 11:10:34 ERROR[3286]: cdr_addon_mysql.c:144 mysql_log: cdr_mysql:
cannot connect to database server localhost.</p>
<p> -- Hungup 'IAX2/815748XXXX-16'</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</p>
<p> </p>
<p>exten => ${CALLERID(NUM)}/${CALLERID(NUM)},1,Answer</p>
<p>exten => ${CALLERID(NUM)}/${CALLERID(NUM)},2,NoOp(It's
here)</p>
<p>exten =>
${CALLERID(NUM)}/${CALLERID(NUM)},3,VoicemailMain(${CALLERID(NUM)})</p>
<p>exten => ${CALLERID(NUM)}/${CALLERID(NUM)},4,Hangup()</p>
<p> </p>
<p>exten => 555*,1,NoOp(${CALLERID(num)})</p>
<p>exten => 555*,2,Hangup</p>
<p> </p>
<p> </p>
<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" onclick="return top.js.OpenExtLink(window,event,this)">http://www.ics-il.com</a></span></p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p></div></div></div>
<p style="margin-bottom: 12pt;"><br>_______________________________________________<br>--Bandwidth
and Colocation provided by <a href="http://Easynews.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">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" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.digium.com/mailman/listinfo/asterisk-users
</a></p></blockquote></div>
<p><br><br clear="all"><br>-- <br>Rizwan Hisham<br>Software
Engineer<br>AXVOICE Inc. </p></div>
<p><br><br clear="all"><br>-- <br>Rizwan Hisham<br>Software
Engineer<br>AXVOICE Inc. </p></div></span></div></div>
<br>_______________________________________________<br>--Bandwidth and Colocation provided by <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --<br><br>
asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users
</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Rizwan Hisham<br>Software Engineer<br>AXVOICE Inc.