[asterisk-users] Dial String command after audio background

2010-01-17 Thread Thomas Perron
exten = s,1,Answer()
exten = s,n,Background(astcc-please-enter-your)
exten = s,n,Background(zip-code)
exten = s,n,WaitExten(5)
exten = s,n,Read(NUMBER,,5)
exten = s,n,SayDigits(${NUMBER})
exten = 22042,n,Dial(SIP/sipvendor/111,120,A(ginger3))
exten = 22601,n,Dial(SIP/sipvendor/111,120,A(ginger3))  ;
x/ winchester
exten = 21230,n,Dial(SIP/sipvendor/111,120,A(ginger3))  ;
Mobile/Baltimore


I want to background to play please enter your zip code
Then say the digits pressed (5 digits)
Then map the five digits to an extension as shown to engage a Dial string
Examples above are not working.
Do I need an Answer() entry first for each zip code (extension)?

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Dial String command after audio background

2010-01-17 Thread Timm Korte
Am 17.01.2010 18:39, schrieb Thomas Perron:
 exten = s,1,Answer()
 exten = s,n,Background(astcc-please-enter-your)
 exten = s,n,Background(zip-code)
 exten = s,n,WaitExten(5)
 exten = s,n,Read(NUMBER,,5)
 exten = s,n,SayDigits(${NUMBER})

you might want to add a GoTo(${NUMBER},1)
as well as start your other extensions with

exten = 22042,1,Dial(SIP/sipvendor/111,120,A(ginger3))
then

 exten = 22042,n,Dial(SIP/sipvendor/111,120,A(ginger3))
 
 I want to background to play please enter your zip code
 Then say the digits pressed (5 digits)
 Then map the five digits to an extension as shown to engage a Dial string
 Examples above are not working.

Because your're staying in the s extension - you need to switch to another 
extension by using (for example, since there are other ways...)
goto.

 Do I need an Answer() entry first for each zip code (extension)?

Nope - just give each a real id or label (instead of n) so you can address 
them via goto.

Timm

-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [asterisk-users] Dial String command after audio background

2010-01-17 Thread Thomas Perron
veilen danke timm
cheers
tom

On Sun, Jan 17, 2010 at 2:10 PM, Timm Korte
korte-ast-us...@easycrypt.de wrote:
 Am 17.01.2010 18:39, schrieb Thomas Perron:
 exten = s,1,Answer()
 exten = s,n,Background(astcc-please-enter-your)
 exten = s,n,Background(zip-code)
 exten = s,n,WaitExten(5)
 exten = s,n,Read(NUMBER,,5)
 exten = s,n,SayDigits(${NUMBER})

 you might want to add a GoTo(${NUMBER},1)
 as well as start your other extensions with

 exten = 22042,1,Dial(SIP/sipvendor/111,120,A(ginger3))
 then

 exten = 22042,n,Dial(SIP/sipvendor/111,120,A(ginger3))

 I want to background to play please enter your zip code
 Then say the digits pressed (5 digits)
 Then map the five digits to an extension as shown to engage a Dial string
 Examples above are not working.

 Because your're staying in the s extension - you need to switch to another 
 extension by using (for example, since there are other ways...)
 goto.

 Do I need an Answer() entry first for each zip code (extension)?

 Nope - just give each a real id or label (instead of n) so you can address 
 them via goto.

 Timm

 --
 _
 -- Bandwidth and Colocation Provided by http://www.api-digital.com --

 asterisk-users mailing list
 To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


-- 
_
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users