I want tind out whether a user is registered from the client app. If the user is registered proceed with dialing. For this i am sending the options request to asterisk from the client app. The context for that user is Matrix. but asterisk is looking for that user in the default context. How to solve this?
OPTIONS doesn’t work like that in Asterisk. It merely returns whether an extension exists in the dialplan or not.
Any suggestions on how to get the asterisk sip peer status from the client app?
Asterisk provides various APIs, such as AMI and you can query for the status. If you are purely wanting to do SIP, then you could SUBSCRIBE for BLF.