Add ubus call to check sip account's registration status
The following ubus call has been created: ubus call asterisk sip_registration_status '{ "sip_account" : "sipX" }'
As response we get the name of sip account and its registration status: {Registered | Not Registered}
Example:
root@iopsys:# ubus call asterisk sip_registration_status '{ "sip_account" : "sip0" }'
{
"sip_account": "sip0",
"registration_status": "Registered"
}
root@iopsys:# ubus call asterisk sip_registration_status '{ "sip_account" : "sip1" }'
{
"sip_account": "sip1",
"registration_status": "Not Registered"
}