<p></p>
<p>I was trying to install kamailio for the first time but I could not activate it.<br>
I follow the steps of this installation <a href="https://powerpbx.org/content/kazoo-v4-single-server-install-guide-v1#detailedinstall" rel="nofollow">https://powerpbx.org/content/kazoo-v4-single-server-install-guide-v1#detailedinstall</a><br>
The error given was<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/80431645/110712130-7aa11800-81df-11eb-8a86-97acc054eb7d.png"><img src="https://user-images.githubusercontent.com/80431645/110712130-7aa11800-81df-11eb-8a86-97acc054eb7d.png" alt="failed" style="max-width:100%;"></a><br>
"Active: failed (Result:  exit-code= since Mon 2021-03-08 15:44:55 (code=exited, status=255)"</p>
<p>The work around I found to solve this was to modify this archive vi /etc/kazoo/kamailio/local.cfg<br>
More precisely you need to uncomment some lines and verify the information is right and similar to the one I post here.<br>
In my case the hostname is ServerTest, the IP Address is 192.168.0.123.</p>
<p>################################################################################</p>
<h2>SERVER INFORMATION</h2>
<p>################################################################################</p>
<h2>UNCOMMENT & CHANGE "somedomain.local" TO YOUR SERVERS HOSTNAME</h2>
<p><strong>#!substdef "!MY_HOSTNAME!ServerTest.local!g"</strong></p>
<h2>UNCOMMENT & CHANGE "192.168.88.51" TO YOUR SERVERS IP ADDRESS</h2>
<h2>Usually your public IP. If you need</h2>
<h2>to listen on addtional ports or IPs</h2>
<h2>add them in "BINDINGS" at the bottom.</h2>
<p><strong>#!substdef "!MY_IP_ADDRESS!192.168.0.123!g"</strong></p>
<h2>CHANGE "kazoo://guest:guest@192.168.88.51:5672" TO THE AMQP URL</h2>
<h2>This should be the primary RabbitMQ server</h2>
<h2>in the zone that this server will service.</h2>
<p><strong>#!substdef "!MY_AMQP_URL!amqp://guest:guest@192.168.88.51:5672!g"</strong></p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/2670">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABO7UZJJJTLVNFUUFAZYS63TC77JZANCNFSM4Y7DRK5A">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABO7UZMUCKJSWUMWTTLCOPTTC77JZA5CNFSM4Y7DRK5KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4MLBTOMA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/2670",
"url": "https://github.com/kamailio/kamailio/issues/2670",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>