Recording call triggered remotly

hi all…

i need to do this: start a call from asterisk to person A and when person A dials an extension another call is being launched to person B. until here i’m ok. now the next step is that the second call - the one to person B has to be monitored and recorded IF the person B agrees on it after listening to a recording that is asking just that - do you want to be recorded or not?.
how can i achieve this? can somebody please point me in the right direction…

thanks…

do you want B to acknowledge via the keypad ? or just when they connect to A ?

There is 2 commands in Asterisk:

Monitor
Record.

You should be go arround them.

yes… after they hear a prompt to do so. possible?!