<!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:st1 =
"urn:schemas-microsoft-com:office:smarttags"><HEAD><TITLE>RE: [Asterisk-Users] Need a list of asterisk built-in variables</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; }
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: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: blue; TEXT-DECORATION: underline
}
P {
        FONT-SIZE: 12pt; MARGIN-LEFT: 0cm; MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto
}
SPAN.EmailStyle18 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
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=blue link=blue>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=264595023-06042004>How
about setting up a database table and use the CALLERIDNUM as search criteria for
the table</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=264595023-06042004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=264595023-06042004>i.e. on the management console do: "
database put CLIEXT 5551212 121 "</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=264595023-06042004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=264595023-06042004>in
your extensions.conf:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=264595023-06042004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=264595023-06042004>exten
=> xxxx,1,DBget(VMEXT=CLIEXT/${CALLERIDNUM})</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=264595023-06042004>exten
=> xxxx,2,VoicemailMain(${VMEXT})</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=264595023-06042004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=264595023-06042004>This
way when extension 121 calls in with Callerid 5551212 it will be directed to its
voicemail.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=264595023-06042004></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=264595023-06042004>-Alfred</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=264595023-06042004></SPAN></FONT> </DIV>
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
asterisk-users-admin@lists.digium.com
[mailto:asterisk-users-admin@lists.digium.com]<B>On Behalf Of </B>Justin
Carlson<BR><B>Sent:</B> Tuesday, April 06, 2004 11:55 AM<BR><B>To:</B>
asterisk-users@lists.digium.com<BR><B>Subject:</B> RE: [Asterisk-Users] Need a
list of asterisk built-in variables<BR><BR></FONT></DIV>
<DIV><SPAN class=832225218-06042004><FONT face=Arial color=#0000ff size=2>yes
but this gives the entire phone number and there phone numbers do not match
their extension numbers for more reasons that I want to explain. (they wanted
the new system and the old one to behave the same) so I needed to get the
extension of the calling extension for the auto-voicemail login to
work.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
asterisk-users-admin@lists.digium.com
[mailto:asterisk-users-admin@lists.digium.com]<B>On Behalf Of </B>Pedro Bessa
Goncalves<BR><B>Sent:</B> Tuesday, April 06, 2004 12:27 PM<BR><B>To:</B>
asterisk-users@lists.digium.com<BR><B>Subject:</B> RE: [Asterisk-Users] Need a
list of asterisk built-in variables<BR><BR></FONT></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Suppose EXT1 makes
call to EXT2. Then the ${CALLERIDNUM} is the number of EXT1 while ${EXT} is
the number of EXT2.<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Any
doubts?<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Regards,<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Pedro
Goncalves<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<DIV>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT
face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
<HR tabIndex=-1 align=center width="100%" SIZE=2>
</SPAN></FONT></DIV>
<P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN
style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT
face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> Justin
Carlson [mailto:justin@lach.net] <BR><B><SPAN
style="FONT-WEIGHT: bold">Sent:</SPAN></B> terça-feira, 6 de Abril de 2004
18:01<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <st1:PersonName
w:st="on">asterisk-users@lists.digium.com</st1:PersonName><BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: [Asterisk-Users] Need a list
of asterisk built-in variables</SPAN></FONT><o:p></o:p></P></DIV>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<DIV>
<P class=MsoNormal><FONT face=Arial color=blue size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: Arial">it puts the callerid
number I have in the sip.conf instead.</SPAN></FONT><o:p></o:p></P></DIV>
<BLOCKQUOTE style="MARGIN-TOP: 5pt; MARGIN-BOTTOM: 5pt; MARGIN-RIGHT: 0cm">
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><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>Pedro Bessa
Goncalves<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday,
April 06, 2004 11:37 AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B>
<st1:PersonName
w:st="on">asterisk-users@lists.digium.com</st1:PersonName><BR><B><SPAN
style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: [Asterisk-Users] Need a
list of asterisk built-in variables</SPAN></FONT><o:p></o:p></P>
<P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">The
${CALLERIDNUM} variable has the calling extens number.</SPAN></FONT>
<o:p></o:p></P>
<P><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">Regards,</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE: 10pt">Pedro Goncalves</SPAN></FONT> <o:p></o:p></P>
<P><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">-----Original Message-----</SPAN></FONT> <BR><FONT
size=2><SPAN style="FONT-SIZE: 10pt">From: Justin Carlson [<A
href="mailto:justin@lach.net">mailto:justin@lach.net</A>]
</SPAN></FONT><BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">Sent:
terça-feira, 6 de Abril de 2004 17:32</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE: 10pt">To: <st1:PersonName
w:st="on">asterisk-users@lists.digium.com</st1:PersonName></SPAN></FONT>
<BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">Subject: [Asterisk-Users]
Need a list of asterisk built-in variables</SPAN></FONT> <o:p></o:p></P>
<P><FONT face="Times New Roman" size=2><SPAN style="FONT-SIZE: 10pt">I need
to be able to use a variable that has the calling extension
number</SPAN></FONT> <BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">rather
than the called.</SPAN></FONT> <o:p></o:p></P>
<P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN
style="FONT-SIZE: 12pt"><o:p> </o:p></SPAN></FONT></P>
<P><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">thanks.</SPAN></FONT> <o:p></o:p></P>
<P><FONT face="Times New Roman" size=2><SPAN
style="FONT-SIZE: 10pt">_______________________________________________</SPAN></FONT>
<BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">Asterisk-Users mailing
list</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE: 10pt">Asterisk-Users@lists.digium.com</SPAN></FONT>
<BR><FONT size=2><SPAN style="FONT-SIZE: 10pt"><A
href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target=_blank>http://lists.digium.com/mailman/listinfo/asterisk-users</A></SPAN></FONT>
<BR><FONT size=2><SPAN style="FONT-SIZE: 10pt">To UNSUBSCRIBE or update
options visit:</SPAN></FONT> <BR><FONT size=2><SPAN
style="FONT-SIZE: 10pt"> <A
href="http://lists.digium.com/mailman/listinfo/asterisk-users"
target=_blank>http://lists.digium.com/mailman/listinfo/asterisk-users</A></SPAN></FONT>
<o:p></o:p></P></BLOCKQUOTE></DIV></BLOCKQUOTE></BODY></HTML>