maxtime as variable in <transfer>

Version 1
    This document was generated from CDN thread

    Created by: Vadim Burcheganov on 09-02-2012 11:23:00 PM
    Hi
    I want to pass attr maxtime as variable in my vxml script:
    <var name="dur"/>
    <form id="transfer" scope="document">
    <block>
    <assign name="dur" expr="1000"/>
    <log expr=" '****** maxtime as: ' + dur"/>
    </block>
    <transfer name="mycall" bridge="true" dest="tel:+2385839" maxtime="dur">
    <filled>
    <log expr=" '****** Duration of call is:' + mycall$.duration"/>
    </filled>
    </transfer>
    but debug gives out an error:
    at line 13: <duration> attribute with invalid value (dur)
    when i used attr maxtimeexpr="dur" a transfer successful, but debug output gives:
       at line 13: : <transfer maxtimeexpr> Unknown attlist
    and call duration not limited:
       name=mycall
       URI(abs):tel:+2385839
       scheme=tel
       path=+2385839 bridge=1 connecttimeout=0 maxtime=0
    My ios version 12.4(11)XW7. How can i limit maxtime using a variable?

    Subject: RE: maxtime as variable in <transfer>
    Replied by: Anusha Kannappan on 10-02-2012 12:47:54 AM
    Hi Vadim,

    Please let us know is there any specific reasons for passing the maxtime attribute as variable in the <transfer>? If so we will try out and let you know the results.

    Since the syntax says we can specify the maxtime in the following way

    Express time interval as an unsigned number followed by either s for time in
    seconds or ms for time in milliseconds (the default).

    So it is better to use the maxtime as following

    <transfer name="MyCall" dest="tel:+1817" bridge="true" connecttimeout="20s" maxtime="60s">

    Thanks,
    Anusha

    Subject: RE: maxtime as variable in <transfer>
    Replied by: Vadim Burcheganov on 10-02-2012 02:27:38 AM
    Hi,

    The purpose is to limit a transfer call  to a specific duration assigned as variable, for example  application debitcard with attribute h323-credit-time.
    How can i limit duration of transfer call in another way by use a variable?

    Subject: RE: maxtime as variable in <transfer>
    Replied by: Anusha Kannappan on 10-02-2012 09:18:37 AM
    Hi Vadim,

    We also tested it in our lab and got the same error. I am not very sure that passing the maxtime attribute as variable would work. But anyway I will cross check with our internal teams over here and keep you posted once I receive any updates on the same.

    Thanks,
    Anusha

    Subject: RE: maxtime as variable in <transfer>
    Replied by: Vadim Burcheganov on 10-02-2012 11:27:00 AM
    Hi,

    Thanks for cooperation. Probably, there is another attribute to limit duration by using of variable or other solution?
    I'm looking forward for your update.

    Subject: RE: maxtime as variable in <transfer>
    Replied by: Anusha Kannappan on 12-02-2012 10:02:06 PM
    Hi Vadim,

    Actually we had checked with our DE team and here is the reply we got

    'The maxtime attribute list in transfer element is a constant of duration, not a variable. We don¿t support a variable of maxtime. '

    Thanks,
    Anusha

    Subject: RE: maxtime as variable in <transfer>
    Replied by: Vadim Burcheganov on 12-02-2012 11:01:25 PM
    Hi Anusha,

    Probably, there is another attribute to limit duration by using of variable or other solution?
    How can i solve my problem with limit duration of call in <transfer>?

    Subject: RE: maxtime as variable in <transfer>
    Replied by: Anusha Kannappan on 13-02-2012 10:24:05 AM
    Hi Vadim,

    By using variable we will not be able to limit the duration. Directly by setting the value in the maxtime attribute you can use to limit the duration of the call in <transfer>

    Thanks,
    Anusha

    Subject: RE: maxtime as variable in <transfer>
    Replied by: Travis May on 13-02-2012 02:04:46 PM
    Hi Vadim,

    Simple answer to your question is to use a dynamic web server to create your vXML - PHP, ASP, ColdFusion, whatever your preference.

    Best of luck to you.

    Travis

    Subject: RE: maxtime as variable in <transfer>
    Replied by: Vadim Burcheganov on 13-02-2012 11:18:19 PM
    Hi,
    I have understood. Thanks for cooperation.

    Subject: RE: maxtime as variable in <transfer>
    Replied by: Vadim Burcheganov on 15-02-2012 12:52:24 AM
    Hi,
    Please let me know if there's a plan to add attribute which allows the developer to specify an ECMAScript expression resolving to the duration of a transfer in the future, for example maxtimeexpr?

    Subject: RE: maxtime as variable in <transfer>
    Replied by: Anusha Kannappan on 15-02-2012 12:57:35 AM
    Hi Vadim,

    I shall check with our DE team and get back to you at the earliest.

    Thanks,
    Anusha

    Subject: RE: maxtime as variable in <transfer>
    Replied by: Anusha Kannappan on 16-02-2012 12:04:19 AM
    Hi Vadim,

    We have got the confirmation from our DE team that currently there is no roadmap for VxML development.

    Thanks,
    Anusha