<html 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" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
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-AU link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='color:#1F497D'>Update on this:<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>I found that by changing
insecure = very to insecure = invite, adding the second trunk no longer stopped
calls working.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>I&#8217;ve read the documentation on
this switch and still don&#8217;t see how it applies/is meant to get used.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Anyway, with this change in place,
the following may help:<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>asterisk*CLI&gt; sip show
registry<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>Host&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Username&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Refresh State&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Reg.Time<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>gw02.mytel.net.au:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 11111&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
120 Request Sent&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>gw02.mytel.net.au:5060&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 22222&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
105 Registered &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thu, 13 Sep 2007 23:33:47<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>I have set a dial plan so that
some handsets use the 2222 (not the real number)&nbsp; extension (which work) and
now I only need to determine why 11111 never seems to register.<o:p></o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='color:#1F497D'>If I remove all traces of the
2222 connection from my config, 11111 registers fine.<o:p></o:p></span></p>

<div>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:red'>Joshua
Small</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'> |&nbsp;Senior Network Engineer&nbsp;| <b>VisiNet</b> | P. +61
1300 887 959&nbsp;| </span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'><a href="http://www.visinet.com.au/">www.visinet.com.au</a></span><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'> </span><span
style='color:#1F497D'><o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#666666'>This
e-mail is intended for use by the named&nbsp;recipients only and contains
confidential information. Opinions and other information in this message that
pertain to the sender's employer and its products and services represent the
opinion of the sender and&nbsp;not necessarily&nbsp;those of the employer. </span><span
style='font-size:10.0pt;font-family:"Times New Roman","serif";color:#666666'><o:p></o:p></span></p>

</div>

