hi,
I am just eager to know is this scenario possible or not ? Any help and comment will be appreciated.
Inbound call comes in to my asterisk server, the caller hears the ringing tone. Meanwhile my asterisk server calls me in and prompts me for the accept the call or decline ? if i choose decline i want to hear what is caller is saying on the phone without answering the call?
[local-exten]
exten => _XX.,1,NooP
exten => _XX.,n,Dial(SIP/19010|TtroM(accept-decline))
exten => _XX.,n,hangup
[macro-accept-decline]
exten => s,1,NooP
exten => s,n,Read(ACCEPT|incoming-call|1)
exten => s,n,GotoIf($["${ACCEPT}" = “1” ] ?yes:no)
exten =>s,n(no),MACROEXIT
exten => s,n(yes),SET(MACRO_RESULT=) ; call connects
now how can i listen to the caller without answering the incoming call?