Summary:ASTERISK-08675: Privacy screening mode doesn't answer call before recording. Should do it.
Reporter:Lionel Elie Mamane (lmamane)Labels:
Date Opened:2007-01-28 16:51:53.000-0600Date Closed:2007-06-30 09:20:02
Versions:Frequency of
Environment:Attachments:( 0) record_answer.patch
Description:Context: an incoming call on a channel that supports in-band progress notification.

When dialing with privacy screening (P dial option) in the situation that one has already issued a Progress() on the channel, but not Answer(), the "record caller giving his name" part doesn't, as Progress() gives audio TO the caller, not FROM the caller.

I wish to avoid to issue a "Answer()" before the dial because if Asterisk already has a stored intro for the caller, then it is not necessary and makes the caller start paying for the call earlier than necessary. In particular, if the callee does not answer (because he is absent or something like that), the caller could avoid paying for the call completely.

A similar scenario arises for voicemail (want to answer the channel only when recording message, not when playing announce).


The attached patch works for me. Patch is so trivial/small that I consider no copyright reasonably holds on it.

If there are situations where recording should _not_ answer the channel (I don't think so, but you are the experts), this needs more work, e.g. a option like the "noanswer" of Playback().

You probably also want to do something with the returned result of ast_answer().
Comments:By: Serge Vecher (serge-v) 2007-02-01 08:48:24.000-0600

should you check to see whether the channel has been answered already?

By: Joshua C. Colp (jcolp) 2007-02-16 21:57:16.000-0600

Fixed in 1.2 as of revision 55153, 1.4 as of revision 55154, and trunk as of revision 55155.