I have made a default incoming extension that works pretty good. But I decided to make some changes that route certain calls through to other extensions based on the caller's id number.<br><br>The first couple of tests worked but then it didn't and I'm not sure what I've got wrong. Calls from any number just end up autofailthrough with no answer.<br><br> Here is the extension with the problem:<br><br><pre>[incoming]<br>exten => s,1,Wait,20 ; Wait 20 seconds<br>exten => s,n,Answer() ; Answer the call<br>exten => s,n,Set(TIMEOUT(digit)=5) ; Set Digit Timeout to 5 seconds<br>exten => s,n,Set(TIMEOUT(response)=7) ; Set Response Timeout to 10 seconds<br>exten => s/7605320417,n,Goto(blocking,s,1) ; Block This Pesky Telemarketer<br>exten => s/9012792345,n,Goto(wife,s,1) ; Take wife's call<br>exten => s,n(restart),BackGround(my_welcome) ; Play the initial
welsome message<br>exten => s,n,WaitExten(7) ; Wait for an extension to be dialed.<br>exten => s,n,Voicemail(2000@default,u) ; Send Caller to Voicemail</pre><br><pre>These are the messages that appear on the CLI screen when a call comes in:<br><br><br>asterisk# -- Starting simple switch on 'Zap/1-1'<br> -- Executing [s@default:1] Wait("Zap/1-1", "20") in new stack<br> -- Executing [s@default:2] Answer("Zap/1-1", "") in new stack<br> -- Executing [s@default:3] Set("Zap/1-1", "TIMEOUT(digit)=5") in new stack<br> -- Digit timeout set to 5<br> -- Executing [s@default:4] Set("Zap/1-1", "TIMEOUT(response)=7") in new stack<br> -- Response timeout set to 7<br> == Auto fallthrough, channel 'Zap/1-1' status is 'UNKNOWN'<br> -- Hungup 'Zap/1-1'<br> -- Starting simple switch on 'Zap/1-1'<br>[Sep 25 20:45:21] WARNING[5592]: chan_zap.c:6515 ss_thread: CallerID returned with error on channel 'Zap/1-1'<br> -- Executing
[s@default:1] Wait("Zap/1-1", "20") in new stack<br> == Spawn extension (default, s, 1) exited non-zero on 'Zap/1-1'<br> -- Hungup 'Zap/1-1'</pre><p> 
<hr size=1>Be a better Globetrotter. <a href="http://us.rd.yahoo.com/evt=48254/*http://answers.yahoo.com/dir/_ylc=X3oDMTI5MGx2aThyBF9TAzIxMTU1MDAzNTIEX3MDMzk2NTQ1MTAzBHNlYwNCQUJwaWxsYXJfTklfMzYwBHNsawNQcm9kdWN0X3F1ZXN0aW9uX3BhZ2U-?link=list&sid=396545469">Get better travel answers </a>from someone who knows.<br>Yahoo! Answers - Check it out.