Posted: Thu Sep 27, 2007 12:59 am Post subject: [Asterisk-bsd] Extension Problems
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.
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.
Here is the extension with the problem:
Quote:
[incoming]exten => s,1,Wait,20 ; Wait 20 secondsexten => s,n,Answer() ; Answer the callexten => s,n,Set(TIMEOUT(digit)=5) ; Set Digit Timeout to 5 secondsexten => s,n,Set(TIMEOUT(response)=7) ; Set Response Timeout to 10 secondsexten => s/7605320417,n,Goto(blocking,s,1) ; Block This Pesky Telemarketerexten => s/9012792345,n,Goto(wife,s,1) ; Take wife's callexten => s,n(restart),BackGround(my_welcome) ; Play the initial
welsome messageexten => s,n,WaitExten(7) ; Wait for an extension to be dialed.exten => s,n,Voicemail(2000@default,u) ; Send Caller to VoicemailThese are the messages that appear on the CLI screen when a call comes in:asterisk# -- Starting simple switch on 'Zap/1-1' -- Executing [s@default:1] Wait("Zap/1-1", "20") in new stack -- Executing [s@default:2] Answer("Zap/1-1", "") in new stack -- Executing [s@default:3] Set("Zap/1-1", "TIMEOUT(digit)=5") in new stack -- Digit timeout set to 5 -- Executing [s@default:4] Set("Zap/1-1", "TIMEOUT(response)=7") in new stack -- Response timeout set to 7 == Auto fallthrough, channel 'Zap/1-1' status is 'UNKNOWN' -- Hungup 'Zap/1-1' -- Starting simple switch on 'Zap/1-1'[Sep 25 20:45:21] WARNING[5592]: chan_zap.c:6515 ss_thread: CallerID returned with error on channel 'Zap/1-1' -- Executing
[s@default:1] Wait("Zap/1-1", "20") in new stack == Spawn extension (default, s, 1) exited non-zero on 'Zap/1-1' -- Hungup 'Zap/1-1'
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.
Posted: Thu Sep 27, 2007 3:14 am Post subject: [Asterisk-bsd] Extension Problems
Perhaps it's a typo, but shouldn't the slashes be commas?
-Aaron
Frank Griffith wrote:
Quote:
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.
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.
Here is the extension with the problem:
[incoming]
exten => s,1,Wait,20 ; Wait 20 seconds
exten => s,n,Answer() ; Answer the call
exten => s,n,Set(TIMEOUT(digit)=5) ; Set Digit Timeout to 5 seconds
exten => s,n,Set(TIMEOUT(response)=7) ; Set Response Timeout to 10 seconds
exten => s/7605320417,n,Goto(blocking,s,1) ; Block This Pesky Telemarketer
exten => s/9012792345,n,Goto(wife,s,1) ; Take wife's call
exten => s,n(restart),BackGround(my_welcome) ; Play the initial
welsome message
exten => s,n,WaitExten(7) ; Wait for an extension to be dialed.
exten => s,n,Voicemail(2000@default,u) ; Send Caller to Voicemail
These are the messages that appear on the CLI screen when a call comes in:
asterisk# -- Starting simple switch on 'Zap/1-1'
-- Executing [s@default:1] Wait("Zap/1-1", "20") in new stack
-- Executing [s@default:2] Answer("Zap/1-1", "") in new stack
-- Executing [s@default:3] Set("Zap/1-1", "TIMEOUT(digit)=5") in new stack
-- Digit timeout set to 5
-- Executing [s@default:4] Set("Zap/1-1", "TIMEOUT(response)=7") in new stack
-- Response timeout set to 7
== Auto fallthrough, channel 'Zap/1-1' status is 'UNKNOWN'
-- Hungup 'Zap/1-1'
-- Starting simple switch on 'Zap/1-1'
[Sep 25 20:45:21] WARNING[5592]: chan_zap.c:6515 ss_thread: CallerID returned with error on channel 'Zap/1-1'
-- Executing
[s@default:1] Wait("Zap/1-1", "20") in new stack
== Spawn extension (default, s, 1) exited non-zero on 'Zap/1-1'
-- Hungup 'Zap/1-1'
------------------------------------------------------------------------
Be a better Globetrotter. Get better travel answers
<http://us.rd.yahoo.com/evt=48254/*http://answers.yahoo.com/dir/_ylc=X3oDMTI5MGx2aThyBF9TAzIxMTU1MDAzNTIEX3MDMzk2NTQ1MTAzBHNlYwNCQUJwaWxsYXJfTklfMzYwBHNsawNQcm9kdWN0X3F1ZXN0aW9uX3BhZ2U-?link=list&sid=396545469>from
someone who knows.
Yahoo! Answers - Check it out.
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.488 / Virus Database: 269.13.31/1031 - Release Date: 9/26/2007 12:12 PM
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
I am pretty sure that the syntax is correct. Unless you know something else about it. I found these examples in some Asterisk docs on line. The funny thing is if I only have one of these lines in the extension it will work, sometimes, but it definitely won't work if both of them are in the extension. It's beyond me so I'll keep digging for information.
Thanks anyway for your reply.
Aaron Seelye <aseelye-lists@eltopia.com> wrote:
Quote:
Perhaps it's a typo, but shouldn't the slashes be commas?
-Aaron
Frank Griffith wrote:
Quote:
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.
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.
Here is the extension with the problem:
[incoming]
exten => s,1,Wait,20 ; Wait 20 seconds
exten => s,n,Answer() ; Answer the call
exten => s,n,Set(TIMEOUT(digit)=5) ; Set Digit Timeout to 5 seconds
exten => s,n,Set(TIMEOUT(response)=7) ; Set Response Timeout to 10 seconds
exten => s/7605320417,n,Goto(blocking,s,1) ; Block This Pesky Telemarketer
exten => s/9012792345,n,Goto(wife,s,1) ; Take wife's call
exten => s,n(restart),BackGround(my_welcome) ; Play the initial
welsome message
exten => s,n,WaitExten(7) ; Wait for an extension to be dialed.
exten => s,n,Voicemail(2000@default,u) ; Send Caller to Voicemail
These are the messages that appear on the CLI screen when a call comes in:
asterisk# -- Starting simple switch on 'Zap/1-1'
-- Executing [s@default:1] Wait("Zap/1-1", "20") in new stack
-- Executing [s@default:2] Answer("Zap/1-1", "") in new stack
-- Executing [s@default:3] Set("Zap/1-1", "TIMEOUT(digit)=5") in new stack
-- Digit timeout set to 5
-- Executing [s@default:4] Set("Zap/1-1", "TIMEOUT(response)=7") in new stack
-- Response timeout set to 7
== Auto fallthrough, channel 'Zap/1-1' status is 'UNKNOWN'
-- Hungup 'Zap/1-1'
-- Starting simple switch on 'Zap/1-1'
[Sep 25 20:45:21] WARNING[5592]: chan_zap.c:6515 ss_thread: CallerID returned with error on channel 'Zap/1-1'
-- Executing
[s@default:1] Wait("Zap/1-1", "20") in new stack
== Spawn extension (default, s, 1) exited non-zero on 'Zap/1-1'
-- Hungup 'Zap/1-1'
------------------------------------------------------------------------
Be a better Globetrotter. Get better travel answers
from
someone who knows.
Yahoo! Answers - Check it out.
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.488 / Virus Database: 269.13.31/1031 - Release Date: 9/26/2007 12:12 PM
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum