I need to send OPTIONS message to SIP peer, from dialplan, before calling peer or sending SIP MESSAGE. This is to know for shore that peer available right now.
I know that there is CLI command : SIP QUALIFY PEER , and it is doing exactly what I need, but I can’t read return result. There is no way to know did peer replay or not.
So question is: how can I send OPTIONS message to peer and read respond.
It could be from dialplan, or AMI, or terminla command.