<div dir="ltr"><div><div><div><div><div><div><div><div><div>Hi,<br><br></div>I want to have Kamailio in front of one or more Asterisk boxes.<br><br></div>I don't think it is necessary for Kamailio and Asterisk to register with one another. I'd like for PJSIP to recognise Kamailio by its IP address.<br><br></div>I have two boxes, both have public IP addresses, they also have private IP addresses and can communicate with each other.<br><br></div>I have a Snom phone accessing Kamailio via its public IP address.<br><br></div><div>Kamailio sends traffic to asterisk on the private IPs.<br></div><div><br></div>Doing an ngrep on 5061 (where I have tcp and udp set up for pjsip) I can see Kamailio sending traffic to the Asterisk box, however in the console I see no activity. I have verbose and debug set to 10, and pjsip set logger on.<br><br></div>I'm a bit stumped, I've tried everything I could think of, even configuring everything to work on the public IP, but no luck.<br><br></div>Here's my PJSIP conf:<br><br>[kamailio]<br>type=endpoint<br>transport=transport-udp<br>context=from_kamailio<br>disallow=all<br>allow=alaw<br>allow=g722<br>allow=ulaw<br>aors=kamailio<br>direct_media=no<br>rtp_symmetric=no<br>force_rport=no<br>rewrite_contact=no<br><br>[kamailio]<br>type=identify<br>endpoint=kamailio<br>match=xxx.xxx.xxx.xxx (removed kamailios private IP)<br><br>[kamailio-mars]<br>type=aor<br>contact=sip:xxx.xxx.xxx.xxx:5060 (removed kamailios private IP).<br><br><br>My end goal is for all my phones to register to Kamailio. Kamailio should pass calls (even for local phones) to Asterisk.<br><br></div>Thanks in advance for your help.</div><div><br></div>C<br></div>