Author Topic: External Scripts support - Windows  (Read 11731 times)

jamie

  • Newbie
  • *
  • Posts: 38
    • View Profile
External Scripts support - Windows
« on: December 08, 2014, 04:50:21 PM »

Hi,

Does anyone know if Yate V5 has support for running external scripts on a Windows platform ?

Thank you,
Jamie

Monica Tepelus

  • Administrator
  • Full Member
  • *****
  • Posts: 198
    • View Profile
Re: External Scripts support - Windows
« Reply #1 on: December 19, 2014, 03:45:21 AM »
Hi,

You can run yate scripts on windows but they must be started differently, since Yate won't be allowed to start them.

jamie

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: External Scripts support - Windows
« Reply #2 on: January 04, 2015, 01:02:55 PM »

Thanks Monica ... happy new year !

Just to confirm ( i didn't clarify in post ) ... I was referring to channel scripts ?

If so, I can see how we could do this if just an outbound call is invoked.

But I'm not so sure (yet) how it could be done from routing an inbound call in a global script. Seeing as YATE can't start a channel script using the 'external' command


Unless I'm misunderstanding some terms .... ie global and channel

At the moment ( example testing ) I've created a simple PHP script and running it as a service.

It's a simple script with an event loop that waits for a call and uses a class to hold and separate calls into.

Does this sound like I'm going in the right direction  ... hope this makes sense !



Monica Tepelus

  • Administrator
  • Full Member
  • *****
  • Posts: 198
    • View Profile
Re: External Scripts support - Windows
« Reply #3 on: January 05, 2015, 05:52:27 AM »
Yes, you can have a global script that is started as a service and handles messages on behalf of multiple channels. You can use dumbchannels to have the leg connected to a channel and send messages on behalf of the dumbchannel from your script.

jamie

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: External Scripts support - Windows
« Reply #4 on: January 13, 2015, 12:46:27 PM »
Thanks Monica, much appreciated.