[Freeswitch-users] how do I play music on hold for A-leg while IVRing with B-leg
Greg Buzzard
greg.buzzard at yahoo.com
Fri Dec 30 20:59:33 MSK 2011
Hi All, new to FreeSwitch, great software! Read earlier posts, bought FS book and am about half-way through it and still have a question.
Problem context: I'm trying to do a form of call screening for home use using a Lua script. I record a "self-intro" message from calling party (A-leg), would then like to play hold music for A-leg while creating new session and doing IVR dance with called party (B-leg). IVR objective is to see if B-leg wishes to accept, add caller-ID to whitelist or blacklist, and/or send to voicemail, etc. I have all of this working except the ability to play hold music to A-leg before either bridging them, sending them to voicemail or playing a message and dropping them.
Specific problem: I don't have my head wrapped around the "clean" approach to addressing this problem. I.e., seems like I may want to "park" the A-leg (with music), while I do the IVR with B-leg. Then either: (1) unpark A-leg and bridge to B-leg or (2) hang-up B-leg, unpark A-leg and send to VM or (3) other embellishments where I add caller-ID (if it exists) to either white or black lists and/or play recording to telemarketers to leave me alone (with no VM), etc. If this is a good approach, getting a few pointers on key commands/apps to use would be great.
FWIW, my first simple-minded approach to transfer caller (A-leg) to hold-music extension while connecting/IVRing with B-leg didn't work as execution of the transfer was held until the IVRing was done). Similar to what I saw in some earlier postings. If I get this figured out, I'm happy to summarize and post useful snippets to the email archive, wiki page or wherever, when done.
-g
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20111230/448968e0/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list