[jitsi-users] Mac - Run script on incoming call fails


#1

Hi,

I’m using the latest stable version of Jitsi (2.4.4997) on Mac OS X
Yosemite 10.10. I’d like to run a script on incoming call but I can’t get
it to work. I’ve tried using batch (.bat), shell (.sh) and applescript
(.scpt) but none of them seem to work. I’d like to open a new tab on my
browser on “Incoming call” event. I’ve added 755 permissions to the files
but that doesn’t help. When I use .bat or .sh I get the following error msg
to my system log:

*Nov 12 10:49:50 Ernos-MacBook-Pro.local Jitsi[576]: Unable to
simultaneously satisfy constraints:*

* (*

* <NSAutoresizingMaskLayoutConstraint:0x2862ffe0 h=-&- v=-&-
V:|-(10)-[FI_TQLPreviewView:0x4d31d0] (Names: '|':FI_TSliceView:0x466d90
)>,*

* <NSAutoresizingMaskLayoutConstraint:0x28630020 h=-&- v=-&-
V:[FI_TQLPreviewView:0x4d31d0]-(10)-| (Names: '|':FI_TSliceView:0x466d90
)>,*

* <NSAutoresizingMaskLayoutConstraint:0x2868f360 h=-&- v=--&
V:[FI_TSliceView:0x466d90(0)]>*

* )*

* Will attempt to recover by breaking constraint *

* <NSAutoresizingMaskLayoutConstraint:0x28630020 h=-&- v=-&-
V:[FI_TQLPreviewView:0x4d31d0]-(10)-| (Names: '|':FI_TSliceView:0x466d90
)>*

* Set the NSUserDefault
NSConstraintBasedLayoutVisualizeMutuallyExclusiveConstraints to YES to have
-[NSWindow visualizeConstraints:] automatically called when this happens.
And/or, break on objc_exception_throw to catch this in the debugger.*

When I use .scpt I get a different error:

*Nov 12 10:50:09 Ernos-MacBook-Pro.local Jitsi[576]: 10:50:09.390 ERROR:
  AUHAL.cpp:2595: AUIOProc: AUHAL::AUIOProc: mono buffer too small (1024 >
660)*

I’ve tried running my scripts directly and they all work. For example my
applescript file looks like this:

*tell* *application*
* "Google Chrome"**set* *myTab* *to* *make* *new* *tab* *at* *end* *of*
*tabs* *of* *window*
* 1**set* *URL* *of* *myTab* *to** "**https://myurl*
*.com"**end* *tell*

Any help with this issue is greatly appreciated :slight_smile:

Kind regards,
Erno