John Pereira
If one particular domain has a different requirement , can we have a different callout script for them ?
0
Comments
Please sign in to leave a comment.
Unfortunately no. The callout script is for all the outbound calls from xMatters. However, I think you can get details of the event in the callout script, and then add some logic to do different things. What are you looking to change?
Hi Travis, One of the team here wants to make use of SIP for making multiple calls at a time. But SIP has a problem as it cannot detect voice , so we have to put in "press any key" to make sure a person has responded. The team does not want this feature and want SIP to read out the message without "press any key". They are not worried about the voice message either or acknowledgement. they only want alarmpoint to call user x number of times until user picks up. But this is for only one team. We do want the normal "press any key" for other users and voice message matters to them. If i cannot have 2 call out scripts, what option i have that i can try
travis,do you mean to use , if $event.domain="<domain_name>
then
endif
Yea, looks like that domain token could work. However, you'll have to dig through the callout script to get the actual event variable. Look for this line:
@initiatingEvent = @interaction::getInitiatingEvent()
That would make your if block:
IF $initiatingEvent.domain = "<domain_name>" THEN
# Do stuff
ELSE
# Do other stuff
ENDIF
thanks, good to know its possible. let me try this out..
Travis, i have updated the call out script to address this, waiting for customer to confirm that its working as expected, let you know..
Hi travis, it worked pretty well. Thanks for suggestion.
another query, what is the syntax to specify 2 domains in the same line
ex: IF $initiatingEvent.domain = "<domain_name>" THEN
how do i specify 2 or more domains in this line.
in case a new team requests in future..
That would just be an "OR":
P.S. This forum uses a form of markdown syntax for formatting. So 3 backtics
will form a block of code, while 1
will make code inline.Bah. This is what it should be:
IF $initiatingEvent.domain = "<domain_name>" || $initiatingEvent.domain = "<other_domain_name>" THEN
Do stuff
ELSE
Do other stuff
ENDIF
The last syntax worked perfectly
IF $initiatingEvent.domain = "<domain_name>" || $initiatingEvent.domain = "<other_domain_name>" THEN