<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.6944.0">
<TITLE>Passing CallerID to SIP phone from TDM400P</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<BR>
<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Sorry, newbie, I want to pass the incoming callerid information through to my sip phone but when an incoming call gets passed through it says asterisk on the display instead of the number.</FONT></P>
<P><FONT SIZE=2 FACE="Arial">Being in australia callerid information is passed through on the second ring not the first, (hence my noop command doesn't currently work)</FONT></P>
<P><FONT SIZE=2 FACE="Arial">James</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">----------------------------------------------------------</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">/etc/asterisk/extensions.conf</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">[pstn]</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">exten => s,1,NoOp(Comment Only: Call from ${CALLERIDNUM}) ; Just put a comment in the CLI for info.</FONT>
<BR><FONT SIZE=2 FACE="Arial">exten => s,2,Dial(SIP/snom-james,45,t)</FONT>
<BR><FONT SIZE=2 FACE="Arial">exten => s,3,Hangup</FONT>
<BR><FONT SIZE=2 FACE="Arial">;exten => s,3,VoiceMail(u100) ;Whatever box you want.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">[internal]</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">exten => i,1,Playback(invalid)</FONT>
<BR><FONT SIZE=2 FACE="Arial">exten => i,2,Hangup</FONT>
<BR><FONT SIZE=2 FACE="Arial">exten => t,1,Hangup</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">exten => 099,1,Echo ;simple echo test when you dial 099 on your phone</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">include => sip</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">[sip]</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">exten => 690,1,Dial(SIP/snom-james,30,tr)</FONT>
<BR><FONT SIZE=2 FACE="Arial">exten => 690,2,voicemail2,u900</FONT>
<BR><FONT SIZE=2 FACE="Arial">exten => 690,102,voicemail2,b900</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">exten => 691,1,Dial(SIP/bt-karen,30,tr)</FONT>
<BR><FONT SIZE=2 FACE="Arial">exten => 691,2,voicemail2,u901</FONT>
<BR><FONT SIZE=2 FACE="Arial">exten => 691,102,voicemail,b901</FONT>
<BR><FONT SIZE=2 FACE="Arial"> </FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">/etc/asterisk/sip.conf</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">[general]</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">port = 5060</FONT>
<BR><FONT SIZE=2 FACE="Arial">bindaddr = 192.168.69.1</FONT>
<BR><FONT SIZE=2 FACE="Arial">context = sip</FONT>
<BR><FONT SIZE=2 FACE="Arial">disallow = gsm</FONT>
<BR><FONT SIZE=2 FACE="Arial">allow = alaw</FONT>
<BR><FONT SIZE=2 FACE="Arial">disallow = ulaw</FONT>
<BR><FONT SIZE=2 FACE="Arial">srvlookup=no</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">[snom-james]</FONT>
<BR><FONT SIZE=2 FACE="Arial">type=friend</FONT>
<BR><FONT SIZE=2 FACE="Arial">secret=<password removed></FONT>
<BR><FONT SIZE=2 FACE="Arial">host=dynamic</FONT>
<BR><FONT SIZE=2 FACE="Arial">callerid="James" <690></FONT>
<BR><FONT SIZE=2 FACE="Arial">defaultip=192.168.69.250</FONT>
<BR><FONT SIZE=2 FACE="Arial">dtmfmode=inband</FONT>
<BR><FONT SIZE=2 FACE="Arial">mailbox=690</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">[bt-karen]</FONT>
<BR><FONT SIZE=2 FACE="Arial">type=friend</FONT>
<BR><FONT SIZE=2 FACE="Arial">secret=<password removed></FONT>
<BR><FONT SIZE=2 FACE="Arial">host=dynamic</FONT>
<BR><FONT SIZE=2 FACE="Arial">callerid="Karen" <691></FONT>
<BR><FONT SIZE=2 FACE="Arial">defaultip=192.168.69.251</FONT>
<BR><FONT SIZE=2 FACE="Arial">dtmfmode=inband</FONT>
<BR><FONT SIZE=2 FACE="Arial">mailbox=691</FONT>
</P>
</BODY>
</HTML>