[Freeswitch-users] js and VMD

Michael Collins msc at freeswitch.org
Thu Feb 12 13:44:45 PST 2009


On Thu, Feb 12, 2009 at 12:49 PM, Nik Middleton
<nik.middleton at noblesolutions.co.uk> wrote:
> That makes sense, though could it not have a call back mechanism similar
> to DTMF detect?
>

It probably could but the mod's author was using it exclusively from
event socket. I personally added the channel variable code for the
sake of testing. I'm sure this could be added but it's beyond my
skills presently. I would recommend opening up a JIRA and requesting
this functionality as an improvement. Perhaps the author, Eric Des
Courtis, could add it or perhaps another skilled programmer could add
this functionality. In the grand scheme of things it probably isn't
that difficult and with a little time even I could figure it out.

> I'm still not sure how I could use it even in an event socket.  I plan
> to call my js IVR script using a socket, but that has the originate call
> in it which is nice and simple, but I'm unsure how I could abort it (js
> IVR.

As a proof of concept you could have your script loop and check the
value of ${vmd_status} every 1000ms or so, and if it ever has the
value "TRUE" then you know VMD was positive and you could hangup and
do whatever other cleanup is necessary. That solution would be a temp
fix even though it wouldn't actually scale very well.

How are you handling answered calls now? Do you just start playing a
message? I'm wondering how this would work even if there was a
callback. Would you mind doing a pastebin of your script? I'd like to
see the big picture.
-MC

>
> The functionality I'm looking for is really simple. I simply don't want
> to leave a voicemail message.  So VMD looks just the ticket.
>
> Regards




More information about the FreeSWITCH-users mailing list