[Freeswitch-users] issue in playing background music while carrying out external commands

Chaitanya Bhatt // Viva chaitanya at vivainfomedia.com
Fri Sep 10 04:44:25 PDT 2010


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

$conn->execute("event", "plain all");
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 at vivainfomedia.com

Viva Infomedia: Awarded as Best SME (E-Commerce) at CNBC Emerging India
Awards 2009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100910/7241bb36/attachment.html 

More information about the FreeSWITCH-users mailing list