[Voiceglue] Solution for transfer

rajesh ganji rajesganji at gmail.com
Sun Feb 1 23:49:27 EST 2009


Hi, We also got trouble with transfer tag, If we play audio before transfer,
it used to be get disconnected, we found solution for that, just try code
given below,
Note: make changes in code as per you
__________________________________________________________________________________
<?xml version="1.0"?>

<vxml xmlns="http://www.w3.org/2001/vxml"
    xmlns:conf="http://www.w3.org/2002/vxml-conformance" version="2.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.w3.org/2001/vxml
http://www.w3.org/TR/voicexml20/vxml.xsd">

    <!-- start coding here -->



    <form id="Transfer">

     <block>
            <log expr="'## Transfering....... '"/>
         <prompt bargein="false">
           <audio expr="audiourl('Transfer.wav')" />
             </prompt>
             <assign name="transferUrl" expr="2000"/>
        </block>
         <field type="digits?length=1" name="silent">
              <property name="termtimeout" value="1s"/>
             <property name="timeout" value="1s"/>
            <filled>
                <goto next="#TranferUrl"/>
            </filled>
            <catch event="nomatch noinput">
                <goto next="#TranferUrl"/>
            </catch>
        </field>
        </form>



    <form id="TranferUrl">
       <transfer name="blindTransfer" bridge="true" destexpr="transferUrl"
connecttimeout="10s" maxtime="10s"   >
             <filled>
                <log expr="'## Tfr Result :: '+blindTransfer"/>
                <log expr="'## Tfr Duration: '+blindTransfer$.duration"/>

            </filled>

        </transfer>
    </form>


</vxml>

____________________________________________________________________________________

On Sun, Feb 1, 2009 at 10:30 PM, <voiceglue-request at voiceglue.org> wrote:

> Send Voiceglue mailing list submissions to
>        voiceglue at voiceglue.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://www.voiceglue.org/mailman/listinfo/voiceglue
> or, via email, send a message with subject or body 'help' to
>        voiceglue-request at voiceglue.org
>
> You can reach the person managing the list at
>        voiceglue-owner at voiceglue.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Voiceglue digest..."
>
>
> Today's Topics:
>
>   1. Re: Issues with the transfer tag (Andrew Zitnay) (TJ Thinakaran)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 31 Jan 2009 09:43:02 -0800
> From: TJ Thinakaran <tj at callfire.com>
> Subject: Re: [Voiceglue] Issues with the transfer tag (Andrew Zitnay)
> To: voiceglue at voiceglue.org
> Message-ID:
>        <bc8cd3b10901310943y619574bfma2b34fa4d7dd64e9 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> In my experience, it looks like the transfer tag cannot support playing
> audio files. It's something to do the implementation. From what I read else
> where in this forum, the transfer tag is still a work-in-progress. However
> if you want to do blind transfers, those still work.
>
>
> >
> >
> > Today's Topics:
> >
> >   1. Issues with the transfer tag (Andrew Zitnay)
> >
> >
> > ---------- Forwarded message ----------
> > From: Andrew Zitnay <drew at zitnay.com>
> > To: voiceglue at voiceglue.org
> > Date: Fri, 30 Jan 2009 12:39:47 -0500
> > Subject: [Voiceglue] Issues with the transfer tag
> > First of all, thanks for all the hard work on Voiceglue, especially 0.9's
> > parameter passing feature.
> >
> > I have a few questions about the transfer tag:
> >
> > 1) Any normal way I've attempted to play an audio prompt before
> > transferring has resulted in the audio being played after the transferred
> > call ends.  I've tried things like:
> >
> > <form id="transfer">
> >  <block>
> >   <prompt>transferring now</prompt>
> >  </block>
> >  <transfer dest="..."/>
> > </form>
> >
> > and:
> >
> > <form id="transfer">
> >  <transfer dest="...">
> >   <prompt>transferring now</prompt>
> >  </transfer>
> > </form>
> >
> > and a bunch of other things, no matter what, I don't hear "transferring
> > now" until the transferred call ends.  I can work around it, but it's
> kind
> > of a hassle, and I'm just wondering if there's some problem with my
> setup.
> >
> > 2) Is the connecttimeout attribute of the transfer tag supposed to be
> > working?  If I set it to, say, "17s", I'd expect it to terminate the
> > transfer attempt after 17 seconds of ringing but no connection.  However,
> in
> > my testing so far, the transfer attempt keeps going long after that.
> >
> > 3) Is there any way to specify the callerid/ANI that should be displayed
> to
> > the person being transferred to?  Currently, it seems like it always
> > inherits the callerid/ANI from the initial call, which might not always
> be
> > desirable.
> >
> > Thanks for any insight you can provide.
> >
> > Drew
> >
> >
> > _______________________________________________
> > Voiceglue mailing list
> > Voiceglue at voiceglue.org
> > http://www.voiceglue.org/mailman/listinfo/voiceglue
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://www.voiceglue.org/pipermail/voiceglue/attachments/20090131/befdb394/attachment-0001.html
>
> ------------------------------
>
> _______________________________________________
> Voiceglue mailing list
> Voiceglue at voiceglue.org
> http://www.voiceglue.org/mailman/listinfo/voiceglue
>
>
> End of Voiceglue Digest, Vol 19, Issue 1
> ****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.voiceglue.org/pipermail/voiceglue/attachments/20090202/f0bf1bb1/attachment.html 


More information about the Voiceglue mailing list