[Asterisk-Users] answer delay
Peter J Dean
peter.john.dean at gmail.com
Mon Apr 24 15:49:32 MST 2006
You are stilling going to need to answer the call before you can play
any message or music or other.
Here is a start for you.
So lets look at it logically;
- Advise the caller of the charges and conditions.
- The caller must has a option to acknowledge they understand and
accept the charges
- (Optionally) The caller has can repeat the charges and conditions
message.
This no leads us towards a simple IVR system. Below is an example,
and you will need to clean it up.
You can use the ResetCDR() command to reset the time used, and
continue from there.
So, extending on the below (untested, but you get the general idea);
[context_askcustomerbeforechargingthem]
exten => xxxxxxxxx,1,Answer
exten => xxxxxxxxx,n,Playback(audio)
exten => xxxxxxxxx,n,Playback
(press_one_to_accept_the_charges_and_conditions)
exten => xxxxxxxxx,n,Playback
(just_simply_hangup_if_you_do_not_wish_to_proceed)
exten => xxxxxxxxx,n,WaitExten(5)
exten => xxxxxxxxx,n,Playback(out)
exten => xxxxxxxxx,n,Hangup
exten => _1,1,Playback(thankyou_for_selecting_our_service_or_whatever)
exten => _1,n,ResetCDR()
exten => _1,n,Goto or do whatever next from here
On 25/04/2006, at 8:30 AM, FaberK wrote:
> Hi Peter,
> but if I "Answer", I'll be billed, isn't it?
> What I need is to play an announce of the service cost, so that if
> the guest do not want to go ahead for the cost, can hungup without
> pay.
> I'll try your solution.
>
> Thanks.
>
> 2006/4/25, Peter J Dean <peter.john.dean at gmail.com>: You need to
> have an established and open channel before the audio can
> be played.
>
> exten => xxxxxxxxx,1,Answer
> exten => xxxxxxxxx,n,Playback(audio,noanswer)
> exten => xxxxxxxxx,n,BackGround(out)
> exten => xxxxxxxxx,n,Hangup
>
> On 24/04/2006, at 10:25 PM, FaberK wrote:
>
> > Hi Folks,
> > using this:
> > exten => xxxxxxxxx,1,Playback(audio,noanswer)
> > exten => xxxxxxxxx,2,Answer
> > exten => xxxxxxxxx,3,BackGround(out)
> > exten => xxxxxxxxx,103,Hangup
> >
> > I'm not billed and remain connected, but the file 'audio' is not
> > played...well I do not ear it.
> > But after, it pass correctly to answer and I can ear the 'out'
> > audio file.
> >
> > Any idea/suggestion???
> >
> > Thanks!
> >
> > 2006/3/21, FaberK <f.faberk at gmail.com >:
> > Hi,
> > I've tryed it using my mobile and I've been charged.
> > Maybe, my mobile operator(Vodafone) does not support it?
> >
> > Thanks again.
> >
> > p.s.: hi John, I love to learn(books, google, lists, ecc...) and
> > cooperation and I can say that everytime I learn something new. :o)
> >
> > 2006/3/21, CC Jay <jjcoolio at gmail.com>:
> > Not sure about 1.2.4 but with 1.0.9, you'll need to add "noanswer"
> > to playback since playback will try to answer the line, i.e.,
> > exten => 5551234,1,Playback(you-wont-be-billed-for-hearing-this,
> > noanswer)
> > exten => 5551234,n,Answer
> > etc.
> >
> >
> >
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> >
> >
> >
> >
> >
> > --
> > .:FaberK:.
> >
> >
> >
> > --
> > .:FaberK:.
> > _______________________________________________
> > --Bandwidth and Colocation provided by Easynews.com --
> >
> > Asterisk-Users mailing list
> > To UNSUBSCRIBE or update options visit:
> > http://lists.digium.com/mailman/listinfo/asterisk-users
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>
>
> --
> .:FaberK:.
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list