Hii We are trying to play some hold music to that caller in freeswitch while carrying out some external task like lengthy database query. We are using ESL to handle incoming calls(using outbound socket to a perl script). We had tried bgapi with start_local_stream but call hangs up immediately. $conn->execute("event", "plain all"); $conn->bgapi("start_local_stream","default"); while(1) { my $e = $conn->recvEventTimed(100); $e = $conn->recvEvent(); my $event_name; if ($e) { my $h = $e->firstHeader(); while ($h) { if($h eq "Event-Name") { $event_name = $e->getHeader($h); } #log header $h = $e->nextHeader(); } } } We had tried valet_park but getting required result. Can someone please guide us how to hold call with music or can provide some code snippet ? Incase of any further queries, Please feel free to mail me or contact me on the numbers provided below. Thanks & Regards, Chaitanya Bhatt Software Engineer. Viva Infomedia Pvt. Ltd. 242, Oshiwara Industrial Centre, New Link Road, Opp. Oshiwara Bus Depot, Goregaon West, Mumbai 400104. Direct: +91.22.40310356 Board: +91.22.40310310 Email : chaitanya@vivainfomedia.com Viva Infomedia: Awarded as Best SME (E-Commerce) at CNBC Emerging India Awards 2009