<!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.7653.38">
<TITLE>secret=pw in sip.conf affecting inter-asterisk sip call </TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P DIR=LTR><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">I was trying to do a SIP call between two Asterisk servers (1.4.21.2)</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">1)</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New"> On the caller server,</FONT><FONT SIZE=2 FACE="Courier New"> I coded the following in extensions.conf</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">Dial(SIP/</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">1</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">166:p</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">assword</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">@</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">asterisk-callee</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">);</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">2</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">)</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"> <FONT SIZE=2 FACE="Courier New">On</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"> <FONT SIZE=2 FACE="Courier New">the calle</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">e</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New"> server, I coded the following in</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"> <FONT SIZE=2 FACE="Courier New">sip</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">.conf</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">[1166]</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">type=friend ; Friends place calls and receive calls</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">context=incoming ; Co</FONT><FONT SIZE=2 FACE="Courier New">ntext for incoming calls from this user</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">host=dynamic ; This peer register with us</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">dtmfmode=rfc2833 ; Choices are inband, rfc2833, or info</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">qualify=yes ; Monitor latency between Asterisk server and phone</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">cal</FONT><FONT SIZE=2 FACE="Courier New">l-limit=99</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">username=1166 ; Username to use in INVITE until peer registers</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">secret=p</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">assword</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New"> ; Normally you do NOT need to set this parameter</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">mailbox=1166@default ; mailbox 5100 in voicemail context .default.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">callgrou</FONT><FONT SIZE=2 FACE="Courier New">p=1</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">pickupgroup=1</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">The call was unsuccessful as follows.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New"> </FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">1) On the caller machine, this is what we got from the console</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New"> -- Executing [</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">1166</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">@incoming:1] Dial("SIP/</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">1</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">166-09d81668", "SIP/</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">1</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">166:p</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">assword</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">@a</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">sterisk-callee</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">") in new stack</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New"> -- Called</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"> <FONT SIZE=2 FACE="Courier New">1</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">166:p</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">assword</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">@</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">asterisk-callee</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New"> -- SIP/</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">asterisk-callee</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New"> is circuit-busy</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New"> == Everyone is busy/congested at this time (1:0/1/0)</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">2) On the callee machine, this is what we got from the console,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">[Sep 14 14:34:12] NOTICE[11991]: chan_sip.c:14035 handle_request_invi</FONT><FONT SIZE=2 FACE="Courier New">te: Call from '</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">2765</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">' to extension '</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">1</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">166:p</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">assword</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">' rejected because extension not found.</FONT></SPAN><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">However, I found out that if I remove “secret=..” from the SIP entry and call without the password, then I will be able to call.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"><FONT SIZE=2 FACE="Courier New">Any thoughts?</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-au"></SPAN><SPAN LANG="en-au"></SPAN></P>
</BODY>
</HTML>