Mute during call distribution


I am new to asterisk,
I need to create a dialplan for call patch. after call patch I need to mute both the person and play one music file.

Please guide me for that

Thanks in advance

I could help you but I’m not clear what is a call patch. According to this document it is like a warm transfer. Could you please describe the whole call flow?

I mean call patch = Call Distribution.
I need to call caller1,
caller1 enter number of caller2,
System should call to caller2,
System should play a music file for them,
after that they can communicate (talk) with each other.

You are still using non-standard terminology.

If you want to start an outgoing call, you use Originate or call files. If you want the first party on such a call to key in the final destination number you start the B side on something like the s extension then use the Background and WaitExten applications. If you want to play music in place of ringback, youi use the m option of dial. If you want to play music after answer, you use the subroutine or goto options on Dial.

Thanks David,
I will try it out.

I have created the following dialplans. I am able to originate call for caller1 and caller2, but how can both the caller talk?
Once both the caller listen jingle1, they should be able talk.
Can anyone please guide.

exten => s,1,Verbose(“Started …”)
exten => s,n,Answer
exten => s,n(getmobile),Read(mobileno,entermobile,10,10)
exten => s,n,ExecIf($["${LEN(${mobileno})}" != “10”]?Playback(invalidmobile))
exten => s,n,ExecIf($["${LEN(${mobileno})}" != “10”]?Goto(lastend))
exten => s,n,ExecIf($["${LEN(${mobileno})}" == “10”]?Goto(callfriend))

exten => s,n(callfriend),BackgroundDetect(jingle1)
exten => s,n,Dial(Dahdi/g0/0${mobileno},U(dialplan2))

exten => h,1,GotoIf($["${FAILEDCALLED}"=“1”]?hangupover)
exten => h,n(hangupover),Verbose(“Hangup Over”);

exten => s,1(dialplan2),set(GOSUB_RESULT=CONGESTION)
exten => s,n,Playback(jingle1)
exten => s,n,Return

Hi David,

Thanks for your guidance.
I did it, below is my dialplan.

exten => s,1,Verbose(“Dialplan3…”)
exten => s,n,Answer()
exten => s,n,Read(mobileno,entermobile,10,10)
exten => s,n,Dial(Dahdi/g0/0${mobileno},60,A(jingle1))
exten => s,n,Verbose(“Call Over”)
exten => s,n,Hangup()