resource-agents
resource-agents copied to clipboard
Asterisk monitoring via sipsak not working
Hi,
When the original resource agent script called sipsak, it was sending a sip packet with an invalid contact URI. As a result Asterisk was sending back a 404 error in reply to the SIP OPTIONS sent. I haven't been able to get sipsak to send valid contact details in this mode so instead have made it do a SIP REGISTER. The resource agent now accepts an additional parameter=monitor_password, this is the sip account password you register with. I've tested the resource agent successfully against asterisk 1.6 and 1.8.18.
Cluster configuration example of use
primitive resASTERISK ocf:heartbeat:asterisk
params realtime="false" monitor_sipuri="sip:[email protected]" \ monitor_password="eo34d84nvhekr"
op monitor interval="60"
op start interval="0s" timeout="120s"
op stop interval="0s" timeout="120s"
meta migration-threshold="1"
Cheers, John [email protected]
Thank you for the patch. Detailed comments in line notes.
gnuday: Do you want to update your contribution based on the comments?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi,
Yes although I'm a little snowed under at the moment with work. I'll take the comments on board when I re-write my code. Thanks
On 21/01/13 16:00, Dejan Muhamedagic wrote:
gnuday: Do you want to update your contribution based on the comments?
— Reply to this email directly or view it on GitHub https://github.com/ClusterLabs/resource-agents/pull/179#issuecomment-12503843.
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJQ/WyQAAoJEJDWDcq/312/6RMP/1CDZYLRnayB6RZmZXmE7cKk EqT1OowS5LoiHtayqv8/tHcQmcnQ3kalH88UBZ/ZoPb0QKF70UIF1u7KtZUFuFju 5cIg4xcbr0BBmeLuqHKdRvPdhOOFSB2w9WNvPrx5ZHIveYdzrdyKvSPlrBQBkWnQ dTLG6f2/gi3ETwb9Ex4ZFJ8E3DgtupNgOwobEiyBjjPXHB0rR6/STIjAWcVWB66C sybljAs/5sIAvKDLlaiyPlNjBh0K/FNGIVdQ2zcMfWMWZEv1ARNWX6Z+U8/BfLZS tpvUYF19jawSMglB/dVcso04SNvaZq4rNvt3Ka5TroepcWai8r5ropVqmdmyHYLz NgvNLsmBPt/xVUL8ESkMZKfIJ186BWEaixN3EziV8QVZwdMqtjhnQxBgCf+WUAuA 5ytTJm3bk3pLIiCF1hhup2Qrdg6O2PX9+RedwtXNWtkJ3W1v96eFoikje4ZE3j6+ ucj+mSl8UkDkq4hIs8182FhFJuRTYbfX3LiA/5c5LjG/ZrBYtBAMAlZmski2KSF3 uVKhcXCI9OPZKZlyM7XmNl4wNN9rm38p0bJru2iy6qGAJcTsMjnx0j20r7a8y1K9 C4vwV9wxT8cagZ9KYAtHg6fcXy60lV6dK0WEX9NhMzKfUeUPI2wp92+aKvcfG+6X 1eRsHcrfi7dzYYJ/kT3n =UQ49 -----END PGP SIGNATURE-----
This doesn't automatically merge anymore, please rebase.