I am setting up a system which needs to do the following and am wondering the best way to go about it:
Requirement:
A caller will be brought through a serious of IVRs and will enter which option they want with normal DTMF. At a certain point the caller will be transfered to an Agent. Before the agent talks to the caller he/she will need to be played a recording. If at any stage the caller hangs up an anouncement will need to be played to the Agent.
The playing the announcements are ok but my problem is more with the hangup part, how to keep a call active after 1 party hangs up? I was thinking of using MeetMe but this causes its own problems like how to get the caller and agent into the meetme room and how to make the recordings dynnamic.
I am not using freepbx or anything, everything will be done in asterisk backend. Just wondering if anybody would have any suggestions?
Thanks for that. I have made progress with your suggestion. There is one problem though.
Everything works in this scenario:
Caller calls and is connected to an Agent
Agent Hangs up
Caller is played a message
However if the caller hangs up first the agent is not played a message.
Would anybody know how to fix this? One way i tried was to get an agi script to catch signal.SIGHUP to stop it ending the call but i cant get it to work. I have included a format of my code below