Extension response to everyone except self...
Extension response to everyone except self...
Is there an easy way to send an extensions response to everyone except the sender or do I have to loop through all users in the List with a conditional to avoid sending the response to the sender?
Re: Extension response to everyone except self...
Yes, it's quite easy, whether you are sending to the users of a Room or an entire Zone...
1) grab the list of users you want to sent to. Example:
2) remove the sender from the list and send
3) send the message
Happy new year
1) grab the list of users you want to sent to. Example:
Code: Select all
List<User> recipients = theRoom.getUserList();
2) remove the sender from the list and send
Code: Select all
recipients.remove(sender)
3) send the message
Happy new year
Re: Extension response to everyone except self...
Thanks and happy new year to you too!
Who is online
Users browsing this forum: No registered users and 112 guests