Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Asterisk monitoring via sipsak not working #179

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gnuday
Copy link

@gnuday gnuday commented Nov 18, 2012

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]

…urce agent script. As a result a 404 reply was

being sent back by asterisk to the SIP OPTIONS sent. I haven't been able to get sipsak to send valid contact
details in this mode so have instead 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.

Cheers,
John
[email protected]
@fghaas
Copy link
Member

fghaas commented Nov 18, 2012

Thank you for the patch. Detailed comments in line notes.

@dmuhamedagic
Copy link
Contributor

gnuday: Do you want to update your contribution based on the comments?

@gnuday
Copy link
Author

gnuday commented Jan 21, 2013

-----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
#179 (comment).

-----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-----

@dmuhamedagic
Copy link
Contributor

This doesn't automatically merge anymore, please rebase.

@krig krig added the bug label Feb 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants