[Freeswitch-users] config / scripting questions from voice mail integration attempt

Anthony Minessale anthony.minessale at gmail.com
Thu Jun 26 12:48:23 EDT 2008


Dialplan apps are functions you run on a session
api funcs are not related to a call, they are to invoke certain behaviors


you can make a variable that is the entire data portion of the voicemail
call

<action application="javascript" data="vm.js"/>
<action application="voicemail" data="${vm_data}"/>

then in vm.js set vm_data var to the entire args to the voicemail app

in this setup you can assume the js will set the var and then the vm_data
will be expanded in time.



On Thu, Jun 26, 2008 at 10:58 AM, John Wehle <john at feith.com> wrote:

> Anthony Minessale writes:
> > apiExecute is for FSAPI calls voicemail is a dialplan application.
> > you would want to do one of the following:
> >
> > session.execute("voicemail", "<voicemail args>");
> > session.execute("transfer", "<some ext that leads to voicemail>");
>
> Yep ... that was exactly the command I was looking for.  I take it
> that execute is more like the C function system rather than the
> system call exec?  I.e. control is returned to the javascript after
> the application finishes?
>
> > Your plan to set the variables is the best one to avoid overhead of
> > leaving JS running.
>
> > The only thing you can't do is set a variable in one action of your
> > dialplan and then expect that variable to be set to do more <condition>
> > tags inside that same dialplan.
>
> The inband DTMF contains information regarding whether the caller is
> checking their voicemail or leaving a message for someone else which
> means that based on the DTMF I need to call the voicemail application
> with different parameters.  How can I have the script just set variables
> if I can't use those variables with <condition> tags later in the dialplan
> to control how to call the voicemail application?
>
> -- John
> -------------------------------------------------------------------------
> |   Feith Systems  |   Voice: 1-215-646-8000  |  Email: john at feith.com  |
> |    John Wehle    |     Fax: 1-215-540-5495  |                         |
> -------------------------------------------------------------------------
>
>
> _______________________________________________
> 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
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/

AIM: anthm
MSN:anthony_minessale at hotmail.com <MSN%3Aanthony_minessale at hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com<PAYPAL%3Aanthony.minessale at gmail.com>
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org <sip%3A888 at conference.freeswitch.org>
iax:guest at conference.freeswitch.org/888
googletalk:conf+888 at conference.freeswitch.org<googletalk%3Aconf%2B888 at conference.freeswitch.org>
pstn:213-799-1400
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20080626/6e0bc957/attachment.html 


More information about the Freeswitch-users mailing list