Hi everyone<br><br>I&#39;m trying to integrate Asterisk with Kamailio for voicemail.<br>I tried to follow this tutorial: <a href="http://kb.asipto.com/asterisk:realtime:kamailio-3.3.x-asterisk-10.7.0-astdb" target="_blank">http://kb.asipto.com/asterisk:realtime:kamailio-3.3.x-asterisk-10.7.0-astdb</a><br>

BUT:<br><br>- I had to adapt it because I use LDAP authentication with Kamailio<br>- I had problems with Asterisk 10.7 (problems with chan_sip module crashing) so I&#39;ve installed Asterisk 11 on another VM<br>-
 we have high-availability with 2 Kamailio servers, with Kamailio 
listening on TCP (constraint from our SSL gateway in front of Kamailio) 
on a &quot;virtual IP&quot; (created by keep-alive): this VIP is not visible with 
ifconfig, but you can see it with the command &quot;ip addr sh eth0&quot;<br>
<br>For now, we use Linphone on Windows as SIP clients to test.<br>If I don&#39;t define WITH_ASTERISK, calls work, I can call someone@domain.tld<br>However,
 if I define WITH_ASTERISK, calls fail (even with destination registered
 and available) and I have these errors in the logfile:<br>
<br>Nov 15 11:45:08 kamailio1 /usr/sbin/kamailio[25308]: ERROR: tm [ut.h:333]: no corresponding socket for af 2<br>Nov
 15 11:45:08 kamailio1 /usr/sbin/kamailio[25308]: ERROR: tm 
[t_fwd.c:424]: ERROR: can&#39;t fwd to af 2, proto 1  (no corresponding 
listening socket)<br>
Nov 15 11:45:08 kamailio1 /usr/sbin/kamailio[25308]: ERROR: tm [t_fwd.c:1530]: ERROR: t_forward_nonack: failure to add branches<br>Nov 15 11:45:08 kamailio1 /usr/sbin/kamailio[25308]: INFO: &lt;script&gt;: reply error<br>

Nov 15 11:45:08 kamailio1 /usr/sbin/kamailio[25308]: ERROR: sl 
[sl_funcs.c:371]: ERROR: sl_reply_error used: I&#39;m terribly sorry, server
 error occurred (1/SL)<br><br>It seems to happen on the if (!t_relay()) line in ROUTE[RELAY]<br>
<br>192.168.14.25 is the real IP of the Kamailio server, <br>192.168.14.24 is the VIP of the Kamailio &quot;cluster&quot;<br>192.168.14.28 is the IP of the Mysql server<br>192.168.14.32 is the IP of the Asterisk server<br>

<br>I can&#39;t find why the relay doesn&#39;t work. I&#39;ve tried to bypass the 
VIP and have Kamailio listen on the real IP, but it still doesn&#39;t work: I
 don&#39;t seem to have the same errors as above, but I don&#39;t see any 
traffic between Kamailio and Asterisk.<br>
<br>My kamailio.cfg is available here as it&#39;s too big for the list: <a href="http://pastebin.com/zhncJ6j1">http://pastebin.com/zhncJ6j1</a><br><br>What could be the problem? Thank you very much for your help<br><br>Christophe