<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello to all ha users,<br>
<br>
first of all thanks for you work @ mailinglist, pacemaker and ras!<br>
<br>
I have an issue with <a
href="https://github.com/ClusterLabs/resource-agents/blob/master/heartbeat/kamailio">the
kamailio resource agent</a> (ra) and it would be great, if you
could help me a little.<br>
<br>
--<br>
<u>Status:<br>
<br>
</u>Debian 7.9<br>
Kamailio - running<br>
Heartbeat & Pacemaker - running (incl. running virtual IP and
apache ra)<br>
and more<br>
<br>
<u>What I did</u><u>:</u><br>
<ul>
<li>Create /usr/lib/ocf/resource.d/heartbeat/kamailio and chmod
755'd it</li>
<li>Then I inserted the code of the ra and changed the following:</li>
<ul>
<li><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13.44px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);">RESKEY_kamuser_default=</span><span class="pl-s" style="box-sizing: border-box; color: rgb(24, 54, 145); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13.44px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><span class="pl-pds" style
="box-sizing: border-box; color: rgb(24, 54, 145);">"</span><span class="pl-pds" style="box-sizing: border-box; color: rgb(24, 54, 145);">*myuser*"</span></span></li>
<li>Line 52 to: <span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13.44px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: rgb(255, 255, 255);">RESKEY_pidfile_default=</span><span class="pl-s" style="box-sizing: border-box; color: rgb(24, 54, 145); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 13.44px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: pre; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><sp an="" clas
s="pl-pds" style="box-sizing: border-box; color: rgb(24, 54, 145);">"</sp></span>/var/run/kamailio/kamailio.pid<span
class="pl-pds" style="box-sizing: border-box; color: rgb(24,
54, 145);"> (</span>This is in my kamctlrc file too, exists
and works)</li>
<li>Line 53 to:
RESKEY_monitoring_ip_default=*IPOFMYKAMAILIOSERVER*</li>
<li>Changed : ${OCF_FUNCTIONS_DIR=${OCF_ROOT}/lib/heartbeat}
-> /usr/lib/ocf/lib/heartbeat , because he did not find it<br>
</li>
<li>Changed html snippet &s to &&</li>
<li>listen_address:*virtualipofkamailioserver*<br>
</li>
<li>(For more see attachment)<br>
</li>
</ul>
</ul>
<ul>
<li> Installed sipsak<br>
</li>
</ul>
<u>What I get:</u><br>
<br>
crm status gives me: STOPPED - Kamailio_start_0 (node=node1,
call=22, rc=-2, status=Timed Out): unknown exec error (on all nodes)<br>
<u><br>
What I need:</u><br>
<ul>
<li>In the ra at line 155 it says to insert a code snippet to the
kamailio.cfg, but not where exactly.</li>
<ul>
<li>Please tell me, at which spot exactly I have to insert it.
(I pasted it at line ~582, # Handle requests within SIP
dialogs)<br>
</li>
</ul>
</ul>
<ul>
<li>Is there a way to debug the kamailio ra, if inserting the code
snipped using your help will not be enough?</li>
</ul>
<br>
Thank you very mich for your time and interest!<br>
<br>
Sebastian
</body>
</html>