[Asterisk-Users] Background() command

John Millican john at millican.us
Fri Sep 17 15:59:37 MST 2004


Use Read instead of background
CLI> show application Read

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com]On Behalf Of Paul Penrod
Sent: Friday, September 17, 2004 6:53 PM
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Background() command


Folks,

Apologies ahead of time if this has already been asked (read the list for
the last month looking
for something similar).

I have been trying to get the Background command to work with no joy yet.

Here is what I am trying to do:

1. Answer the call.
2. Play the message in the background, while waiting on DTMF from user.
3. If I get a "1", then interrupt the message and dial the phone number
listed
     at extension "1", otherwise play "invalid extension" and cycle back.

Here is what I have so far:

* note: phone numbers changed to "generic"

[message]
exten => s,1,Answer()
exten => s,2,Wait(2) 	;Pause to let the user end catch up with the
connection
exten => s,3,Background(demo-congrats)
exten => s,4,Goto(3)

exten => t,1,Playback(vm-goodbye)
exten => t,2,Hangup()

exten => i,1,Playback(pbx-invalid)
exten => i,2,Goto(s,3)

exten => 1,1,Playback(transfer)
exten => 1,2,Dial(SIP/4805551212/20)

[incoming]

exten => 8665551212,1,Goto(message,s,1)

What I get is:

1. The number is answered and the demo-congrats file plays.
2. No matter what button I press on the phone, the file continues to play
and recycle when it's done.

Question(s):

1. Is there a proper way to configure this?
2. Am I missing a configuration step somewhere in the one of the conf files.

Thanks in advance,

...Paul

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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.756 / Virus Database: 506 - Release Date: 9/8/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.756 / Virus Database: 506 - Release Date: 9/8/2004




More information about the asterisk-users mailing list