Assistance regarding transfer along with call screening


I am using a macro with the Dial command to establish call screening. Call screening works fine but I am not able to do neither attended nor blind transfer after that. And also call screening and transfers work fine while using “p” option in Dial but I just cant use “p” option for some reasons.

Below is my dialplan entries
All users are assigned context=DLPN_DialPlan.

[DLPN_DialPlan] ;; This is the context which is assigned to all users.
include = CallingRule_DialLocal
include = CallingRule_DialOut

exten = _57XX,1,Goto(screentest,${EXTEN:1},1)

exten = _7XX,1,Playback(priv-recordintro) ;; Plays "please say your name after the tone"
exten = _7XX,n,Set(RECNAME=/tmp/${EPOCH})
exten = _7XX,n,Record(${RECNAME}.wav,0,3) ;; Record callers name
exten = _7XX,n,Dial(SIP/${EXTEN},10,tTwgmM(screen^${RECNAME}))
exten = _7XX,n,Voicemail(${EXTEN})

exten = s,1,Playback(priv-callpending) ;; Plays “You have a call from” to the called party
exten = s,n,Playback(${ARG1}) ;; Callers name
exten = s,n,Read(key,screen-callee-options,1)
exten = s,n,GotoIf($["${key}"=“3”]?30:+1)
exten = s,n,GotoIf($["${key}"=“2”]?40:+1)
exten = s,n,GotoIf($["${key}"=“1”]?50:+1)
exten = s,30,Set(MACRO_RESULT=ABORT) ;; Aborts
exten = s,40,Set(MACRO_RESULT=GOTO:sendtovoicemail^s^1)
exten = s,50,System(/bin/rm ${ARG1}.wav) ;; removes recording and bridges the call

Now the above works fine for call screening but after the bridging both channels when any party presses “#” to blind transfer he gets the dialtone and after pressing the digits it says extension “X…” not found in context “screentest”. But I think it should look at “DLPN_DialPlan” context and not “screentest” for that extension which is the way it works when i use “p” option with the dial and not the “M”.

Please tell me if there is something wrong in what i am trying to do. I can’t use “p” in Dial :smile:


The asterisk version I am using is Asterisk on a 32 bit Linux

Hello guys,

I am sure that I have come to the right place :smile:.
Any advice is appreciated.