[Freeswitch-users] issue in playing background music while carrying out external commands
Shamun toha md
shamun.toha at gmail.com
Fri Sep 10 05:18:44 PDT 2010
$records = Application_Model_Freeswitch::freeSwitch("api uuid_hold
$__UUID__");
$records = Application_Model_Freeswitch::freeSwitch("api uuid_hold off
$__UUID__");
Thanks
Shamun
On Fri, Sep 10, 2010 at 1:44 PM, Chaitanya Bhatt // Viva <
chaitanya at vivainfomedia.com> wrote:
> 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 at vivainfomedia.com
>
> Viva Infomedia: Awarded as Best SME (E-Commerce) at CNBC Emerging India
> Awards 2009
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100910/3a30ea82/attachment-0001.html
More information about the FreeSWITCH-users
mailing list