<p class=MsoNormal><span style='color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> asterisk-users-bounces@lists.digium.com
[mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>Joshua
Small<br>
<b>Sent:</b> Thursday, 13 September 2007 10:44 AM<br>
<b>To:</b> asterisk-users@lists.digium.com<br>
<b>Subject:</b> [asterisk-users] Problems with two trunks<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Hi,<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I am attempting to setup an asterisk server, current specs:<o:p></o:p></p>

<p class=MsoNormal>CentOS release 5 (Final)<o:p></o:p></p>

<p class=MsoNormal>Asterisk 1.4.11<o:p></o:p></p>

<p class=MsoNormal>Asterisk-gui checked out from SVN last week<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>I started with a fairly basic setup involving one VOIP
provider who provided one dial in number, and a couple of handsets. Config
files are below. It was pretty much totally built by Asterisk-gui, except for
the fact I had to add &#8220;insecure=very&#8221; into users.conf in order to stop the
dialin from our provider presenting an authentication error. Advice on any more
correct approach would be appreciated, but is not the focus of this post:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Users.conf<o:p></o:p></p>

<p class=MsoNormal>;several handsets setup like this...<o:p></o:p></p>

<p class=MsoNormal>[6001]<o:p></o:p></p>

<p class=MsoNormal>callwaiting = yes<o:p></o:p></p>

<p class=MsoNormal>context = numberplan-custom-1<o:p></o:p></p>

<p class=MsoNormal>email = jsmall@visinet.com.au<o:p></o:p></p>

<p class=MsoNormal>fullname = Joshua Small<o:p></o:p></p>

<p class=MsoNormal>hasagent = yes<o:p></o:p></p>

<p class=MsoNormal>hasdirectory = yes<o:p></o:p></p>

<p class=MsoNormal>hasiax = no<o:p></o:p></p>

<p class=MsoNormal>hasmanager = no<o:p></o:p></p>

<p class=MsoNormal>hassip = yes<o:p></o:p></p>

<p class=MsoNormal>hasvoicemail = no<o:p></o:p></p>

<p class=MsoNormal>host = dynamic<o:p></o:p></p>

<p class=MsoNormal>mailbox = 6001<o:p></o:p></p>

<p class=MsoNormal>secret = XXXXX<o:p></o:p></p>

<p class=MsoNormal>threewaycalling = yes<o:p></o:p></p>

<p class=MsoNormal>registeriax = no<o:p></o:p></p>

<p class=MsoNormal>registersip = yes<o:p></o:p></p>

<p class=MsoNormal>canreinvite = no<o:p></o:p></p>

<p class=MsoNormal>nat = no<o:p></o:p></p>

<p class=MsoNormal>dtmfmode = rfc2833<o:p></o:p></p>

<p class=MsoNormal>vmsecret = 1234<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>;some PSTNS<o:p></o:p></p>

<p class=MsoNormal>[trunk_2]<o:p></o:p></p>

<p class=MsoNormal>callerid = asreceived<o:p></o:p></p>

<p class=MsoNormal>context = DID_trunk_2<o:p></o:p></p>

<p class=MsoNormal>group = 2<o:p></o:p></p>

<p class=MsoNormal>hasexten = no<o:p></o:p></p>

<p class=MsoNormal>hasiax = no<o:p></o:p></p>

<p class=MsoNormal>hassip = no<o:p></o:p></p>

<p class=MsoNormal>trunkname = Ports 1,2,3,4<o:p></o:p></p>

<p class=MsoNormal>trunkstyle = analog<o:p></o:p></p>

<p class=MsoNormal>zapchan = 1,2,3,4<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>;my IP trunk<o:p></o:p></p>

<p class=MsoNormal>[trunk_3]<o:p></o:p></p>

<p class=MsoNormal>allow = all<o:p></o:p></p>

<p class=MsoNormal>context = DID_trunk_3<o:p></o:p></p>

<p class=MsoNormal>dialformat = ${EXTEN:1}<o:p></o:p></p>

<p class=MsoNormal>hasexten = no<o:p></o:p></p>

<p class=MsoNormal>hasiax = no<o:p></o:p></p>

<p class=MsoNormal>hassip = yes<o:p></o:p></p>

<p class=MsoNormal>host = gw02.mytel.net.au<o:p></o:p></p>

<p class=MsoNormal>port = 5060<o:p></o:p></p>

<p class=MsoNormal>registeriax = no<o:p></o:p></p>

<p class=MsoNormal>registersip = yes<o:p></o:p></p>

<p class=MsoNormal>secret = XXXXXXXX<o:p></o:p></p>

<p class=MsoNormal>trunkname = Custom - MyTel2<o:p></o:p></p>

<p class=MsoNormal>trunkstyle = customvoip<o:p></o:p></p>

<p class=MsoNormal>username = XXXXXXXX<o:p></o:p></p>

<p class=MsoNormal>type = friend<o:p></o:p></p>

<p class=MsoNormal>nat = yes<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>;extensions.conf<o:p></o:p></p>

<p class=MsoNormal>[numberplan-custom-1]<o:p></o:p></p>

<p class=MsoNormal>plancomment = DialPlan1<o:p></o:p></p>

<p class=MsoNormal>include = default<o:p></o:p></p>

<p class=MsoNormal>include = parkedcalls<o:p></o:p></p>

<p class=MsoNormal>exten = _0XXXXX!,1,Macro(trunkdial,${trunk_3}/${EXTEN:1})<o:p></o:p></p>

<p class=MsoNormal>comment = _0XXXXX!,1,First,standard<o:p></o:p></p>

<p class=MsoNormal>;a failover to PSTN, not yet enabled<o:p></o:p></p>

<p class=MsoNormal>;exten = _0XXXXX!,2,Macro(trunkdial,${trunk_2}/0${EXTEN:1})<o:p></o:p></p>

<p class=MsoNormal>;comment = _0XXXXX!,1,First,standard<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>At this point, everything appears to work fine. We can make
calls from our several handsets using our voip link no problems.<o:p></o:p></p>

<p class=MsoNormal>We have two different accounts with our provider, the goal
being certain handsets will connect to this account and therefore be billed
separately. I haven&#8217;t gotten as far as to add the extra handsets and set an
appropriate dialplan, all I did was add this to users.conf:<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>[trunk_extra]<o:p></o:p></p>

<p class=MsoNormal>allow = all<o:p></o:p></p>

<p class=MsoNormal>context = DID_trunk_3<o:p></o:p></p>

<p class=MsoNormal>dialformat = ${EXTEN:1}<o:p></o:p></p>

<p class=MsoNormal>hasexten = no<o:p></o:p></p>

<p class=MsoNormal>hasiax = no<o:p></o:p></p>

<p class=MsoNormal>hassip = yes<o:p></o:p></p>

<p class=MsoNormal>host = gw02.mytel.net.au<o:p></o:p></p>

<p class=MsoNormal>port = 5060<o:p></o:p></p>

<p class=MsoNormal>registeriax = no<o:p></o:p></p>

<p class=MsoNormal>registersip = yes<o:p></o:p></p>

<p class=MsoNormal>secret = XXXXXXXX<o:p></o:p></p>

<p class=MsoNormal>trunkname = Custom - MyTel Two<o:p></o:p></p>

<p class=MsoNormal>trunkstyle = customvoip<o:p></o:p></p>

<p class=MsoNormal>username = XXXXXXXXXX<o:p></o:p></p>

<p class=MsoNormal>type = friend<o:p></o:p></p>

<p class=MsoNormal>nat = yes<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>From this point on, my existing handsets don&#8217;t appear to be
able to get a line out. My console looks like this (from the first call out):<o:p></o:p></p>

<p class=MsoNormal>Connected to Asterisk 1.4.11 currently running on asterisk
(pid = 31999)<o:p></o:p></p>

<p class=MsoNormal>&nbsp;&nbsp;&nbsp; -- Remote UNIX connection<o:p></o:p></p>

<p class=MsoNormal>Verbosity is at least 8<o:p></o:p></p>

<p class=MsoNormal>&nbsp;&nbsp;&nbsp; -- Executing
[00425298582@numberplan-custom-1:1] Macro(&quot;SIP/8001-b7d0bb20&quot;,
&quot;trunkdial|SIP/trunk_3/0425298582&quot;) in new stack<o:p></o:p></p>

<p class=MsoNormal>&nbsp;&nbsp;&nbsp; -- Executing [s@macro-trunkdial:1]
Dial(&quot;SIP/8001-b7d0bb20&quot;, &quot;SIP/trunk_3/0425298582&quot;) in new
stack<o:p></o:p></p>

<p class=MsoNormal>&nbsp;&nbsp;&nbsp; -- Called trunk_3/0425298582<o:p></o:p></p>

<p class=MsoNormal>[Sep 13 20:42:16] WARNING[32011]: chan_sip.c:12016
handle_response_invite: Received response: &quot;Forbidden&quot; from
'&quot;Joshua Small&quot; &lt;sip:8001@192.168.107.4&gt;;tag=as29bb274d'<o:p></o:p></p>

<p class=MsoNormal>&nbsp;&nbsp;&nbsp; -- SIP/trunk_3-097ac708 is circuit-busy<o:p></o:p></p>

<p class=MsoNormal>&nbsp; == Everyone is busy/congested at this time (1:0/1/0)<o:p></o:p></p>

<p class=MsoNormal>&nbsp;&nbsp;&nbsp; -- Executing [s@macro-trunkdial:2]
Goto(&quot;SIP/8001-b7d0bb20&quot;, &quot;s-CONGESTION|1&quot;) in new stack<o:p></o:p></p>

<p class=MsoNormal>&nbsp;&nbsp;&nbsp; -- Goto (macro-trunkdial,s-CONGESTION,1)<o:p></o:p></p>

<p class=MsoNormal>&nbsp;&nbsp;&nbsp; -- Executing
[s-CONGESTION@macro-trunkdial:1] NoOp(&quot;SIP/8001-b7d0bb20&quot;,
&quot;&quot;) in new stack<o:p></o:p></p>

<p class=MsoNormal>&nbsp; == Auto fallthrough, channel 'SIP/8001-b7d0bb20'
status is 'CONGESTION'<o:p></o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Any advice on why our trunk_3 becomes congested, just because
trunk_extra is set to exist, is appreciated.<o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:red'>Joshua
Small</span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:black'> |&nbsp;Senior Network Engineer&nbsp;| <b>VisiNet</b> | P. +61
1300 887 959&nbsp;| </span><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'><a href="http://www.visinet.com.au/">www.visinet.com.au</a></span><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:black'> </span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#666666'>This
e-mail is intended for use by the named&nbsp;recipients only and contains
confidential information. Opinions and other information in this message that
pertain to the sender's employer and its products and services represent the
opinion of the sender and&nbsp;not necessarily&nbsp;those of the employer. </span><span
style='font-size:10.0pt;font-family:"Times New Roman","serif";color:#666666'><o:p></o:p></span></p>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</body>

</html>