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:firstname.lastname@example.org:5060;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 192.168.0.251:5060;branch=z9hG4bK-d8754z-016ba529cb3ce414-1---d8754z-;rport
CSeq: 1 NOTIFY
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REGISTER, SUBSCRIBE, NOTIFY, REFER, INFO, MESSAGE
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!!