<div>I think I see your problem.  In users.conf you need to add context=DID_trunk_1 for [trunk_1].  It currently has no context to Asterisk doesn&#39;t know what to do with calls coming in on channels 1-7.  Once you add that, calls will then land in the [DID_trunk_1] context in extensions.conf where you have your time based rules.</div>

<div> </div>
<div>Also, in extensions.conf under [globals] you need to change the trunk_2 varialbe from trunk_2 = DAHDI/trunk_2 to trunk_2 = DAHDI/g2.</div>
<div> </div>
<div>Good Luck<br><br></div>
<div class="gmail_quote">On Thu, Jul 16, 2009 at 1:05 PM, Bob Crandell <span dir="ltr">&lt;<a href="mailto:bob@assuredcomp.com">bob@assuredcomp.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Here is System and Users:<br><br><br>/etc/dahdi/system.conf<br># Autogenerated by /usr/sbin/dahdi_genconf on Mon Jul 13 17:53:33 2009<br>
# If you edit this file and execute /usr/sbin/dahdi_genconf again,<br># your manual changes will be LOST.<br># Dahdi Configuration File<br>#<br># This file is parsed by the Dahdi Configurator, dahdi_cfg<br>#<br># Span 1: WCTDM/4 &quot;Wildcard TDM400P REV E/F Board 5&quot; (MASTER)<br>
fxsks=1<br>echocanceller=mg2,1<br>fxsks=2<br>echocanceller=mg2,2<br>fxsks=3<br>echocanceller=mg2,3<br>fxsks=4<br>echocanceller=mg2,4<br><br># Span 2: WCTDM/4 &quot;Wildcard TDM400P REV E/F Board 5&quot;<br>fxsks=5<br>echocanceller=mg2,5<br>
fxsks=6<br>echocanceller=mg2,6<br>fxsks=7<br>echocanceller=mg2,7<br>fxsks=8<br>echocanceller=mg2,8<br><br># Span 3: WCTDM/4 &quot;Wildcard TDM400P REV E/F Board 5&quot;<br>fxoks=9<br>echocanceller=mg2,9<br>fxoks=10<br>echocanceller=mg2,10<br>
fxoks=11<br>echocanceller=mg2,11<br>fxoks=12<br>echocanceller=mg2,12<br><br># Global data<br><br>loadzone        = us<br>defaultzone     = us<br>/etc/asterisk/users.conf<br>;!<br>;! Automatically generated configuration file<br>
;! Filename: users.conf (/etc/asterisk/users.conf)<br>;! Generator: Manager<br>;! Creation Date: Tue Jul 14 16:53:55 2009<br>;!<br>;<br>; User configuration<br>;<br>; Creating entries in users.conf is a &quot;shorthand&quot; for creating individual<br>
; entries in each configuration file.  Using users.conf is not intended to<br>; provide you with as much flexibility as using the separate configuration<br>; files (e.g. sip.conf, iax.conf, etc) but is intended to accelerate the<br>
; simple task of adding users.  Note that creating individual items (e.g.<br>; custom SIP peers, IAX friends, etc.) will allow you to override specific<br>; parameters within this file.  Parameter names here are the same as they<br>
; appear in the other configuration files.  There is no way to change the<br>; value of a parameter here for just one subsystem.<br>;<br><br>[general]<br>;<br>; Full name of a user<br>;<br>fullname = New User<br>;<br>; Starting point of allocation of extensions<br>
;<br>userbase = 6000<br>;<br>; Create voicemail mailbox and use use macro-stdexten<br>;<br>hasvoicemail = yes<br>;<br>; Set voicemail mailbox 6000 password to 1234<br>;<br>vmsecret = 1234<br>;<br>; Create SIP Peer<br>;<br>
hassip = yes<br>;<br>; Create IAX friend<br>;<br>hasiax = yes<br>;<br>; Create H.323 friend<br>;<br>;hash323 = yes<br>; Create manager entry<br>;<br>hasmanager = no<br>;<br>; Set permissions for manager entry (see manager.conf.sample for documentation)<br>
; (defaults to *all* permissions)<br>;managerread = system,call,log,verbose,command,agent,user,config<br>;managerwrite = system,call,log,verbose,command,agent,user,config<br>;<br>; Remaining options are not specific to users.conf entries but are general.<br>
;<br>callwaiting = yes<br>threewaycalling = yes<br>callwaitingcallerid = yes<br>transfer = yes<br>canpark = yes<br>cancallforward = yes<br>callreturn = yes<br>callgroup = 1<br>pickupgroup = 1<br>vmexten = 7000<br><br>;[6000]<br>
;fullname = Joe User<br>;email = joe@foo.bar<br>;secret = 1234<br>;zapchan = 1<br>;hasvoicemail = yes<br>;vmsecret = 1234<br>;hassip = yes<br>;hasiax = no<br>;hash323 = no<br>;hasmanager = no<br>;callwaiting = no<br>;context = international<br>
<br>[trunk_1]<br>trunkname = CBTrunk  ; GUI metadata<br>busydetect = yes<br>busycount = 3<br>busypattern = 500,500<br>ringtimeout = 8000<br>answeronpolarityswitch = no<br>hanguponpolarityswitch = no<br>callprogress = no<br>
progzone = us<br>usecallerid = yes<br>cidstart = ring<br>pulsedial = nodisallow = all<br>allow = all<br>gui_volume = 3  ; GUI metadata<br>signalling = fxs_ks<br>gui_fxooffset = 0  ; GUI metadata<br>rxgain = 2<br>txgain = 0.0<br>
channel = 1<br>gui_volume = 3  ; GUI metadata<br>signalling = fxs_ks<br>gui_fxooffset = 0  ; GUI metadata<br>rxgain = 2<br>txgain = 0.0<br>channel = 2<br>gui_volume = 3  ; GUI metadata<br>signalling = fxs_ks<br>gui_fxooffset = 0  ; GUI metadata<br>
rxgain = 2<br>txgain = 0.0<br>channel = 3<br>gui_volume = 3  ; GUI metadata<br>signalling = fxs_ks<br>gui_fxooffset = 0  ; GUI metadata<br>rxgain = 2<br>txgain = 0.0<br>channel = 4<br>gui_volume = 3  ; GUI metadata<br>signalling = fxs_ks<br>
gui_fxooffset = 0  ; GUI metadata<br>rxgain = 2<br>txgain = 0.0<br>channel = 5<br>gui_volume = 3  ; GUI metadata<br>signalling = fxs_ks<br>gui_fxooffset = 0  ; GUI metadata<br>rxgain = 2<br>txgain = 0.0<br>channel = 6<br>
gui_volume = 3  ; GUI metadata<br>signalling = fxs_ks<br>gui_fxooffset = 0  ; GUI metadata<br>rxgain = 2<br>txgain = 0.0<br>channel = 7<br><br>[6001]<br>username = 6001<br>transfer = yes<br>mailbox = 6001<br>call-limit = 100<br>
type = peer<br>fullname = Margie Mogle<br>registersip = no<br>host = dynamic<br>callgroup = 1<br>type = peer<br>context = DLPN_DialPlan1<br>cid_number = 6001<br>hasvoicemail = yes<br>vmsecret =<br>email =<br>threewaycalling = no<br>
hasdirectory = yes<br>callwaiting = no<br>hasmanager = yes<br>hasagent = yes<br>hassip = yes<br>hasiax = no<br>secret =<br>nat = yes<br>canreinvite = no<br>dtmfmode = rfc2833<br>insecure = no<br>pickupgroup = 1<br>autoprov = no<br>
label =<br>macaddress =<br>linenumber = 1<br>LINEKEYS = 1<br>managerread = system,call,log,verbose,command,agent,user,config,originate<br>managerwrite = system,call,log,verbose,command,agent,user,config,originate<br>disallow = all<br>
allow = ulaw,gsm,alaw,speex,g726<br><br>[6002]<br>username = 6002<br>transfer = yes<br>mailbox = 6002<br>call-limit = 100<br>type = peer<br>fullname = Bob Crandell<br>registersip = no<br>host = dynamic<br>callgroup = 1<br>
type = peer<br>context = DLPN_DialPlan1<br>cid_number = 6002<br>hasvoicemail = yes<br>vmsecret =<br>email =<br>threewaycalling = yes<br>hasdirectory = yes<br>callwaiting = yes<br>hasmanager = yes<br>hasagent = yes<br>hassip = yes<br>
hasiax = no<br>secret =<br>nat = yes<br>canreinvite = no<br>dtmfmode = rfc2833<br>insecure = no<br>pickupgroup = 1<br>signalling = fxo_ks<br>flash = 750<br>rxflash = 1250<br>autoprov = no<br>label =<br>macaddress =<br>linenumber = 2<br>
LINEKEYS = 1<br>managerread = system,call,log,verbose,command,agent,user,config,originate<br>managerwrite = system,call,log,verbose,command,agent,user,config,originate<br>dahdichan = 9<br>disallow = all<br>allow = ulaw,gsm,alaw,speex,g726<br>
<br>[6003]<br>username = 6003<br>transfer = yes<br>mailbox = 6003<br>call-limit = 100<br>type = peer<br>fullname = Brett Ansite<br>registersip = no<br>host = dynamic<br>callgroup = 1<br>type = peer<br>context = DLPN_DialPlan1<br>
cid_number = 6003<br>hasvoicemail = yes<br>vmsecret =<br>email =<br>threewaycalling = no<br>hasdirectory = yes<br>callwaiting = no<br>hasmanager = yes<br>hasagent = yes<br>hassip = yes<br>hasiax = no<br>secret =<br>nat = yes<br>
canreinvite = no<br>dtmfmode = rfc2833<br>insecure = no<br>pickupgroup = 1<br>autoprov = no<br>label =<br>macaddress =<br>linenumber = 3<br>LINEKEYS = 1<br>managerread = system,call,log,verbose,command,agent,user,config,originate<br>
managerwrite = system,call,log,verbose,command,agent,user,config,originate<br>disallow = all<br>allow = ulaw,gsm,alaw,speex,g726<br><br>[6004]<br>username = 6004<br>transfer = yes<br>mailbox = 6004<br>call-limit = 100<br>
type = peer<br>fullname = Mike Owen<br>registersip = no<br>host = dynamic<br>callgroup = 1<br>type = peer<br>context = DLPN_DialPlan1<br>cid_number = 6004<br>hasvoicemail = yes<br>vmsecret =<br>email =<br>threewaycalling = yes<br>
hasdirectory = yes<br>callwaiting = yes<br>hasmanager = yes<br>hasagent = yes<br>hassip = yes<br>hasiax = no<br>secret =<br>nat = yes<br>canreinvite = no<br>dtmfmode = rfc2833<br>insecure = no<br>pickupgroup = 1<br>signalling = fxo_ks<br>
flash = 750<br>rxflash = 1250<br>autoprov = no<br>label =<br>macaddress =<br>linenumber = 4<br>LINEKEYS = 1<br>managerread = system,call,log,verbose,command,agent,user,config,originate<br>managerwrite = system,call,log,verbose,command,agent,user,config,originate<br>
dahdichan = 10<br>disallow = all<br>allow = ulaw,gsm,alaw,speex,g726<br><br><br>[6005]<br>username = 6005<br>transfer = yes<br>mailbox = 6005<br>call-limit = 100<br>type = peer<br>fullname = Tim Hughes<br>registersip = no<br>
host = dynamic<br>callgroup = 1<br>type = peer<br>context = DLPN_DialPlan1<br>cid_number = 6005<br>hasvoicemail = yes<br>vmsecret =<br>email =<br>threewaycalling = yes<br>hasdirectory = yes<br>callwaiting = yes<br>hasmanager = yes<br>
hasagent = yes<br>hassip = yes<br>hasiax = no<br>secret =<br>nat = yes<br>canreinvite = no<br>dtmfmode = rfc2833<br>insecure = no<br>pickupgroup = 1<br>signalling = fxo_ks<br>flash = 750<br>rxflash = 1250<br>autoprov = no<br>
label =<br>macaddress =<br>linenumber = 5<br>LINEKEYS = 1<br>managerread = system,call,log,verbose,command,agent,user,config,originate<br>managerwrite = system,call,log,verbose,command,agent,user,config,originate<br>dahdichan = 11<br>
disallow = all<br>allow = ulaw,gsm,alaw,speex,g726<br><br>[6006]<br>username = 6006<br>transfer = yes<br>mailbox = 6006<br>call-limit = 100<br>type = peer<br>fullname = FAX<br>registersip = no<br>host = dynamic<br>callgroup = 1<br>
type = peer<br>context = DLPN_DialPlan1<br>cid_number = 6006<br>hasvoicemail = no<br>vmsecret =<br>email =<br>threewaycalling = no<br>hasdirectory = no<br>callwaiting = no<br>hasmanager = no<br>hasagent = yes<br>hassip = yes<br>
hasiax = no<br>secret =<br>nat = yes<br>canreinvite = no<br>dtmfmode = rfc2833<br>insecure = no<br>pickupgroup = 6<br>signalling = fxo_ks<br>flash = 750<br>rxflash = 1250<br>autoprov = no<br>label =<br>macaddress =<br>linenumber = 6<br>
LINEKEYS = 1<br>dahdichan = 12<br>disallow = all<br>allow = ulaw,gsm,alaw,speex,g726<br><br>[trunk_2]<br>trunkname = FAXTrunk<br>busydetect = yes<br>busycount = 3<br>busypattern = 500,500<br>ringtimeout = 8000<br>answeronpolarityswitch = no<br>
hanguponpolarityswitch = no<br>callprogress = no<br>progzone = us<br>usecallerid = yes<br>cidstart = ring<br>pulsedial = no<br>cidsignalling = bell<br>flash = 750<br>rxflash = 1250<br>mailbox =<br>callerid = asreceived<br>
dahdichan = 8<br>context = DID_trunk_2<br>group = 2<br>hasexten = no<br>hasiax = no<br>hassip = no<br>registeriax = no<br>registersip = no<br>trunkstyle = analog<br>disallow = all<br>allow = all<br>signalling = fxs_ks<br>
channel = 8<br>cidsignalling = bell<br>flash = 750<br>rxflash = 1250<br>mailbox = 6002<br>callerid = asreceived<br>dahdichan = 1,2,3,4,5,6,7<br>context = DID_trunk_1<br>group = 1<br>hasexten = no<br>hasiax = no<br>hassip = no<br>
registeriax = no<br>registersip = no<br>trunkstyle = analog<br>
<div>
<div></div>
<div class="h5"><br><br><br>&gt;&gt;&gt; Matt Sales &lt;<a href="mailto:msales@gmail.com">msales@gmail.com</a>&gt; 7/14/2009 05:47 PM &gt;&gt;&gt;<br>Bob, can you paste your /etc/dahdi/system.conf, users.conf, and extensions.conf? Also if you are connected to analog lines have you run fxotune?<br>
<br><br>On Tue, Jul 14, 2009 at 11:45 AM, Bob Crandell &lt;<a href="mailto:bob@assuredcomp.com">bob@assuredcomp.com</a>&gt; wrote:<br><br>Hi All,<br><br><br>Thanks to the help I&#39;m getting here I can now make calls and the voice quality sounds pretty good.<br>
<br><br>An incoming call does not get answered. This is the log:<br>Connected to Asterisk 1.6.0.9 currently running on PBX (pid = 5068)<br>Verbosity is at least 6<br>-- Starting simple switch on &#39;DAHDI/1-1&#39;<br>[Jul 14 08:33:01] NOTICE[5692]: chan_dahdi.c:7490 ss_thread: Got event 18 (Ring Begin)...<br>
[Jul 14 08:33:03] NOTICE[5692]: chan_dahdi.c:7490 ss_thread: Got event 2 (Ring/Answered)...<br>-- Executing [s@DID_trunk_1:1] ExecIf(&quot;DAHDI/1-1&quot;, &quot;1?SetCallerPres(unavailable)&quot;) in new stack<br>-- Auto fallthrough, channel &#39;DAHDI/1-1&#39; status is &#39;UNKNOWN&#39;<br>
-- Hungup &#39;DAHDI/1-1&#39;<br>-- Starting simple switch on &#39;DAHDI/1-1&#39;<br>[Jul 14 08:33:13] NOTICE[5697]: chan_dahdi.c:7490 ss_thread: Got event 18 (Ring Begin)...<br>[Jul 14 08:33:15] NOTICE[5697]: chan_dahdi.c:7490 ss_thread: Got event 2 (Ring/Answered)...<br>
-- Executing [s@DID_trunk_1:1] ExecIf(&quot;DAHDI/1-1&quot;, &quot;1?SetCallerPres(unavailable)&quot;) in new stack<br>-- Auto fallthrough, channel &#39;DAHDI/1-1&#39; status is &#39;UNKNOWN&#39;<br>-- Hungup &#39;DAHDI/1-1&#39;<br>
-- Starting simple switch on &#39;DAHDI/1-1&#39;<br>[Jul 14 08:33:29] WARNING[5704]: chan_dahdi.c:7634 ss_thread: CallerID returned with error on channel &#39;DAHDI/1-1&#39;<br>-- Executing [s@DID_trunk_1:1] ExecIf(&quot;DAHDI/1-1&quot;, &quot;1?SetCallerPres(unavailable)&quot;) in new stack<br>
-- Auto fallthrough, channel &#39;DAHDI/1-1&#39; status is &#39;UNKNOWN&#39;<br>-- Hungup &#39;DAHDI/1-1&#39;<br><br>It&#39;s says (Ring/Answered)... but it doesn&#39;t go to an extension or voice mail.<br><br><br>I have incoming calling rules defined. I&#39;ve tried directing the calls to a ring group, a voice mail and an extension. No joy.<br>
This is running on openSuSE 11.1 fully patched and running asterisk16-1.6.0.9-73.18.<br>Asterisk GUI-version : SVN-branch-2.0-r4970<br><br><br>Will you help me track this down?<br>Thanks<br><br><br><br><br>Bob Crandell<br>
Assured Computing, Inc.<br>541-868-0331<br>ComputerBase USA<br>541-349-0404<br><br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--/" target="_blank">http://www.api-digital.com--</a><br>
<br>asterisk-gui mailing list<br>To UNSUBSCRIBE or update options visit:<br><a href="http://lists.digium.com/mailman/listinfo/asterisk-gui" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-gui</a><br><br>
<br><br><br>_______________________________________________<br>--Bandwidth and Colocation Provided by <a href="http://www.api-digital.com--/" target="_blank">http://www.api-digital.com--</a><br><br>asterisk-gui mailing list<br>
To UNSUBSCRIBE or update options visit:<br>  <a href="http://lists.digium.com/mailman/listinfo/asterisk-gui" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-gui</a><br></div></div></blockquote></div><br>