Hey there !
When working with multiple extensions its hard to check from what type of extension the repsonse comes from. Till now i just send a custom string every time but that seems not to be the best way. Is there an easier way to do this ?
How to check from what extension the response comes from ?
Re: How to check from what extension the response comes from ?
I am not sure I understand your question.
Normally it's not important what Extension replied to you, rather you need to know which request the reply is related to. And for this there exist event handlers.
Unless you're running the same command names in multiple extensions you should never have such ambiguity. If you are I'd suggest to rethink the strategy as implementing duplicates of the same command names in multiple Extension might indeed cause some confusion.
Another possibility is to just check the current context: if you have two identical commands in a Zone Extension and Room Extension you can still identify where it is coming from by checking if the Extension response is coming from a Room, rather than the Zone.
For this there is a specific parameter in your Extension response with the ID of the Room that sent the response.
Hope it helps
Normally it's not important what Extension replied to you, rather you need to know which request the reply is related to. And for this there exist event handlers.
Unless you're running the same command names in multiple extensions you should never have such ambiguity. If you are I'd suggest to rethink the strategy as implementing duplicates of the same command names in multiple Extension might indeed cause some confusion.
Another possibility is to just check the current context: if you have two identical commands in a Zone Extension and Room Extension you can still identify where it is coming from by checking if the Extension response is coming from a Room, rather than the Zone.
For this there is a specific parameter in your Extension response with the ID of the Room that sent the response.
Hope it helps
Re: How to check from what extension the response comes from ?
Maybe my question was a bit hard to understand but nevertheless you solved my iusse thanks !