mac_key Posted November 28, 2023 #1 Share Posted November 28, 2023 Did anybody try to use the example script ? Seems to return "true", no matter if sbdy is logged on or not. Are there any requirements to be met besides signalling one another? Appreciating a hint Marc Link to comment Share on other sites More sharing options...
Tom Wellige Posted November 28, 2023 #2 Share Posted November 28, 2023 The most important requirement is stated right below the script code: Do you have mutual status signalling enabled between all envolved users (the ones in the group and the one the current call routing script runs for)? Link to comment Share on other sites More sharing options...
mac_key Posted November 29, 2023 Author #3 Share Posted November 29, 2023 As far as i can say that is true. Link to comment Share on other sites More sharing options...
Tom Wellige Posted November 29, 2023 #4 Share Posted November 29, 2023 And the user for whom the call routing script is running is also part of that group? You can take a look into the server trace to see exactly what the function IsGroupLoggedOff is doing. The following article describes how to identify and filter a spcific call within the server trace file and how to filter it further down to just the call routing trace output: How to filter SwyxWare traces for call routing output of single call Feel free to post that filtered trace output here. Link to comment Share on other sites More sharing options...
mac_key Posted November 29, 2023 Author #5 Share Posted November 29, 2023 It's a 13.28, so i ran the script in the group call routing manager. Here is a part of the Logfile from a group with nobody of the members logged in: 29 12:11:52.504 0013e4 Info SrvPBXCtl 09D815C0 0000009b SScrServer::EntityGetId () -> G:11 29 12:11:52.504 0013e4 Inf3 SrvPBXCtl 09D815C0 0000009b SScrServer::EntityGetName () returning: Testgruppe 29 12:11:52.504 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () Script for group [11] Testgruppe 29 12:11:52.504 0013e4 Info SrvScrAPI 09D815C0 0000009b SScrServer::EntityGetRIEnabled () returning 0 29 12:11:52.504 0013e4 Info SrvScrAPI 09D815C0 0000009b SScrServer::EntityGetRIUsePIN () returning 0 29 12:11:52.504 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () RI/PL parameters loaded: 0,Falsch,XXX,Falsch, 29 12:11:52.504 0013e4 Info SrvPBXCtl 09D815C0 0000009b SScrServer::CallGetCalledNumber () returning 13 29 12:11:52.504 0013e4 Info SrvPBXCtl 09D815C0 0000009b SScrServer::CallGetDialedNumReq () returning 13 29 12:11:52.504 0013e4 Info SrvPBXCtl 09D815C0 0000009b SScrServer::CallGetCallTypeReq () returning 'Group' 29 12:11:52.504 0013e4 Info SrvPBXCtl 09D815C0 0000009b SScrServer::GetCallingNumber () returning '+49CALLER' 29 12:11:52.504 0013e4 Info SrvPBXCtl 09D815C0 0000009b SScrServer::GetCallingNumber () returning '+49CALLER' 29 12:11:52.504 0013e4 Inf3 SrvPBXCtl 09D815C0 0000009b ScriptInfo::GetPreviousScripts (connId 155) no previous scripts available 29 12:11:52.504 0013e4 Inf3 SrvPBXCtl 09D815C0 0000009b SScrServer::GetPreviousScripts () NO script found 29 12:11:52.505 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () rule PreProcessing started... 29 12:11:52.505 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () User-defined PreProcessing (dummy) 29 12:11:52.505 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () Begin GSE Script (Rule: ruleWhrendGZeiten) 29 12:11:52.505 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () GSEVersion: 13.27.0.31 29 12:11:52.505 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () case [Start0] 29 12:11:52.505 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () --> gseStart() 29 12:11:52.505 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () <-- gseStart, rc = 1 [gseStateStarted] 29 12:11:52.505 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () case [Evaluate6] 29 12:11:52.505 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () IsGroupLoggedOff(11) 29 12:11:52.505 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () -------------> IsGroupLoggedOff ( sNumber = 11 ) 29 12:11:52.511 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () bReturn = Wahr 29 12:11:52.511 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () <------------- IsGroupLoggedOff 29 12:11:52.511 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () --> gseEvaluateEx(Wahr) 29 12:11:52.511 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () <-- gseEvaluateEx, rc = 34 [gseStateEvaluateMatch] 29 12:11:52.511 0013e4 Info SrvPBXCtl 09D815C0 0000009b SScrServer::CallIsOriginatorDiscd () returning no 29 12:11:52.511 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () case [PlaySound7] 29 12:11:52.511 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () --> gsePlaySoundEx2(niemand da.wav, , Falsch, , Wahr, Falsch, , Falsch) 29 12:11:52.511 0013e4 Info SrvPBXCtl 09D815C0 0000009b SScrServer::CallGetDtmfInput (niemand da.wav, U:0, name , dir 0, skip 0 sec, rep 0, interval 0 sec, mask= '', timeout 0 sec, repeat after hold/transfer: YES) 29 12:11:52.511 0013e4 Inf2 SrvPBXCtl 09D815C0 0000009b SScrServer::EventGetDtmfInput () 29 12:11:52.511 0010d0 Inf2 SrvPBXCtl 097A7660 0000009b SScriptFsm::ActionOnGetDtmfInputWInbound() 29 12:11:52.511 0010d0 Inf3 SrvPBXCtl 09719D88 0000009b SPBXCall::EventAlert (alert type: AlertTypeNormal, , <empty>, redir <empty>) 29 12:11:52.512 000a3c Inf2 SrvPBXCtl 09CCA190 0000009b SPBXCallFSM::ActionOnAlert () B1-A 29 12:11:52.512 0010d0 Info SrvPBXCtl 097A7660 0000009b SScriptFsm::TraceTransition () Inbound --GetDtmfInput--> AlertingGetDtmf (Result: 0) Link to comment Share on other sites More sharing options...
Most Valued User Markus Wallner Posted November 29, 2023 Most Valued User #6 Share Posted November 29, 2023 From the release notes of version 13.29: 216692 IpPbxSrv: PBXScript.IsUserOrGroupBusy might fail for group scripts Might this be linked to your problem? Maybe you could use PBXGroup.IsLoggedOn instead? Link to comment Share on other sites More sharing options...
mac_key Posted November 29, 2023 Author #7 Share Posted November 29, 2023 Ok, i tried that, but i was not able to figure out how to use that PBXGroup.IsLoggedOn function. Link to comment Share on other sites More sharing options...
Most Valued User Markus Wallner Posted November 29, 2023 Most Valued User #8 Share Posted November 29, 2023 I've never used this, but I guess this works for the current script group, so you could just place it into an evaluate block an use the exits true and false. Link to comment Share on other sites More sharing options...
Solution Tom Wellige Posted November 29, 2023 Solution #9 Share Posted November 29, 2023 4 hours ago, mac_key said: 29 12:11:52.505 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () -------------> IsGroupLoggedOff ( sNumber = 11 ) 29 12:11:52.511 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () bReturn = Wahr 29 12:11:52.511 0013e4 Info SrvScript 09CD46C0 0000009b SPBXScriptVbs::OutputTrace () <------------- IsGroupLoggedOff This function doesn't work in a group call routing at the moment. It uses "g_PBXConfig.GetUserByAddress" which is not working in a group context. As stated on the IsGroupLoggedOff page you can use the PBXGroup.IsLoggedIn in a group call routing script. The usage is as simple as with the previous function: if not IsGroupLoggedOff ("11") then ... end if respective: if PBXGroup.IsLoggedIn then ... end if Or when being used in an Evaluate block (Variable auswerten): Link to comment Share on other sites More sharing options...
mac_key Posted December 6, 2023 Author #10 Share Posted December 6, 2023 In the context of a User all works, thanks a lot for your help! Link to comment Share on other sites More sharing options...
Tom Wellige Posted December 6, 2023 #11 Share Posted December 6, 2023 You are mostly welcome! I am always glad to be of help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now