Hi,<br><br>I recently configured Linux HA for Asterisk service (using
Asterisk resource agent downloaded from link:
<a href="https://github.com/ClusterLabs/resource-agents/blob/master/heartbeat/asterisk">https://github.com/ClusterLabs/resource-agents/blob/master/heartbeat/asterisk</a>).<br>As
per configuration it is working good but when I include
"monitor_sipuri="<a href="mailto:sip%3A42@10.3.152.103">sip:42@10.3.152.103</a>" " parameter in primitive section
it is giving me an errors like listed below;<br><br>
<p class="MsoNormal"><span style="color:#1f497d">root@asterisk2 ~> crm_mon -1</span></p>
<p class="MsoNormal"><span style="color:#1f497d">============</span></p>
<p class="MsoNormal"><span style="color:#1f497d">Last updated: Thu Mar 28
06:09:54 2013</span></p>
<p class="MsoNormal"><span style="color:#1f497d">Stack: Heartbeat</span></p>
<p class="MsoNormal"><span style="color:#1f497d">Current DC: asterisk2
(b966dfa2-5973-4dfc-96ba-b2d38319c174) - partition with quorum</span></p>
<p class="MsoNormal"><span style="color:#1f497d">Version: 1.0.12-unknown</span></p>
<p class="MsoNormal"><span style="color:#1f497d">2 Nodes configured, unknown
expected votes</span></p>
<p class="MsoNormal"><span style="color:#1f497d">1 Resources configured.</span></p>
<p class="MsoNormal"><span style="color:#1f497d">============</span></p>
<p class="MsoNormal"><span style="color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="color:#1f497d">Online: [ asterisk1 asterisk2 ]</span></p>
<p class="MsoNormal"><span style="color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="color:#1f497d">Resource Group: group_1</span></p>
<p class="MsoNormal"><span style="color:#1f497d">
asterisk_2 (lsb:asterisk): Started asterisk1</span></p>
<p class="MsoNormal"><span style="color:#1f497d">
IPaddr_10_3_152_103 (ocf::heartbeat:IPaddr):
Started asterisk1</span></p>
<p class="MsoNormal"><span style="color:#1f497d"> </span></p>
<p class="MsoNormal"><span style="color:#1f497d">Failed actions:</span></p>
<p class="MsoNormal"><span style="color:#1f497d">
p_asterisk_start_0 (node=asterisk1, call=64, rc=1, status=complete): unknown
error</span></p>
<p class="MsoNormal"><span style="color:#1f497d">
p_asterisk_start_0 (node=asterisk2, call=20, rc=1, status=complete): unknown
error</span></p>
<br><br>I tested the 'sipsak' tool on cli, it is executing without any
issue i.e. returning 200 OK but when I remove this "param
monitor_sipuri" I'm not getting the errors and also I created sip profile '42' without setting any password, tested first on softphone and is working.<br><br>Test result for sipsak;<br><br>root@asterisk1 ~> sipsak -v -s <a href="mailto:sip%3A42@10.3.152.103">sip:42@10.3.152.103</a><br>
SIP/2.0 200 OK<br>Via: SIP/2.0/UDP 10.3.152.105:60928;branch=z9hG4bK.274e15e9;alias;received=10.3.152.103;rport=60928<br>From: sip:sipsak@10.3.152.105:60928;tag=68c5c65d<br>To: <a href="mailto:sip%3A42@10.3.152.103">sip:42@10.3.152.103</a>;tag=as558d9271<br>
Call-ID: <a href="mailto:1757791837@10.3.152.105">1757791837@10.3.152.105</a><br>CSeq: 1 OPTIONS<br>Server: Asterisk PBX 10.12.1<br>Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH<br>Supported: replaces, timer<br>
Contact: <sip:<a href="http://10.3.152.103:5060">10.3.152.103:5060</a>><br>Accept: application/sdp<br>Content-Length: 0<br><br><br>Listing down the configuration below which I configured;<br><br> node $id="887bae58-1eb6-47d1-b539-d12a2ed3d836" asterisk1<br>
node $id="b966dfa2-5973-4dfc-96ba-b2d38319c174" asterisk2<br>primitive IPaddr_10_3_152_103 ocf:heartbeat:IPaddr \<br> op monitor interval="5s" timeout="20s" \<br> params ip="10.3.152.103"<br>
primitive p_asterisk ocf:heartbeat:asterisk \<br> op monitor interval="10s" \<br> params realtime="true"<br>group group_1 p_asterisk IPaddr_10_3_152_103 \<br> meta target-role="Started"<br>
location rsc_location_group_1 group_1 \<br> rule $id="preferred_location_group_1" 100: #uname eq asterisk1<br>colocation asterisk-with-ip inf: p_asterisk IPaddr_10_3_152_103<br>property $id="cib-bootstrap-options" \<br>
symmetric-cluster="true" \<br> no-quorum-policy="stop" \<br> default-resource-stickiness="0" \<br> stonith-enabled="false" \<br> stonith-action="reboot" \<br>
startup-fencing="true" \<br> stop-orphan-resources="true" \<br> stop-orphan-actions="true" \<br> remove-after-stop="false" \<br> default-action-timeout="120s" \<br>
is-managed-default="true" \<br> cluster-delay="60s" \<br> pe-error-series-max="-1" \<br> pe-warn-series-max="-1" \<br> pe-input-series-max="-1" \<br>
dc-version="1.0.12-unknown" \<br> cluster-infrastructure="Heartbeat"<br><br>And the status I'm getting is listed below;<br><br>root@asterisk1 ~> crm_mon -1<br>============<br>Last updated: Fri Mar 29 12:25:10 2013<br>
Stack: Heartbeat<br>Current DC: asterisk1 (887bae58-1eb6-47d1-b539-d12a2ed3d836) - partition with quorum<br>Version: 1.0.12-unknown<br>2 Nodes configured, unknown expected votes<br>1 Resources configured.<br>============<br>
<br>Online: [ asterisk1 asterisk2 ]<br><br> Resource Group: group_1<br> p_asterisk (ocf::heartbeat:asterisk): Started asterisk1<br> IPaddr_10_3_152_103 (ocf::heartbeat:IPaddr): Started asterisk1<br><br clear="all">
<br>Please advise to overcome this issue.<br><br clear="all"><br>-- <br>Regards,<br><br>Ahmed Munir Chohan<br><br>