Connected to Asterisk 1.4.11 currently running on asterisk (pid =3D 31999) -- Remote UNIX connection Verbosity is at least 8 -- Executing [00425298582 at numberplan-custom-1:1] Macro("SIP/8001-b7d0bb20", "trunkdial|SIP/trunk_3/0425298582") in new stack -- Executing [s at macro-trunkdial:1] Dial("SIP/8001-b7d0bb20", "SIP/trunk_3/0425298582") in new stack -- Called trunk_3/0425298582 [Sep 13 20:42:16] WARNING[32011]: chan_sip.c:12016 handle_response_invite: Received response: "Forbidden" from '"Joshua Small" <sip:8001 at 192.168.107.4>;tag=3Das29bb274d' -- SIP/trunk_3-097ac708 is circuit-busy =3D=3D Everyone is busy/congested at this time (1:0/1/0) -- Executing [s at macro-trunkdial:2] Goto("SIP/8001-b7d0bb20", "s-CONGESTION|1") in new stack -- Goto (macro-trunkdial,s-CONGESTION,1) -- Executing [s-CONGESTION at macro-trunkdial:1] NoOp("SIP/8001-b7d0bb20", "") in new stack =3D=3D Auto fallthrough, channel 'SIP/8001-b7d0bb20' status is 'CONGESTION' =20 =20 Any advice on why our trunk_3 becomes congested, just because trunk_extra is set to exist, is appreciated. Joshua Small | Senior Network Engineer | VisiNet | P. +61 1300 887 959 | www.visinet.com.au <http://www.visinet.com.au/> =20 This e-mail is intended for use by the named 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 not necessarily those of the employer.=20 =20 ------_=_NextPart_001_01C7F59F.2E0DAF0D Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-microsoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii"> <meta name=3DGenerator content=3D"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;} /* 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-compose; font-family:"Calibri","sans-serif"; color:windowtext;} .MsoChpDefault {mso-style-type:export-only;} @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=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3DEN-AU link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal>Hi,<o:p></o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>I am attempting to setup an asterisk server, current specs:<o:p></o:p></p> <p class=3DMsoNormal>CentOS release 5 (Final)<o:p></o:p></p> <p class=3DMsoNormal>Asterisk 1.4.11<o:p></o:p></p> <p class=3DMsoNormal>Asterisk-gui checked out from SVN last week<o:p></o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>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 “insecure=3Dvery” 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=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>Users.conf<o:p></o:p></p> <p class=3DMsoNormal>;several handsets setup like this...<o:p></o:p></p> <p class=3DMsoNormal>[6001]<o:p></o:p></p> <p class=3DMsoNormal>callwaiting =3D yes<o:p></o:p></p> <p class=3DMsoNormal>context =3D numberplan-custom-1<o:p></o:p></p> <p class=3DMsoNormal>email =3D jsmall at visinet.com.au<o:p></o:p></p> <p class=3DMsoNormal>fullname =3D Joshua Small<o:p></o:p></p> <p class=3DMsoNormal>hasagent =3D yes<o:p></o:p></p> <p class=3DMsoNormal>hasdirectory =3D yes<o:p></o:p></p> <p class=3DMsoNormal>hasiax =3D no<o:p></o:p></p> <p class=3DMsoNormal>hasmanager =3D no<o:p></o:p></p> <p class=3DMsoNormal>hassip =3D yes<o:p></o:p></p> <p class=3DMsoNormal>hasvoicemail =3D no<o:p></o:p></p> <p class=3DMsoNormal>host =3D dynamic<o:p></o:p></p> <p class=3DMsoNormal>mailbox =3D 6001<o:p></o:p></p> <p class=3DMsoNormal>secret =3D XXXXX<o:p></o:p></p> <p class=3DMsoNormal>threewaycalling =3D yes<o:p></o:p></p> <p class=3DMsoNormal>registeriax =3D no<o:p></o:p></p> <p class=3DMsoNormal>registersip =3D yes<o:p></o:p></p> <p class=3DMsoNormal>canreinvite =3D no<o:p></o:p></p> <p class=3DMsoNormal>nat =3D no<o:p></o:p></p> <p class=3DMsoNormal>dtmfmode =3D rfc2833<o:p></o:p></p> <p class=3DMsoNormal>vmsecret =3D 1234<o:p></o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>;some PSTNS<o:p></o:p></p> <p class=3DMsoNormal>[trunk_2]<o:p></o:p></p> <p class=3DMsoNormal>callerid =3D asreceived<o:p></o:p></p> <p class=3DMsoNormal>context =3D DID_trunk_2<o:p></o:p></p> <p class=3DMsoNormal>group =3D 2<o:p></o:p></p> <p class=3DMsoNormal>hasexten =3D no<o:p></o:p></p> <p class=3DMsoNormal>hasiax =3D no<o:p></o:p></p> <p class=3DMsoNormal>hassip =3D no<o:p></o:p></p> <p class=3DMsoNormal>trunkname =3D Ports 1,2,3,4<o:p></o:p></p> <p class=3DMsoNormal>trunkstyle =3D analog<o:p></o:p></p> <p class=3DMsoNormal>zapchan =3D 1,2,3,4<o:p></o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>;my IP trunk<o:p></o:p></p> <p class=3DMsoNormal>[trunk_3]<o:p></o:p></p> <p class=3DMsoNormal>allow =3D all<o:p></o:p></p> <p class=3DMsoNormal>context =3D DID_trunk_3<o:p></o:p></p> <p class=3DMsoNormal>dialformat =3D ${EXTEN:1}<o:p></o:p></p> <p class=3DMsoNormal>hasexten =3D no<o:p></o:p></p> <p class=3DMsoNormal>hasiax =3D no<o:p></o:p></p> <p class=3DMsoNormal>hassip =3D yes<o:p></o:p></p> <p class=3DMsoNormal>host =3D gw02.mytel.net.au<o:p></o:p></p> <p class=3DMsoNormal>port =3D 5060<o:p></o:p></p> <p class=3DMsoNormal>registeriax =3D no<o:p></o:p></p> <p class=3DMsoNormal>registersip =3D yes<o:p></o:p></p> <p class=3DMsoNormal>secret =3D XXXXXXXX<o:p></o:p></p> <p class=3DMsoNormal>trunkname =3D Custom - MyTel2<o:p></o:p></p> <p class=3DMsoNormal>trunkstyle =3D customvoip<o:p></o:p></p> <p class=3DMsoNormal>username =3D XXXXXXXX<o:p></o:p></p> <p class=3DMsoNormal>type =3D friend<o:p></o:p></p> <p class=3DMsoNormal>nat =3D yes<o:p></o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>;extensions.conf<o:p></o:p></p> <p class=3DMsoNormal>[numberplan-custom-1]<o:p></o:p></p> <p class=3DMsoNormal>plancomment =3D DialPlan1<o:p></o:p></p> <p class=3DMsoNormal>include =3D default<o:p></o:p></p> <p class=3DMsoNormal>include =3D parkedcalls<o:p></o:p></p> <p class=3DMsoNormal>exten =3D _0XXXXX!,1,Macro(trunkdial,${trunk_3}/${EXTEN:1})<o:p></o:p></p> <p class=3DMsoNormal>comment =3D _0XXXXX!,1,First,standard<o:p></o:p></p> <p class=3DMsoNormal>;a failover to PSTN, not yet enabled<o:p></o:p></p> <p class=3DMsoNormal>;exten =3D _0XXXXX!,2,Macro(trunkdial,${trunk_2}/0${EXTEN:1})<o:p></o:p></p> <p class=3DMsoNormal>;comment =3D _0XXXXX!,1,First,standard<o:p></o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>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=3DMsoNormal>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’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=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>[trunk_extra]<o:p></o:p></p> <p class=3DMsoNormal>allow =3D all<o:p></o:p></p> <p class=3DMsoNormal>context =3D DID_trunk_3<o:p></o:p></p> <p class=3DMsoNormal>dialformat =3D ${EXTEN:1}<o:p></o:p></p> <p class=3DMsoNormal>hasexten =3D no<o:p></o:p></p> <p class=3DMsoNormal>hasiax =3D no<o:p></o:p></p> <p class=3DMsoNormal>hassip =3D yes<o:p></o:p></p> <p class=3DMsoNormal>host =3D gw02.mytel.net.au<o:p></o:p></p> <p class=3DMsoNormal>port =3D 5060<o:p></o:p></p> <p class=3DMsoNormal>registeriax =3D no<o:p></o:p></p> <p class=3DMsoNormal>registersip =3D yes<o:p></o:p></p> <p class=3DMsoNormal>secret =3D XXXXXXXX<o:p></o:p></p> <p class=3DMsoNormal>trunkname =3D Custom - MyTel Two<o:p></o:p></p> <p class=3DMsoNormal>trunkstyle =3D customvoip<o:p></o:p></p> <p class=3DMsoNormal>username =3D XXXXXXXXXX<o:p></o:p></p> <p class=3DMsoNormal>type =3D friend<o:p></o:p></p> <p class=3DMsoNormal>nat =3D yes<o:p></o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>From this point on, my existing handsets don’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=3DMsoNormal>Connected to Asterisk 1.4.11 currently running on asterisk (pid =3D 31999)<o:p></o:p></p> <p class=3DMsoNormal> -- Remote UNIX connection<o:p></o:p></p> <p class=3DMsoNormal>Verbosity is at least 8<o:p></o:p></p> <p class=3DMsoNormal> -- Executing [00425298582 at numberplan-custom-1:1] Macro("SIP/8001-b7d0bb20", "trunkdial|SIP/trunk_3/0425298582") in new stack<o:p></o:p></p> <p class=3DMsoNormal> -- Executing [s at macro-trunkdial:1] Dial("SIP/8001-b7d0bb20", "SIP/trunk_3/0425298582") in new stack<o:p></o:p></p> <p class=3DMsoNormal> -- Called trunk_3/0425298582<o:p></o:p></p> <p class=3DMsoNormal>[Sep 13 20:42:16] WARNING[32011]: chan_sip.c:12016 handle_response_invite: Received response: "Forbidden" from '"Joshua Small" <sip:8001 at 192.168.107.4>;tag=3Das29bb274d'<o:p></o:p></p> <p class=3DMsoNormal> -- SIP/trunk_3-097ac708 is circuit-busy<o:p></o:p></p> <p class=3DMsoNormal> =3D=3D Everyone is busy/congested at this time (1:0/1/0)<o:p></o:p></p> <p class=3DMsoNormal> -- Executing [s at macro-trunkdial:2] Goto("SIP/8001-b7d0bb20", "s-CONGESTION|1") in new stack<o:p></o:p></p> <p class=3DMsoNormal> -- Goto (macro-trunkdial,s-CONGESTION,1)<o:p></o:p></p> <p class=3DMsoNormal> -- Executing [s-CONGESTION at macro-trunkdial:1] NoOp("SIP/8001-b7d0bb20", "") in new stack<o:p></o:p></p> <p class=3DMsoNormal> =3D=3D Auto fallthrough, channel 'SIP/8001-b7d0bb20' status is 'CONGESTION'<o:p></o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal>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=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:red'>Joshua Small</span><span style=3D'font-size:10.0pt;font-family:"Arial","sans-serif"; color:black'> | Senior Network Engineer | <b>VisiNet</b> | P. +61 1300 887 959 | </span><span style=3D'font-size:10.0pt;font-family:"Arial","sans-serif"; color:blue'><a href=3D"http://www.visinet.com.au/"><span style=3D'color:blue'>www.visinet.com.au</span></a></span><span style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:black'> </span><o:p></o:p></p> <p class=3DMsoNormal style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style=3D'font-size:10.0pt;font-family:"Arial","sans-serif";color:#666666'>This e-mail is intended for use by the named 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 not necessarily those of the employer. </span><span style=3D'font-size:10.0pt;font-family:"Times New Roman","serif";color:#666666'><o:p></o:p></span></p> <p class=3DMsoNormal><o:p> </o:p></p> </div> </body> </html> ------_=_NextPart_001_01C7F59F.2E0DAF0D--