Alex Barnes
2005-Jan-31 07:37 UTC
[Asterisk-Users] Announcement to caller when called party haspicked up - without initial Answer()?
> -----Original Message----- > From: David Liu [mailto:david@deltapath.com] > Sent: 31 January 2005 14:34 > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [Asterisk-Users] Announcement to caller when > called party haspicked up - without initial Answer()? > > > This is super easy to do. All you need to do is to put that > announcement in > a MP3 and set a musiconhold class for that incoming Zap channel. Then > basically when ever that PSTN number rings, Asterisk will > play the MP3 > stream "Your call may be monitored or recorded, please hangup > if you do not > agree...etc" in a loop until the line is answered. Caller > doesn't pay a > single dime to listen to your announcement(s). So now you > have announcement > on ringing! > > David Liu > Hong Kong > >To play music on hold first the call would need to be answered!?!?!? Its straight forward to play an announcement to a caller just prior to dialing an extension. However what you need to do is establish whether a channel is infact busy before issuing the Answer() command. I suspect that this is either not possible or would require some huge dirty hack. But someone more knowledgable than myself could tell you am sure. That aside, TBH I think as a customer I would prefer to pay the couple of pence to wait on hold (knowingly) / be asked to leave a message / be told I am X in queue / etc than to only hear ringing. After about 20seconds of ringing I would give up. Being put on hold I would be more forgiving. And whats more important to you, customers that give up and look elsewhere or customers that have to pay for 30-60seconds of holding IF they choose to. Also I was under the impression that in Europe calls are charged as soon as you start ringing and not on pickup (this may be out of date as its been a while since my school skiing trip ;-P ) HTH alex This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination, distribution or copying of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.
Peter Svensson
2005-Jan-31 07:53 UTC
[Asterisk-Users] Announcement to caller when called party haspicked up - without initial Answer()?
On Mon, 31 Jan 2005, Alex Barnes wrote:> Also I was under the impression that in Europe calls are charged as soon > as you start ringing and not on pickup (this may be out of date as its > been a while since my school skiing trip ;-P )Not in all countries at least. Sweden has always had the charge start only on answer. I expect most of Europe to use a similar convention. At least I have never encountered a payphone in Europe that consumed my coins before the line was answered. Peter
Bob Goddard
2005-Jan-31 08:07 UTC
[Asterisk-Users] Announcement to caller when called party haspicked up - without initial Answer()?
On Monday 31 January 2005 14:37, Alex Barnes wrote: [...]> Also I was under the impression that in Europe calls are charged as soon > as you start ringing and not on pickup (this may be out of date as its > been a while since my school skiing trip ;-P )I'm not sure that has ever been the case. B
interna
2005-Jan-31 10:01 UTC
[Asterisk-Users] Announcement to caller when called party haspicked up - without initial Answer()?
Stefan if I understood what you need, maybe this works... MSG_FILE=/var/spool/asterisk/.... exten => s,1,Dial(SIP/MyPhone|60|M(playmessage^${MSG_FILE})) [macro-playmessage] exten => s,1,Wait(0.5) exten => s,2,Playback(${ARG1}) exten => s,3,SetVar(MACRO_RESULT=CONTINUE) I didn?t try it but I think this should work... pls let me know if it did in fact work... (if u want u can do it off list) bye, M. ----- Original Message ----- From: "Stefan Gofferje" <stefan@gofferje.homelinux.org> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Monday, January 31, 2005 11:45 AM Subject: Re: [Asterisk-Users] Announcement to caller when called party haspicked up - without initial Answer()?> Remco Barende schrieb: > > What you want is impossible! > > > > How can you expect Asterisk to play a message to the caller without > > answering the phone? > > You got me wrong... Asterisk should answer the call not initially but > when the called party picked up. > > Incoming call > | > | > send ring indicator > | > | > called party picks up receiver ---> yes ----> answer, announce, bridge > | > no > | > Congestion on timeout > > -- > (o_ Stefan Gofferje | Linux Systems Specialist > //\ Reg'd Linux User #247167 | SuSE Certified Linux Trainer > V_/_ Linux is like a Wigwam - No gates, no windows, Apache inside > > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > lists.digium.com/mailman/listinfo/asterisk-users >