Hi all, I am fairly new to Asterisk so please be gentle
I have been asked to set up Asterisk to send out a SIP Notify message once a day, to reboot attached ATA devices (its a temporary measure whilst a bug is fixed in the devices).
Here are my instructionsā¦
About restart ATA by SIP NOTIFY message, when server send NOTIFY message which include header āEvent: check-sync;reboot=trueā, ATA will reboot:
For examples, SIP NOTIFY message:
NOTIFY sip:10002@192.168.0.35:5060;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 192.168.0.251:5060;branch=z9hG4bK-d8754z-016ba529cb3ce414-1---d8754z-;rport
Max-Forwards: 70
Contact: <sip:10002@192.168.0.251:5060>
To: <sip:10002@192.168.0.251:5060>
From: <sip:10002@192.168.0.251:5060>;tag=86598310
Call-ID: ZjYyODE1NDRiNjY2ZGI0YzcyMDk1YjdjMzZhOGEzY2I.
CSeq: 1 NOTIFY
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE
Supported: replaces
User-Agent: Asterisk
Event: check-sync;reboot=true
Content-Length: 0
The trouble is I donāt know how to do this! Asterisk is using realtime sip, in a sip_buddies database table. Each ATA has its own sip numbers (one for fxs and one for fxo). I have no idea how to get the ip address?
Please any help would be greatly appreciated!!