;this asks the first question (based on your recording) and stores them in variable
;this line puts the two answers together and separates them with a | symbol.
exten => s,n(finish),set(answer=${answer1})
;this saves the answers into the CDR field of âuserfieldâ
exten => s,n,Set(CDR(userfield)=${answer})
exten => s,n,system(mail -s âPost Call Evaluation Surveyâ [email protected] <<< â\n\tHi Team,\n\tYou have a Post Call Evaluation Response from the Client ${CALLERID(name)}.\n\tPlease Find Details Below:\n\tCall-ID-Name - ${CALLERID(name)}\n\tCall-ID-Number - ${CALLERID(number)}\n\tAnswering Peer - ${BRIDGEPEER}\n\tCall-Rec - ${UNIQUEID}\n\tResponses: ${answer}\n\n\tThanks,\n\tRegards,\n\tVoIP Teamâ)
;
;play a thankyou message. you can just remove this line for anyone who doesnât want the thankyou.
exten => s,n,playback(/var/lib/asterisk/sounds/custom/thankyouforyourtime)
exten => s,n,hangup()
I am getting the file recording information but I want to attach that call recording as well.
Can anyone help me with this how can i get the call recording attached to that email
thanks for the response. Iâll check that out and share the status.
I am sending the email after the survey in the below format but need to change few information.
Current Email Format:
Response: 1 =Excellent
2 =Good
3 =Bad
Subject: Post Call Evaluation Survey
Hi Team,
You have a Post Call Evaluation Response from the Client Queue Label-Client Number or Name.
Please Find Details Below:
Call-ID-Name - Queue Label-CallerID of the Caller
Call-ID-Number - CallerID Number of the Caller
Answering Peer - Local/[email protected];1
Call-Rec - 1599666835.148874
Responses: 3
I need to modify the email response in this format. can anyone help. I am having trouble in separating the peer name and Extension from this output info
and need to change the Response value to appear as Excellent good or Bad in readable form.
Below you can find the format required:
email subject: Post Call Evaluation Survey - Answering Agent Name - Quality: Good
Notification body can be :
Hi Team,
You have received a Post Call Evaluation Response from Client Name or CallerID.
Call-ID-Number - 1000
Answering Agent - Answering Agent Name (Ext.No)
Call-Rec - 1599152757.60891
Quality: Good
If the read variable =1 go to set ${RESPONSE} = Excellent otherwise
If the read variable =2 go to set ${RESPONSE} = Good otherwise
If the read variable =3 go to set ${RESPONSE} = Bad otherwise
set ${RESPONSE} = NA